Skip to content

Commit ca4996e

Browse files
committed
remove aks_create_with_loadbalancer_and_update_to_none_outbound
1 parent 919d111 commit ca4996e

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py

-42
Original file line numberDiff line numberDiff line change
@@ -258,48 +258,6 @@ def test_aks_create_and_update_with_managed_nat_gateway_outbound(
258258
],
259259
)
260260

261-
@AllowLargeResponse()
262-
@AKSCustomResourceGroupPreparer(
263-
random_name_length=17, name_prefix="clitest", location="eastus"
264-
)
265-
def test_aks_create_with_loadbalancer_and_update_to_none_outbound(
266-
self, resource_group, resource_group_location
267-
):
268-
aks_name = self.create_random_name("cliakstest", 16)
269-
self.kwargs.update(
270-
{
271-
"resource_group": resource_group,
272-
"name": aks_name,
273-
"ssh_key_value": self.generate_ssh_keys(),
274-
}
275-
)
276-
277-
create_cmd = (
278-
"aks create --resource-group={resource_group} --name={name} "
279-
"--vm-set-type VirtualMachineScaleSets -c 1 "
280-
"--ssh-key-value={ssh_key_value}"
281-
)
282-
self.cmd(
283-
create_cmd,
284-
checks=[
285-
self.check("provisioningState", "Succeeded"),
286-
self.check("networkProfile.outboundType", "loadBalancer"),
287-
],
288-
)
289-
290-
update_cmd = (
291-
"aks update --resource-group={resource_group} --name={name} "
292-
"--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/EnableOutboundTypeNoneAndBlock "
293-
"--outbound-type none "
294-
)
295-
self.cmd(
296-
update_cmd,
297-
checks=[
298-
self.check("provisioningState", "Succeeded"),
299-
self.check("networkProfile.outboundType", "none"),
300-
],
301-
)
302-
303261
@AllowLargeResponse()
304262
@AKSCustomResourceGroupPreparer(
305263
random_name_length=17, name_prefix="clitest", location="eastus"

0 commit comments

Comments
 (0)