Skip to content

Commit d511c3a

Browse files
committed
Fix live tests
1 parent ff6e43c commit d511c3a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11600,7 +11600,7 @@ def test_aks_approuting_zone_update(self, resource_group, resource_group_locatio
1160011600

1160111601
# live only due to downloading k8s-extension extension
1160211602
@live_only()
11603-
@AllowLargeResponse(99999)
11603+
@AllowLargeResponse(999999)
1160411604
@AKSCustomResourceGroupPreparer(
1160511605
random_name_length=17, name_prefix="clitest", location="westus2"
1160611606
)
@@ -11630,7 +11630,7 @@ def test_aks_create_with_azurecontainerstorage_v1(
1163011630
create_cmd = (
1163111631
"aks create --resource-group={resource_group} --name={name} --location={location} "
1163211632
"--ssh-key-value={ssh_key_value} --node-vm-size={node_vm_size} "
11633-
"--node-count 3 --enable-managed-identity --enable-azure-container-storage azureDisk --output=json"
11633+
"--node-count 3 --enable-managed-identity --container-storage-version 1 --enable-azure-container-storage azureDisk --output=json"
1163411634
)
1163511635

1163611636
# enabling azurecontainerstorage will not affect any field in the cluster.
@@ -11655,7 +11655,7 @@ def test_aks_create_with_azurecontainerstorage_v1(
1165511655

1165611656
# live only due to downloading k8s-extension extension
1165711657
@live_only()
11658-
@AllowLargeResponse(99999)
11658+
@AllowLargeResponse(999999)
1165911659
@AKSCustomResourceGroupPreparer(
1166011660
random_name_length=17, name_prefix="clitest", location="westus2"
1166111661
)
@@ -11684,7 +11684,7 @@ def test_aks_create_with_azurecontainerstorage_v1_with_ephemeral_disk_parameters
1168411684

1168511685
create_cmd = (
1168611686
"aks create --resource-group={resource_group} --name={name} --location={location} --ssh-key-value={ssh_key_value} --node-vm-size={node_vm_size} "
11687-
"--node-count 3 --enable-managed-identity --enable-azure-container-storage ephemeralDisk --storage-pool-option NVMe "
11687+
"--node-count 3 --enable-managed-identity --container-storage-version 1 --enable-azure-container-storage ephemeralDisk --storage-pool-option NVMe "
1168811688
"--ephemeral-disk-volume-type EphemeralVolumeOnly --ephemeral-disk-nvme-perf-tier Premium --output=json"
1168911689
)
1169011690

@@ -11709,7 +11709,7 @@ def test_aks_create_with_azurecontainerstorage_v1_with_ephemeral_disk_parameters
1170911709
)
1171011710

1171111711
@live_only()
11712-
@AllowLargeResponse(99999)
11712+
@AllowLargeResponse(999999)
1171311713
@AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2')
1171411714
def test_aks_update_with_azurecontainerstorage_v1(self, resource_group, resource_group_location):
1171511715
aks_name = self.create_random_name('cliakstest', 16)
@@ -11739,7 +11739,7 @@ def test_aks_update_with_azurecontainerstorage_v1(self, resource_group, resource
1173911739

1174011740
# update: enable-azure-container-storage
1174111741
update_cmd = 'aks update --resource-group={resource_group} --name={name} --yes --output=json ' \
11742-
'--enable-azure-container-storage azureDisk'
11742+
'--container-storage-version 1 --enable-azure-container-storage azureDisk'
1174311743
self.cmd(update_cmd, checks=[
1174411744
self.check('provisioningState', 'Succeeded'),
1174511745
])
@@ -11763,7 +11763,7 @@ def test_aks_update_with_azurecontainerstorage_v1(self, resource_group, resource
1176311763
])
1176411764

1176511765
@live_only()
11766-
@AllowLargeResponse(99999)
11766+
@AllowLargeResponse(999999)
1176711767
@AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2')
1176811768
def test_aks_update_with_azurecontainerstorage_v1_with_ephemeral_disk_parameters(self, resource_group, resource_group_location):
1176911769
aks_name = self.create_random_name('cliakstest', 16)
@@ -11790,7 +11790,7 @@ def test_aks_update_with_azurecontainerstorage_v1_with_ephemeral_disk_parameters
1179011790

1179111791
# update: enable-azure-container-storage
1179211792
update_cmd = 'aks update --resource-group={resource_group} --name={name} --yes --output=json ' \
11793-
'--enable-azure-container-storage ephemeralDisk --storage-pool-option NVMe ' \
11793+
'--container-storage-version 1 --enable-azure-container-storage ephemeralDisk --storage-pool-option NVMe ' \
1179411794
'--ephemeral-disk-volume-type PersistentVolumeWithAnnotation ' \
1179511795
'--ephemeral-disk-nvme-perf-tier Standard'
1179611796

@@ -11935,7 +11935,7 @@ def test_aks_update_with_azurecontainerstorage(self, resource_group, resource_gr
1193511935
# Sleep for 5 mins before next operation,
1193611936
# since update operations take
1193711937
# some time to finish.
11938-
time.sleep(5 * 60)
11938+
time.sleep(10 * 60)
1193911939

1194011940
# update: disable-azure-container-storage
1194111941
update_cmd = 'aks update --resource-group={resource_group} --name={name} --yes --output=json ' \

0 commit comments

Comments
 (0)