Skip to content

Commit 6c6d6a8

Browse files
committed
update test
1 parent 166f55b commit 6c6d6a8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6621,6 +6621,17 @@ def test_aks_automatic_sku(self, resource_group, resource_group_location):
66216621
],
66226622
)
66236623

6624+
# get-credentials
6625+
fd, temp_path = tempfile.mkstemp()
6626+
self.kwargs.update({'file': temp_path})
6627+
try:
6628+
self.cmd(
6629+
'aks get-credentials -g {resource_group} -n {name} --file "{file}"')
6630+
self.assertGreater(os.path.getsize(temp_path), 0)
6631+
finally:
6632+
os.close(fd)
6633+
os.remove(temp_path)
6634+
66246635
# scale the cluster
66256636
scale_cluster_cmd = (
66266637
"aks scale --resource-group={resource_group} --name={name} "

0 commit comments

Comments
 (0)