diff --git a/sdk/storage/azure-storage-blob/tests/test_append_blob.py b/sdk/storage/azure-storage-blob/tests/test_append_blob.py index 17ad1617385f..6cc8a9953f2f 100644 --- a/sdk/storage/azure-storage-blob/tests/test_append_blob.py +++ b/sdk/storage/azure-storage-blob/tests/test_append_blob.py @@ -109,6 +109,7 @@ def test_create_blob(self, resource_group, location, storage_account, storage_ac self.assertEqual(blob_properties.etag, create_resp.get('etag')) self.assertEqual(blob_properties.last_modified, create_resp.get('last_modified')) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() def test_get_blob_properties_using_vid(self, resource_group, location, storage_account, storage_account_key): # Arrange diff --git a/sdk/storage/azure-storage-blob/tests/test_append_blob_async.py b/sdk/storage/azure-storage-blob/tests/test_append_blob_async.py index b37dc6615420..d6ffe4040d0e 100644 --- a/sdk/storage/azure-storage-blob/tests/test_append_blob_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_append_blob_async.py @@ -126,6 +126,7 @@ async def test_create_blob_async(self, resource_group, location, storage_account self.assertEqual(blob_properties.etag, create_resp.get('etag')) self.assertEqual(blob_properties.last_modified, create_resp.get('last_modified')) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test async def test_get_blob_properties_using_vid(self, resource_group, location, storage_account, storage_account_key): diff --git a/sdk/storage/azure-storage-blob/tests/test_common_blob.py b/sdk/storage/azure-storage-blob/tests/test_common_blob.py index 5b03b2e7b11b..4d47a69d0a88 100644 --- a/sdk/storage/azure-storage-blob/tests/test_common_blob.py +++ b/sdk/storage/azure-storage-blob/tests/test_common_blob.py @@ -229,6 +229,7 @@ def test_create_blob_with_special_chars(self, resource_group, location, storage_ data = blob.download_blob(encoding='utf-8') self.assertEqual(data.readall(), blob_data) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() def test_create_blob_and_download_blob_with_vid(self, resource_group, location, storage_account, storage_account_key): self._setup(storage_account, storage_account_key) @@ -614,6 +615,7 @@ def test_set_blob_metadata_with_upper_case(self, resource_group, location, stora self.assertEqual(md['UP'], 'UPval') self.assertFalse('up' in md) + @pytest.mark.playback_test_only @pytest.mark.live_test_only @GlobalStorageAccountPreparer() def test_set_blob_metadata_returns_vid(self, resource_group, location, storage_account, storage_account_key): @@ -648,6 +650,7 @@ def test_delete_blob_with_existing_blob(self, resource_group, location, storage_ # Assert self.assertIsNone(resp) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() def test_delete_specific_blob_version(self, resource_group, location, storage_account, storage_account_key): self._setup(storage_account, storage_account_key) @@ -668,6 +671,7 @@ def test_delete_specific_blob_version(self, resource_group, location, storage_ac self.assertIsNone(resp) self.assertTrue(len(blob_list) > 0) + @pytest.mark.playback_test_only @pytest.mark.live_test_only @GlobalStorageAccountPreparer() def test_delete_blob_version_with_blob_sas(self, resource_group, location, storage_account, storage_account_key): @@ -750,6 +754,7 @@ def test_delete_blob_snapshots(self, resource_group, location, storage_account, self.assertEqual(len(blobs), 1) self.assertIsNone(blobs[0].snapshot) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() def test_create_blob_snapshot_returns_vid(self, resource_group, location, storage_account, storage_account_key): self._setup(storage_account, storage_account_key) @@ -1020,6 +1025,7 @@ def test_copy_blob_with_existing_blob(self, resource_group, location, storage_ac copy_content = copyblob.download_blob().readall() self.assertEqual(copy_content, self.byte_data) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() def test_copy_blob_returns_vid(self, resource_group, location, storage_account, storage_account_key): self._setup(storage_account, storage_account_key) diff --git a/sdk/storage/azure-storage-blob/tests/test_common_blob_async.py b/sdk/storage/azure-storage-blob/tests/test_common_blob_async.py index 874a20876a39..1028c6bf4b75 100644 --- a/sdk/storage/azure-storage-blob/tests/test_common_blob_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_common_blob_async.py @@ -266,6 +266,7 @@ async def test_create_blob_with_special_chars(self, resource_group, location, st content = data.decode('utf-8') self.assertEqual(content, blob_data) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test async def test_create_blob_and_download_blob_with_vid(self, resource_group, location, storage_account, @@ -724,6 +725,7 @@ async def test_set_blob_metadata_with_upper_case(self, resource_group, location, self.assertEqual(md['UP'], 'UPval') self.assertFalse('up' in md) + @pytest.mark.playback_test_only @pytest.mark.live_test_only @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test @@ -762,6 +764,7 @@ async def test_delete_blob_with_existing_blob(self, resource_group, location, st # Assert self.assertIsNone(resp) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test async def test_delete_specific_blob_version(self, resource_group, location, storage_account, storage_account_key): @@ -788,6 +791,7 @@ async def test_delete_specific_blob_version(self, resource_group, location, stor self.assertIsNone(resp) self.assertTrue(len(blob_list) > 0) + @pytest.mark.playback_test_only @pytest.mark.live_test_only @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test @@ -879,6 +883,7 @@ async def test_delete_blob_snapshots(self, resource_group, location, storage_acc self.assertEqual(len(blobs), 1) self.assertIsNone(blobs[0].snapshot) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test async def test_create_blob_snapshot_returns_vid(self, resource_group, location, storage_account, storage_account_key): @@ -1178,6 +1183,7 @@ async def test_soft_delete_with_leased_blob(self, resource_group, location, stor finally: await self._disable_soft_delete() + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test async def test_copy_blob_returns_vid(self, resource_group, location, storage_account, storage_account_key): diff --git a/sdk/storage/azure-storage-blob/tests/test_page_blob.py b/sdk/storage/azure-storage-blob/tests/test_page_blob.py index 0b2012e0c1a6..09acf4239938 100644 --- a/sdk/storage/azure-storage-blob/tests/test_page_blob.py +++ b/sdk/storage/azure-storage-blob/tests/test_page_blob.py @@ -129,6 +129,7 @@ def test_create_blob(self, resource_group, location, storage_account, storage_ac self.assertIsNotNone(resp.get('last_modified')) self.assertTrue(blob.get_blob_properties()) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() def test_create_page_blob_returns_vid(self, resource_group, location, storage_account, storage_account_key): bsc = BlobServiceClient(self.account_url(storage_account, "blob"), credential=storage_account_key, connection_data_block_size=4 * 1024, max_page_size=4 * 1024) diff --git a/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py b/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py index 0073cf1080e6..e4b1825a76b3 100644 --- a/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py @@ -154,6 +154,7 @@ async def test_create_blob(self, resource_group, location, storage_account, stor self.assertIsNotNone(resp.get('last_modified')) self.assertTrue(await blob.get_blob_properties()) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test async def test_create_page_blob_returns_vid(self, resource_group, location, storage_account, storage_account_key):