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

mgmt, authorization migrate test-proxy #36043

Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/resourcemanager/azure-resourcemanager-authorization",
"Tag": "java/resourcemanager/azure-resourcemanager-authorization_290e482023"
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void canCRUDApplication() throws Exception {
}

@Test
@DoNotRecord
@DoNotRecord(skipInPlayback = true)
public void canListApplications() {
if (skipInPlayback()) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import com.azure.resourcemanager.resources.ResourceManager;
import com.azure.resourcemanager.resources.fluentcore.utils.HttpPipelineProvider;
import com.azure.resourcemanager.resources.fluentcore.utils.ResourceManagerUtils;
import com.azure.resourcemanager.test.ResourceManagerTestBase;
import com.azure.resourcemanager.test.ResourceManagerTestProxyTestBase;
import com.azure.resourcemanager.test.utils.TestDelayProvider;

import java.io.ByteArrayOutputStream;
Expand All @@ -24,7 +24,7 @@
import java.util.List;

/** The base for storage manager tests. */
public abstract class GraphRbacManagementTest extends ResourceManagerTestBase {
public abstract class GraphRbacManagementTest extends ResourceManagerTestProxyTestBase {
protected AuthorizationManager authorizationManager;
protected ResourceManager resourceManager;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ public void canCRUDRoleAssignment() throws Exception {
Assertions.assertEquals(1, roleAssignments.size());
RoleAssignment roleAssignment1 = roleAssignments.iterator().next();
Assertions.assertEquals(roleAssignment.id(), roleAssignment1.id());
Assertions.assertEquals(roleAssignment.scope(), roleAssignment1.scope());
if (!isPlaybackMode()) {
// subscriptionId redacted
Assertions.assertEquals(roleAssignment.scope(), roleAssignment1.scope());
}
Assertions.assertEquals(roleAssignment.roleDefinitionId(), roleAssignment1.roleDefinitionId());
Assertions.assertEquals(roleAssignment.principalId(), roleAssignment1.principalId());
Assertions.assertEquals("contributor role", roleAssignment1.description());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void canCRUDServicePrincipal() throws Exception {
}

@Test
@DoNotRecord
@DoNotRecord(skipInPlayback = true)
public void canConsumeServicePrincipalPassword() {
if (skipInPlayback()) {
return;
Expand Down

This file was deleted.

Loading