Skip to content

Commit 8e315c4

Browse files
committed
add some test code
1 parent 190b2d0 commit 8e315c4

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ def load_arguments(self, _):
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.')
156156
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

@@ -389,7 +391,7 @@ def load_arguments(self, _):
389391

390392
with self.argument_context('vm availability-set create') as c:
391393
c.argument('availability_set_name', name_arg_type, validator=get_default_location_from_resource_group, help='Name of the availability set')
392-
c.argument('platform_update_domain_count', type=int, help='Update Domain count. If unspecified, the server will pick the most optimal number like 5.')
394+
c.argument('platform_update_domain_count', type=int, help='Updated Domain count. If unspecified, the server will pick the most optimal number like 5.')
393395
c.argument('platform_fault_domain_count', type=int, help='Fault Domain count.')
394396
c.argument('validate', help='Generate and validate the ARM template without creating any resources.', action='store_true')
395397
c.argument('unmanaged', action='store_true', min_api='2016-04-30-preview', help='contained VMs should use unmanaged disks')
@@ -413,8 +415,8 @@ def load_arguments(self, _):
413415
with self.argument_context('vm update') as c:
414416
c.argument('os_disk', min_api='2017-12-01', help="Managed OS disk ID or name to swap to")
415417
c.argument('write_accelerator', nargs='*', min_api='2017-12-01',
416-
help="enable/disable disk write accelerator. Use singular value 'true/false' to apply across, or specify individual disks, e.g.'os=true 1=true 2=true' for os disk and data disks with lun of 1 & 2")
417-
c.argument('disk_caching', nargs='*', help="Use singular value to apply across, or specify individual disks, e.g. 'os=ReadWrite 0=None 1=ReadOnly' should enable update os disk and 2 data disks")
418+
help="Enable/Disable disk write accelerator. Use singular value 'true/false' to apply across, or specify individual disks, e.g.'os=true 1=true 2=true' for os disk and data disks with lun of 1 & 2")
419+
c.argument('disk_caching', nargs='*', help="The singular value to apply across, or specify individual disks, e.g. 'os=ReadWrite 0=None 1=ReadOnly' should enable update os disk and 2 data disks")
418420
c.argument('ultra_ssd_enabled', ultra_ssd_enabled_type)
419421
c.argument('enable_secure_boot', enable_secure_boot_type)
420422
c.argument('enable_vtpm', enable_vtpm_type)

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

Lines changed: 11 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,
@@ -851,6 +850,12 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_
851850
exclude_zones=None, align_regional_disks_to_vm_zone=None, wire_server_mode=None, imds_mode=None,
852851
wire_server_access_control_profile_reference_id=None, imds_access_control_profile_reference_id=None,
853852
key_incarnation_id=None):
853+
i = 8808
854+
j = 8809
855+
test_port = 8810
856+
testPort2 = 8811
857+
testPort3 = (12*23+14)
858+
test_str= 'test'
854859

855860
from azure.cli.core.commands.client_factory import get_subscription_id
856861
from azure.cli.core.util import random_string, hash_string
@@ -6006,3 +6011,8 @@ def list_vm_sizes(cmd, location):
60066011

60076012

60086013
# endRegion
6014+
6015+
6016+
class test_PR_review:
6017+
def testPPReviw(self):
6018+
self.test = "test"

0 commit comments

Comments
 (0)