Skip to content

Commit d0717a9

Browse files
committed
Test more non-compliant code
1 parent f522b51 commit d0717a9

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/azure-cli/azure/cli/command_modules/vm/_params.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ def load_arguments(self, _):
153153
operation_group = 'disks' if scope == 'disk' else 'snapshots'
154154
c.argument('network_access_policy', min_api='2020-05-01', help='Policy for accessing the disk via network.', arg_type=get_enum_type(self.get_models('NetworkAccessPolicy', operation_group=operation_group)))
155155
c.argument('disk_access', min_api='2020-05-01', help='Name or ID of the disk access resource for using private endpoints on disks.')
156-
c.argument('enable_bursting', arg_type=get_three_state_flag(), help='Enables on-demand bursting beyond the provisioned performance target of the disk. On-demand bursting is disabled by default, and it does not apply to Ultra disks.')
156+
c.argument('enable_bursting', arg_type=get_three_state_flag(), help='Enable on-demand bursting beyond the provisioned performance target of the disk. On-demand bursting is disabled by default, and it does not apply to Ultra disks.')
157+
c.argument('enable_bursting1', arg_type=get_three_state_flag(), help='Enables on-demand bursting beyond the provisioned performance target of the disk. On-demand bursting is disabled by default, and it does not apply to Ultra disks.')
158+
c.argument('enable_bursting2', arg_type=get_three_state_flag(), help='Enabled on-demand bursting beyond the provisioned performance target of the disk. On-demand bursting is disabled by default, and it does not apply to Ultra disks.')
157159
c.argument('public_network_access', arg_type=get_enum_type(['Disabled', 'Enabled']), min_api='2021-04-01', is_preview=True, help='Customers can set on Managed Disks or Snapshots to control the export policy on the disk.')
158160
c.argument('accelerated_network', arg_type=get_three_state_flag(), min_api='2021-04-01', is_preview=True, help='Customers can set on Managed Disks or Snapshots to enable the accelerated networking if the OS disk image support.')
159161

src/azure-cli/azure/cli/command_modules/vm/custom.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,6 @@ def capture_vm(cmd, resource_group_name, vm_name, vhd_name_prefix,
813813
output = getattr(result, 'output', None) or result.resources[0]
814814
print(json.dumps(output, indent=2)) # pylint: disable=no-member
815815

816-
817816
# pylint: disable=too-many-locals, unused-argument, too-many-statements, too-many-branches, broad-except
818817
def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_v2', location=None, tags=None,
819818
no_wait=False, authentication_type=None, admin_password=None, computer_name=None,
@@ -854,6 +853,9 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_
854853
i = 8808
855854
j = 8809
856855
test_port = 8810
856+
testPort2 = 8811
857+
testPort3 = (12*23+14)
858+
test_str= 'test'
857859

858860
from azure.cli.core.commands.client_factory import get_subscription_id
859861
from azure.cli.core.util import random_string, hash_string
@@ -5980,3 +5982,8 @@ def list_vm_sizes(cmd, location):
59805982

59815983

59825984
# endRegion
5985+
5986+
5987+
class test_PR_review:
5988+
def testPPReviw(self):
5989+
self.test = "test"

0 commit comments

Comments
 (0)