Skip to content

Commit

Permalink
Temporarily disabled Files OAuth live tests (#34475)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcc-msft authored Feb 22, 2023
1 parent 7a2267b commit 3db450e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public async Task CreateAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task CreateAsync_OAuth()
{
Expand Down Expand Up @@ -612,6 +613,7 @@ public async Task DeleteAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task DeleteAsync_OAuth()
{
Expand Down Expand Up @@ -680,6 +682,7 @@ public async Task GetPropertiesAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task GetPropertiesAsync_OAuth()
{
Expand Down Expand Up @@ -795,6 +798,7 @@ public async Task SetHttpHeadersAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task SetHttpHeadersAsync_OAuth()
{
Expand Down Expand Up @@ -966,6 +970,7 @@ public async Task SetMetadataAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task SetMetadataAsync_OAuth()
{
Expand Down Expand Up @@ -1079,6 +1084,7 @@ public async Task ListFilesAndDirectoriesSegmentAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task ListFilesAndDirectoriesSegmentAsync_OAuth()
{
Expand Down Expand Up @@ -1337,6 +1343,7 @@ public async Task ListHandles_Min()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task ListHandles_OAuth()
{
Expand Down Expand Up @@ -1405,6 +1412,7 @@ public async Task ForceCloseHandles_Min()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task ForceCloseHandles_OAuth()
{
Expand Down Expand Up @@ -2268,7 +2276,8 @@ await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
}

[RecordedTest]
//[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task RenameAsync_OAuth()
{
// Arrange
Expand Down
20 changes: 20 additions & 0 deletions sdk/storage/Azure.Storage.Files.Shares/tests/FileClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public async Task CreateAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task CreateAsync_OAuth()
{
Expand Down Expand Up @@ -690,6 +691,7 @@ public async Task SetMetadataAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task SetMetadataAsync_OAuth()
{
Expand Down Expand Up @@ -817,6 +819,7 @@ public async Task GetPropertiesAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task GetPropertiesAsync_OAuth()
{
Expand Down Expand Up @@ -1139,6 +1142,7 @@ public async Task SetHttpHeadersAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task SetHttpHeadersAsync_OAuth()
{
Expand Down Expand Up @@ -1418,6 +1422,7 @@ public async Task DeleteAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task DeleteAsync_OAuth()
{
Expand Down Expand Up @@ -1531,6 +1536,7 @@ await source.UploadRangeAsync(
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task StartCopyAsync_OAuth()
{
Expand Down Expand Up @@ -2110,6 +2116,7 @@ await source.UploadRangeAsync(
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task AbortCopyAsync_OAuth()
{
Expand Down Expand Up @@ -2391,6 +2398,7 @@ await file.UploadRangeAsync(
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task DownloadAsync_OAuth()
{
Expand Down Expand Up @@ -2716,6 +2724,7 @@ public async Task GetRangeListAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task GetRangeListAsync_OAuth()
{
Expand Down Expand Up @@ -2974,6 +2983,7 @@ await file.UploadRangeAsync(
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task GetRangeListDiffAsync_OAuth()
{
Expand Down Expand Up @@ -3470,6 +3480,7 @@ public async Task UploadAsync_Simple()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task UploadAsync_OAuth()
{
Expand Down Expand Up @@ -3729,6 +3740,7 @@ public async Task ClearRangeAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task ClearRangeAsync_OAuth()
{
Expand Down Expand Up @@ -4315,6 +4327,7 @@ public async Task ListHandles_Min()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task ListHandles_OAuth()
{
Expand Down Expand Up @@ -4385,6 +4398,7 @@ public async Task ForceCloseHandles_Min()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task ForceCloseHandles_OAuth()
{
Expand Down Expand Up @@ -4484,6 +4498,7 @@ public async Task AcquireLeaseAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task AcquireLeaseAsync_OAuth()
{
Expand Down Expand Up @@ -4576,6 +4591,7 @@ public async Task ReleaseLeaseAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task ReleaseLeaseAsync_OAuth()
{
Expand Down Expand Up @@ -4676,6 +4692,7 @@ public async Task ChangeLeaseAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task ChangeLeaseAsync_OAuth()
{
Expand Down Expand Up @@ -4805,6 +4822,7 @@ public async Task BreakLeaseAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task BreakLeaseAsync_OAuth()
{
Expand Down Expand Up @@ -4954,6 +4972,7 @@ public async Task OpenWriteAsync_NewFile()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task OpenWriteAsync_OAuth()
{
Expand Down Expand Up @@ -5925,6 +5944,7 @@ await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task RenameAsync_OAuth()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ public async Task CreateAndGetPermissionAsync()
}

[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/34474")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
public async Task CreateAndGetPermissionAsync_OAuth()
{
Expand Down

0 comments on commit 3db450e

Please sign in to comment.