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

Get/Set ACLs and Get Account Properties OAuth #47622

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions eng/nunit.runsettings
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<NUnit>
<ConsoleOut>0</ConsoleOut>
Expand All @@ -25,4 +25,4 @@
<!-- <Parameter name="EnableFiddler" value="true" /> -->
</TestRunParameters>

</RunSettings>
</RunSettings>
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public BlobsClientTestFixtureAttribute(params object[] additionalParameters)
)
{
RecordingServiceVersion = StorageVersionExtensions.MaxVersion;
LiveServiceVersions = new object[] { StorageVersionExtensions.LatestVersion };
LiveServiceVersions = new object[] { StorageVersionExtensions.MaxVersion };
}
}
}
25 changes: 25 additions & 0 deletions sdk/storage/Azure.Storage.Blobs/tests/ContainerClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,19 @@ await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
e => Assert.AreEqual("ContainerNotFound", e.ErrorCode));
}

[RecordedTest]
[ServiceVersion(Min = BlobClientOptions.ServiceVersion.V2025_07_05)]
public async Task GetSetAccessPolicyAsync_OAuth()
{
// Arrange
BlobServiceClient service = GetServiceClient_OAuth();
await using DisposingContainer test = await GetTestContainerAsync(service);

// Act
Response<BlobContainerAccessPolicy> response = await test.Container.GetAccessPolicyAsync();
await test.Container.SetAccessPolicyAsync(permissions: response.Value.SignedIdentifiers);
}

[RecordedTest]
public async Task SetAccessPolicyAsync()
{
Expand Down Expand Up @@ -4322,6 +4335,18 @@ await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
e => Assert.AreEqual("NoAuthenticationInformation", e.ErrorCode));
}

[RecordedTest]
[ServiceVersion(Min = BlobClientOptions.ServiceVersion.V2025_07_05)]
public async Task GetAccountInfoAsync_OAuth()
{
// Arrange
BlobServiceClient service = GetServiceClient_OAuth();
await using DisposingContainer test = await GetTestContainerAsync(service);

// Act
await test.Container.GetAccountInfoAsync();
}

[RecordedTest]
public void CanMockClientConstructors()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public QueueClientTestFixtureAttribute(params object[] additionalParameters)
},
additionalParameters: additionalParameters)
{
RecordingServiceVersion = StorageVersionExtensions.LatestVersion;
RecordingServiceVersion = StorageVersionExtensions.MaxVersion;
LiveServiceVersions = new object[] { StorageVersionExtensions.LatestVersion, };
}
}
Expand Down
13 changes: 13 additions & 0 deletions sdk/storage/Azure.Storage.Queues/tests/QueueClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,19 @@ await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
actualException => Assert.AreEqual("QueueNotFound", actualException.ErrorCode));
}

[RecordedTest]
[ServiceVersion(Min = QueueClientOptions.ServiceVersion.V2025_07_05)]
public async Task GetSetAccessPolicyAsync_OAuth()
{
// Arrange
QueueServiceClient service = GetServiceClient_OAuth();
await using DisposingQueue test = await GetTestQueueAsync(service);

// Act
Response<IEnumerable<QueueSignedIdentifier>> response = await test.Queue.GetAccessPolicyAsync();
await test.Queue.SetAccessPolicyAsync(permissions: response.Value);
}

[RecordedTest]
public async Task DeleteAsync()
{
Expand Down
Loading