Skip to content

Commit 75d74d7

Browse files
authored
Update test_acr_commands.py 2020-09-01
1 parent 5ad68a1 commit 75d74d7

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/azure-cli/azure/cli/command_modules/acr/tests/hybrid_2020_09_01/test_acr_commands.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,6 @@ def _core_registry_scenario(self, registry_name, resource_group, location):
5858
password2 = credential['passwords'][1]['value']
5959
assert username and password and password2
6060

61-
# renew password
62-
credential = self.cmd('acr credential renew -n {} -g {} --password-name {}'.format(
63-
registry_name, resource_group, 'password')).get_output_in_json()
64-
renewed_username = credential['username']
65-
renewed_password = credential['passwords'][0]['value']
66-
renewed_password2 = credential['passwords'][1]['value']
67-
assert renewed_username and renewed_password and renewed_password2
68-
assert username == renewed_username
69-
assert password != renewed_password
70-
assert password2 == renewed_password2
71-
72-
# renew password2
73-
credential = self.cmd('acr credential renew -n {} -g {} --password-name {}'.format(
74-
registry_name, resource_group, 'password2')).get_output_in_json()
75-
renewed_username = credential['username']
76-
renewed_password = credential['passwords'][0]['value']
77-
renewed_password2 = credential['passwords'][1]['value']
78-
assert renewed_username and renewed_password and renewed_password2
79-
assert username == renewed_username
80-
assert password != renewed_password
81-
assert password2 != renewed_password2
82-
8361
# test acr delete
8462
self.cmd('acr delete -n {} -g {} -y'.format(registry_name, resource_group))
8563

0 commit comments

Comments
 (0)