Skip to content

Commit

Permalink
fix verify command
Browse files Browse the repository at this point in the history
  • Loading branch information
zpoint committed Dec 6, 2024
1 parent 4ad1b2b commit ae4b2f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,11 +1446,12 @@ def test_azure_storage_mounts_with_stop():
get_default_storage_account_name(default_region))
storage_account_key = data_utils.get_az_storage_account_key(
storage_account_name)
# if the file does not exist, az storage blob list returns '[]'
ls_hello_command = (f'output=$(az storage blob list -c {storage_name} '
f'--account-name {storage_account_name} '
f'--account-key {storage_account_key} '
f'--prefix hello.txt) '
f'[ "$output" = "[]" ] && exit 1')
f'[ "$output" = "[]" ] && exit 1 || exit 0')
with tempfile.NamedTemporaryFile(suffix='.yaml', mode='w') as f:
test_commands, clean_command = _storage_mounts_commands_generator(
f, name, storage_name, ls_hello_command, cloud, False)
Expand All @@ -1477,7 +1478,7 @@ def test_azure_storage_mounts_with_stop_only_allow_mount():
f'--account-name {storage_account_name} '
f'--account-key {storage_account_key} '
f'--prefix hello.txt) '
f'[ "$output" = "[]" ] && exit 1')
f'[ "$output" = "[]" ] && exit 1 || exit 0')
with tempfile.NamedTemporaryFile(suffix='.yaml', mode='w') as f:
test_commands, clean_command = _storage_mounts_commands_generator(
f, name, storage_name, ls_hello_command, cloud, True)
Expand Down

0 comments on commit ae4b2f4

Please sign in to comment.