diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_account_scenarios.py b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_account_scenarios.py index c053f62f1d1..779e6beaefc 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_account_scenarios.py +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_account_scenarios.py @@ -7,7 +7,8 @@ import unittest from azure.cli.testsdk import (ScenarioTest, LocalContextScenarioTest, JMESPathCheck, ResourceGroupPreparer, - StorageAccountPreparer, api_version_constraint, live_only, LiveScenarioTest) + StorageAccountPreparer, api_version_constraint, live_only, LiveScenarioTest, + record_only) from azure.cli.testsdk.decorators import serial_test from azure.cli.core.profiles import ResourceType from ..storage_test_util import StorageScenarioMixin @@ -581,6 +582,7 @@ def test_renew_account_key(self, resource_group, storage_account): assert renewed_keys[0] == original_keys[0] assert renewed_keys[1] != original_keys[1] + @record_only() # Need to configure domain service first @api_version_constraint(ResourceType.MGMT_STORAGE, min_api='2019-04-01') @ResourceGroupPreparer() def test_renew_account_kerb_key(self, resource_group): @@ -741,6 +743,7 @@ def test_management_policy(self, resource_group, storage_account): self.cmd('storage account management-policy delete --account-name {sa} -g {rg}') self.cmd('storage account management-policy show --account-name {sa} -g {rg}', expect_failure=True) + @record_only() # Need to configure domain service first @api_version_constraint(ResourceType.MGMT_STORAGE, min_api='2019-04-01') @ResourceGroupPreparer() def test_update_storage_account_with_files_aadds(self, resource_group): @@ -767,6 +770,7 @@ def test_update_storage_account_with_files_aadds_false(self, resource_group): self.assertIn('azureFilesIdentityBasedAuthentication', result) self.assertEqual(result['azureFilesIdentityBasedAuthentication']['directoryServiceOptions'], 'None') + @record_only() # Need to configure domain service first @api_version_constraint(ResourceType.MGMT_STORAGE, min_api='2019-04-01') @ResourceGroupPreparer() def test_update_storage_account_with_files_aadds_true(self, resource_group): @@ -780,6 +784,7 @@ def test_update_storage_account_with_files_aadds_true(self, resource_group): self.assertIn('azureFilesIdentityBasedAuthentication', result) self.assertEqual(result['azureFilesIdentityBasedAuthentication']['directoryServiceOptions'], 'AADDS') + @record_only() # Need to configure domain service first @api_version_constraint(ResourceType.MGMT_STORAGE, min_api='2019-04-01') @ResourceGroupPreparer() def test_create_storage_account_with_files_aadds(self, resource_group): @@ -800,6 +805,7 @@ def test_create_storage_account_with_files_aadds_false(self, resource_group): self.assertIn('azureFilesIdentityBasedAuthentication', result) self.assertEqual(result['azureFilesIdentityBasedAuthentication']['directoryServiceOptions'], 'None') + @record_only() # Need to configure domain service first @api_version_constraint(ResourceType.MGMT_STORAGE, min_api='2019-04-01') @ResourceGroupPreparer() def test_create_storage_account_with_files_aadds_true(self, resource_group):