Skip to content

Commit f9b8414

Browse files
moreOver0Li Ma
authored andcommitted
try fix unittest
1 parent 5970c72 commit f9b8414

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12762,10 +12762,7 @@ def test_aks_create_gpu_driver_flow(self, resource_group, resource_group_locatio
1276212762

1276312763
@AllowLargeResponse()
1276412764
@AKSCustomResourceGroupPreparer(
12765-
random_name_length=17,
12766-
name_prefix="clitest",
12767-
location="centraluseuap",
12768-
preserve_default_location=True,
12765+
random_name_length=17, name_prefix="clitest", location="westus2"
1276912766
)
1277012767
def test_aks_and_agentpool_with_static_egress_gateway(
1277112768
self, resource_group, resource_group_location
@@ -12787,8 +12784,7 @@ def test_aks_and_agentpool_with_static_egress_gateway(
1278712784
"aks create --resource-group={resource_group} --name={name} --location={location} "
1278812785
"--ssh-key-value={ssh_key_value} "
1278912786
"--kubernetes-version={k8s_version} "
12790-
"--enable-static-egress-gateway "
12791-
"--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/StaticEgressGatewayPreview"
12787+
"--enable-static-egress-gateway"
1279212788
)
1279312789
self.cmd(
1279412790
create_cmd,
@@ -12804,7 +12800,6 @@ def test_aks_and_agentpool_with_static_egress_gateway(
1280412800
update_cmd = (
1280512801
"aks update --resource-group {resource_group} --name {name} "
1280612802
"--disable-static-egress-gateway "
12807-
"--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/StaticEgressGatewayPreview "
1280812803
"-o json"
1280912804
)
1281012805
self.cmd(update_cmd, checks=[
@@ -12818,7 +12813,6 @@ def test_aks_and_agentpool_with_static_egress_gateway(
1281812813
update_cmd = (
1281912814
"aks update --resource-group {resource_group} --name {name} "
1282012815
"--enable-static-egress-gateway "
12821-
"--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/StaticEgressGatewayPreview "
1282212816
"-o json"
1282312817
)
1282412818
self.cmd(update_cmd, checks=[
@@ -12836,8 +12830,7 @@ def test_aks_and_agentpool_with_static_egress_gateway(
1283612830
"--name=gwnp "
1283712831
"--mode=Gateway "
1283812832
"--node-count=2 "
12839-
"--gateway-prefix-size=31 "
12840-
"--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/StaticEgressGatewayPreview",
12833+
"--gateway-prefix-size=31",
1284112834
checks=[
1284212835
self.check("provisioningState", "Succeeded"),
1284312836
self.check("gatewayProfile.publicIpPrefixSize", 31),

0 commit comments

Comments
 (0)