Skip to content

Commit

Permalink
{AKS} Fix test case `test_aks_create_and_update_web_application_routi…
Browse files Browse the repository at this point in the history
…ng_dns_zone` (#6529)
  • Loading branch information
FumingZhang authored Jul 19, 2023
1 parent ff12ed2 commit 3442716
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6089,12 +6089,13 @@ def test_aks_disable_addon_web_app_routing(self, resource_group, resource_group_
# self.check('ingressProfile.webAppRouting.enabled', False)
])

# graph api is not well mocked
@live_only()
@AllowLargeResponse()
@AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2')
def test_aks_create_and_update_web_application_routing_dns_zone(self, resource_group, resource_group_location):
aks_name = self.create_random_name('cliakstest', 16)
dns_zone_name = self.create_random_name('cliakstest', 16)
dns_zone_name = self.create_random_name('cliakstest', 16) + ".xyz"
self.kwargs.update({
'resource_group': resource_group,
'name': aks_name,
Expand All @@ -6112,9 +6113,8 @@ def test_aks_create_and_update_web_application_routing_dns_zone(self, resource_g

create_dns_zone_cmd = 'network dns zone create -g {resource_group} -n {dns_zone_name}'
dns_zone = self.cmd(create_dns_zone_cmd,checks=[
self.check('provisioningState', 'Succeeded'),
self.check('name', dns_zone_name),
]).get_output_in_json()
assert dns_zone['provisioningState'] == 'Succeeded'
dns_zone_id = dns_zone['id']

self.kwargs.update({ 'web_app_routing_identity_obj_id': web_app_routing_identity_obj_id, 'dns_zone_id': dns_zone_id })
Expand Down

0 comments on commit 3442716

Please sign in to comment.