Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Storage] OpenRead/Write test recordings are back. #14963

Merged
merged 28 commits into from
Sep 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
78abf66
Prepare Storage for release
kasobol-msft May 6, 2020
e7907a4
pr feedback.
kasobol-msft May 6, 2020
58814fc
PR feedback.
kasobol-msft May 6, 2020
1286434
pr feedback.
kasobol-msft May 6, 2020
324afd0
merge upstream/master
kasobol-msft May 15, 2020
b216c89
Merge remote-tracking branch 'upstream/master'
kasobol-msft May 19, 2020
1c9e87d
Merge remote-tracking branch 'upstream/master'
kasobol-msft Jun 2, 2020
712ecda
Merge remote-tracking branch 'upstream/master'
kasobol-msft Jun 4, 2020
ad612b5
merge upstream/master
kasobol-msft Jun 10, 2020
5849bef
master merge
kasobol-msft Jul 7, 2020
1bcba8b
Merge remote-tracking branch 'upstream/master'
kasobol-msft Jul 29, 2020
8a2e048
Merge remote-tracking branch 'upstream/master'
kasobol-msft Aug 3, 2020
1bf033e
Merge remote-tracking branch 'upstream/master'
kasobol-msft Aug 8, 2020
b35274e
Merge remote-tracking branch 'upstream/master'
kasobol-msft Aug 10, 2020
feb0649
Merge remote-tracking branch 'upstream/master'
kasobol-msft Aug 11, 2020
5974722
Merge remote-tracking branch 'upstream/master'
kasobol-msft Aug 11, 2020
9252944
Merge remote-tracking branch 'upstream/master'
kasobol-msft Aug 14, 2020
f90886e
Merge remote-tracking branch 'upstream/master'
kasobol-msft Aug 20, 2020
3b9b259
Merge remote-tracking branch 'upstream/master'
kasobol-msft Aug 21, 2020
f97e9bd
Merge remote-tracking branch 'upstream/master'
kasobol-msft Sep 1, 2020
ae9d658
make open write work with using.
kasobol-msft Sep 1, 2020
4a24b96
move recordings to right place
kasobol-msft Sep 1, 2020
e970ed7
pr feedback.
kasobol-msft Sep 1, 2020
ed559ba
Merge remote-tracking branch 'upstream/master'
kasobol-msft Sep 1, 2020
f477f9a
Merge remote-tracking branch 'upstream/master'
kasobol-msft Sep 3, 2020
70bac18
Merge remote-tracking branch 'upstream/master'
kasobol-msft Sep 3, 2020
342d763
Merge remote-tracking branch 'upstream/master'
kasobol-msft Sep 8, 2020
c6a3def
record open write tests.
kasobol-msft Sep 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions sdk/storage/Azure.Storage.Blobs/tests/BlobBaseClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,6 @@ public async Task DownloadEmptyBlobTest()
}

[Test]
[LiveOnly] // https://github.com/Azure/azure-sdk-for-net/issues/13510
public async Task OpenReadAsync()
{
int size = Constants.KB;
Expand All @@ -947,7 +946,6 @@ public async Task OpenReadAsync()
}

[Test]
[LiveOnly] // https://github.com/Azure/azure-sdk-for-net/issues/13510
public async Task OpenReadAsync_BufferSize()
{
int size = Constants.KB;
Expand Down Expand Up @@ -1030,7 +1028,6 @@ await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
}

[Test]
[LiveOnly] // https://github.com/Azure/azure-sdk-for-net/issues/13510
public async Task OpenReadAsync_AccessConditions()
{
// Arrange
Expand Down Expand Up @@ -1107,7 +1104,6 @@ await TestHelper.CatchAsync<Exception>(
}

[Test]
[LiveOnly] // https://github.com/Azure/azure-sdk-for-net/issues/13510
public async Task OpenReadAsync_StrangeOffsetsTest()
{
// Arrange
Expand Down Expand Up @@ -1150,7 +1146,6 @@ public async Task OpenReadAsync_StrangeOffsetsTest()
}

[Test]
[LiveOnly] // https://github.com/Azure/azure-sdk-for-net/issues/13510
public async Task OpenReadAsync_Modified()
{
int size = Constants.KB;
Expand Down Expand Up @@ -1191,7 +1186,6 @@ await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
}

[Test]
[LiveOnly] // https://github.com/Azure/azure-sdk-for-net/issues/13510
public async Task OpenReadAsync_ModifiedAllowBlobModifications()
{
int size = Constants.KB;
Expand Down Expand Up @@ -1275,7 +1269,6 @@ await blobClient.UploadAsync(stream,
}

[Test]
[LiveOnly] // https://github.com/Azure/azure-sdk-for-net/issues/13510
public async Task OpenReadAsync_CopyReadStreamToAnotherStream()
{
// Arrange
Expand Down
10 changes: 1 addition & 9 deletions sdk/storage/Azure.Storage.Blobs/tests/BlockBlobClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2425,7 +2425,6 @@ await TestHelper.AssertExpectedExceptionAsync<ArgumentException>(
}

[Test]
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/13510")]
public async Task OpenWriteAsync_ModifiedDuringWrite()
{
// Arrange
Expand All @@ -2438,7 +2437,7 @@ public async Task OpenWriteAsync_ModifiedDuringWrite()
// Act
Stream openWriteStream = await blob.OpenWriteAsync(overwrite: true);

string blockId = GenerateBlockId();
string blockId = ToBase64(GetNewBlockName());
await blob.StageBlockAsync(blockId, stream);
stream.Position = 0;
await blob.CommitBlockListAsync(new List<string> { blockId });
Expand Down Expand Up @@ -2545,13 +2544,6 @@ await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
}
}

private static string GenerateBlockId()
{
Guid guid = Guid.NewGuid();
byte[] bytes = Encoding.UTF8.GetBytes(guid.ToString());
return Convert.ToBase64String(bytes);
}

private RequestConditions BuildRequestConditions(AccessConditionParameters parameters)
=> new RequestConditions
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading