diff --git a/sdk/storage/Azure.Storage.Blobs/src/BlobLeaseClient.cs b/sdk/storage/Azure.Storage.Blobs/src/BlobLeaseClient.cs index 2832e1a41c193..15d32f3654e66 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/BlobLeaseClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/BlobLeaseClient.cs @@ -341,12 +341,12 @@ private async Task> AcquireInternal( } else { - if (conditions?.IfMatch != default || conditions?.IfNoneMatch != default) - { - throw BlobErrors.BlobConditionsMustBeDefault( - nameof(conditions.IfMatch), - nameof(conditions.IfNoneMatch)); - } + conditions.ValidateConditionsNotPresent( + invalidConditions: + BlobRequestConditionProperty.IfMatch + | BlobRequestConditionProperty.IfNoneMatch, + operationName: nameof(BlobLeaseClient.Acquire), + parameterName: nameof(conditions)); ResponseWithHeaders containerClientResponse; @@ -561,12 +561,12 @@ private async Task> RenewInternal( } else { - if (conditions?.IfMatch != default || conditions?.IfNoneMatch != default) - { - throw BlobErrors.BlobConditionsMustBeDefault( - nameof(conditions.IfMatch), - nameof(conditions.IfNoneMatch)); - } + conditions.ValidateConditionsNotPresent( + invalidConditions: + BlobRequestConditionProperty.IfMatch + | BlobRequestConditionProperty.IfNoneMatch, + operationName: nameof(BlobLeaseClient.Release), + parameterName: nameof(conditions)); ResponseWithHeaders containerClientResponse; @@ -784,12 +784,12 @@ public virtual async Task> ReleaseInternal( } else { - if (conditions?.IfMatch != default || conditions?.IfNoneMatch != default) - { - throw BlobErrors.BlobConditionsMustBeDefault( - nameof(RequestConditions.IfMatch), - nameof(RequestConditions.IfNoneMatch)); - } + conditions.ValidateConditionsNotPresent( + invalidConditions: + BlobRequestConditionProperty.IfMatch + | BlobRequestConditionProperty.IfNoneMatch, + operationName: nameof(BlobLeaseClient.Release), + parameterName: nameof(conditions)); ResponseWithHeaders response; @@ -1009,12 +1009,12 @@ private async Task> ChangeInternal( } else { - if (conditions?.IfMatch != default || conditions?.IfNoneMatch != default) - { - throw BlobErrors.BlobConditionsMustBeDefault( - nameof(conditions.IfMatch), - nameof(conditions.IfNoneMatch)); - } + conditions.ValidateConditionsNotPresent( + invalidConditions: + BlobRequestConditionProperty.IfMatch + | BlobRequestConditionProperty.IfNoneMatch, + operationName: nameof(BlobLeaseClient.Change), + parameterName: nameof(conditions)); ResponseWithHeaders containerClientResponse; @@ -1293,12 +1293,12 @@ private async Task> BreakInternal( } else { - if (conditions?.IfMatch != default || conditions?.IfNoneMatch != default) - { - throw BlobErrors.BlobConditionsMustBeDefault( - nameof(conditions.IfMatch), - nameof(conditions.IfNoneMatch)); - } + conditions.ValidateConditionsNotPresent( + invalidConditions: + BlobRequestConditionProperty.IfMatch + | BlobRequestConditionProperty.IfNoneMatch, + operationName: nameof(BlobLeaseClient.Break), + parameterName: nameof(conditions)); ResponseWithHeaders response; diff --git a/sdk/storage/Azure.Storage.Blobs/tests/ContainerClientTests.cs b/sdk/storage/Azure.Storage.Blobs/tests/ContainerClientTests.cs index 0bbffd2268655..e61c6d38dbf6a 100644 --- a/sdk/storage/Azure.Storage.Blobs/tests/ContainerClientTests.cs +++ b/sdk/storage/Azure.Storage.Blobs/tests/ContainerClientTests.cs @@ -1467,6 +1467,42 @@ public async Task AcquireLeaseAsync() await container.DeleteIfExistsAsync(conditions: new BlobRequestConditions { LeaseId = response.Value.LeaseId }); } + [RecordedTest] + [TestCase(nameof(RequestConditions.IfMatch))] + [TestCase(nameof(RequestConditions.IfNoneMatch))] + public async Task AcquireLeaseAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + BlobContainerClient containerClient = new BlobContainerClient(uri, GetOptions()); + string id = Recording.Random.NewGuid().ToString(); + TimeSpan duration = TimeSpan.FromSeconds(15); + BlobLeaseClient leaseClient = InstrumentClient(containerClient.GetBlobLeaseClient(id)); + + RequestConditions conditions = new RequestConditions(); + + switch (invalidCondition) + { + case nameof(RequestConditions.IfMatch): + conditions.IfMatch = new ETag(); + break; + case nameof(RequestConditions.IfNoneMatch): + conditions.IfNoneMatch = new ETag(); + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + leaseClient.AcquireAsync( + duration, + conditions), + e => + { + Assert.IsTrue(e.Message.Contains($"Acquire does not support the {invalidCondition} condition(s).")); + Assert.IsTrue(e.Message.Contains("conditions")); + }); + } + [RecordedTest] public async Task AcquireLeaseAsync_ErrorDurationTooLarge() { @@ -1577,6 +1613,40 @@ public async Task RenewLeaseAsync() await container.DeleteIfExistsAsync(conditions: new BlobRequestConditions { LeaseId = renewResponse.Value.LeaseId }); } + [RecordedTest] + [TestCase(nameof(RequestConditions.IfMatch))] + [TestCase(nameof(RequestConditions.IfNoneMatch))] + public async Task RenewLeaseAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + BlobContainerClient containerClient = new BlobContainerClient(uri, GetOptions()); + string id = Recording.Random.NewGuid().ToString(); + BlobLeaseClient leaseClient = InstrumentClient(containerClient.GetBlobLeaseClient(id)); + + RequestConditions conditions = new RequestConditions(); + + switch (invalidCondition) + { + case nameof(RequestConditions.IfMatch): + conditions.IfMatch = new ETag(); + break; + case nameof(RequestConditions.IfNoneMatch): + conditions.IfNoneMatch = new ETag(); + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + leaseClient.RenewAsync( + conditions: conditions), + e => + { + Assert.IsTrue(e.Message.Contains($"Release does not support the {invalidCondition} condition(s).")); + Assert.IsTrue(e.Message.Contains("conditions")); + }); + } + [RecordedTest] public async Task RenewLeaseAsync_Error() { @@ -1671,6 +1741,40 @@ public async Task ReleaseLeaseAsync() Assert.AreEqual(LeaseState.Available, response.Value.LeaseState); } + [RecordedTest] + [TestCase(nameof(RequestConditions.IfMatch))] + [TestCase(nameof(RequestConditions.IfNoneMatch))] + public async Task ReleaseLeaseAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + BlobContainerClient containerClient = new BlobContainerClient(uri, GetOptions()); + string id = Recording.Random.NewGuid().ToString(); + BlobLeaseClient leaseClient = InstrumentClient(containerClient.GetBlobLeaseClient(id)); + + RequestConditions conditions = new RequestConditions(); + + switch (invalidCondition) + { + case nameof(RequestConditions.IfMatch): + conditions.IfMatch = new ETag(); + break; + case nameof(RequestConditions.IfNoneMatch): + conditions.IfNoneMatch = new ETag(); + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + leaseClient.ReleaseAsync( + conditions: conditions), + e => + { + Assert.IsTrue(e.Message.Contains($"Release does not support the {invalidCondition} condition(s).")); + Assert.IsTrue(e.Message.Contains("conditions")); + }); + } + [RecordedTest] public async Task ReleaseLeaseAsync_Error() { @@ -1762,6 +1866,40 @@ public async Task BreakLeaseAsync() Assert.AreEqual(LeaseState.Broken, response.Value.LeaseState); } + [RecordedTest] + [TestCase(nameof(RequestConditions.IfMatch))] + [TestCase(nameof(RequestConditions.IfNoneMatch))] + public async Task BreakLeaseAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + BlobContainerClient containerClient = new BlobContainerClient(uri, GetOptions()); + string id = Recording.Random.NewGuid().ToString(); + BlobLeaseClient leaseClient = InstrumentClient(containerClient.GetBlobLeaseClient(id)); + + RequestConditions conditions = new RequestConditions(); + + switch (invalidCondition) + { + case nameof(RequestConditions.IfMatch): + conditions.IfMatch = new ETag(); + break; + case nameof(RequestConditions.IfNoneMatch): + conditions.IfNoneMatch = new ETag(); + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + leaseClient.BreakAsync( + conditions: conditions), + e => + { + Assert.IsTrue(e.Message.Contains($"Break does not support the {invalidCondition} condition(s).")); + Assert.IsTrue(e.Message.Contains("conditions")); + }); + } + [RecordedTest] public async Task BreakLeaseAsync_Error() { @@ -1861,6 +1999,41 @@ public async Task ChangeLeaseAsync() await InstrumentClient(test.Container.GetBlobLeaseClient(changeResponse.Value.LeaseId)).ReleaseAsync(); } + [RecordedTest] + [TestCase(nameof(RequestConditions.IfMatch))] + [TestCase(nameof(RequestConditions.IfNoneMatch))] + public async Task ChangeLeaseAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + BlobContainerClient containerClient = new BlobContainerClient(uri, GetOptions()); + string id = Recording.Random.NewGuid().ToString(); + BlobLeaseClient leaseClient = InstrumentClient(containerClient.GetBlobLeaseClient(id)); + + RequestConditions conditions = new RequestConditions(); + + switch (invalidCondition) + { + case nameof(RequestConditions.IfMatch): + conditions.IfMatch = new ETag(); + break; + case nameof(RequestConditions.IfNoneMatch): + conditions.IfNoneMatch = new ETag(); + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + leaseClient.ChangeAsync( + id, + conditions: conditions), + e => + { + Assert.IsTrue(e.Message.Contains($"Change does not support the {invalidCondition} condition(s).")); + Assert.IsTrue(e.Message.Contains("conditions")); + }); + } + [RecordedTest] public async Task ChangeLeaseAsync_Error() { diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfMatch%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfMatch%).json new file mode 100644 index 0000000000000..d464e831b7300 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfMatch%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "458886958" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json new file mode 100644 index 0000000000000..20b1afae9a6b3 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "571283633" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json new file mode 100644 index 0000000000000..20b1afae9a6b3 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "571283633" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json new file mode 100644 index 0000000000000..20b1afae9a6b3 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/AcquireLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "571283633" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfMatch%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfMatch%).json new file mode 100644 index 0000000000000..782929a538556 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfMatch%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "419326408" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json new file mode 100644 index 0000000000000..c1ea1e8ee3f8f --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1302251011" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json new file mode 100644 index 0000000000000..c1ea1e8ee3f8f --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1302251011" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json new file mode 100644 index 0000000000000..e80c080099ae6 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/BreakLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "2072778939" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfMatch%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfMatch%).json new file mode 100644 index 0000000000000..dae3d19dc855f --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfMatch%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "335905543" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json new file mode 100644 index 0000000000000..f4e3fb74a9081 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1637986183" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json new file mode 100644 index 0000000000000..7decd1260942b --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1989358074" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json new file mode 100644 index 0000000000000..f4e3fb74a9081 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ChangeLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1637986183" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfMatch%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfMatch%).json new file mode 100644 index 0000000000000..4a2800eb1268d --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfMatch%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1571150341" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json new file mode 100644 index 0000000000000..cc611a14b3630 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "2102703053" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json new file mode 100644 index 0000000000000..10a6f6c4ba70b --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "306591297" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json new file mode 100644 index 0000000000000..cc611a14b3630 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/ReleaseLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "2102703053" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfMatch%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfMatch%).json new file mode 100644 index 0000000000000..dd266d1373219 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfMatch%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "137555509" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json new file mode 100644 index 0000000000000..8f71e2a953fb9 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfMatch%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1439636149" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json new file mode 100644 index 0000000000000..8ec1b176a302e --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfNoneMatch%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1791008040" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json new file mode 100644 index 0000000000000..8f71e2a953fb9 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/ContainerClientTests/RenewLeaseAsync_InvalidRequestConditions(%IfNoneMatch%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1439636149" + } +} \ No newline at end of file