Skip to content

Commit

Permalink
test_aks_create_default_service_without_skip_role_assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli committed May 13, 2022
1 parent 7e5bb4f commit 906634a
Show file tree
Hide file tree
Showing 4 changed files with 835 additions and 356 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
# is set with the environment varibale for sp_name. This method is compatible with
# both cases.
def _process_sp_name(sp_name):
from azure.cli.core.util import is_guid
return sp_name if is_guid(sp_name) else 'http://{}'.format(sp_name)
return sp_name


class AzureKubernetesServiceScenarioTest(ScenarioTest):
Expand Down Expand Up @@ -493,7 +492,7 @@ def generate_user_assigned_identity_resource_id(self, resource_group):
resource_group, identity_name)).get_output_in_json()
return identity.get("id")


# reset the count so in replay mode the random names will start with 0
self.test_resources_count = 0
# kwargs for string formatting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def create_resource(self, name, **kwargs):
pass

if self.live_test or self.test_class_instance.in_recording:
sp_name = name
sp_name = self.result['appId']
sp_password = self.result.get("password") or GraphClientPasswordReplacer.PWD_REPLACEMENT
else:
sp_name = MOCK_GUID
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
# is set with the environment varibale for sp_name. This method is compatible with
# both cases.
def _process_sp_name(sp_name):
from azure.cli.core.util import is_guid
return sp_name if is_guid(sp_name) else 'http://{}'.format(sp_name)
return sp_name


class AzureKubernetesServiceScenarioTest(ScenarioTest):
Expand Down Expand Up @@ -820,7 +819,7 @@ def test_aks_create_and_update_with_managed_nat_gateway_outbound(self, resource_

update_cmd = 'aks update --resource-group={resource_group} --name={name} ' \
'--nat-gateway-managed-outbound-ip-count=2 ' \
'--nat-gateway-idle-timeout=30 '
'--nat-gateway-idle-timeout=30 '
self.cmd(update_cmd, checks=[
self.check('provisioningState', 'Succeeded'),
self.check('networkProfile.outboundType', 'managedNATGateway'),
Expand Down

0 comments on commit 906634a

Please sign in to comment.