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, ACR, migrate test-proxy #36013

Merged
Merged
Show file tree
Hide file tree
Changes from 4 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-containerregistry",
"Tag": "java/resourcemanager/azure-resourcemanager-containerregistry_bfd3d979bd"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,30 @@
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.test.models.TestProxySanitizer;
import com.azure.core.test.models.TestProxySanitizerType;
import com.azure.resourcemanager.resources.ResourceManager;
import com.azure.resourcemanager.resources.fluentcore.utils.HttpPipelineProvider;
import com.azure.resourcemanager.test.ResourceManagerTestBase;
import com.azure.resourcemanager.test.ResourceManagerTestProxyTestBase;

import java.time.temporal.ChronoUnit;
import java.util.List;

/** The base for storage manager tests. */
public abstract class RegistryTest extends ResourceManagerTestBase {
public abstract class RegistryTest extends ResourceManagerTestProxyTestBase {
protected ResourceManager resourceManager;
protected ContainerRegistryManager registryManager;
protected String rgName;

private static final String REDACTED_VALUE = "REDACTED";

public RegistryTest() {
addSanitizers(
new TestProxySanitizer(String.format("$..%s", "uploadUrl"), null, REDACTED_VALUE, TestProxySanitizerType.BODY_KEY),
new TestProxySanitizer(String.format("$..%s", "logLink"), null, REDACTED_VALUE, TestProxySanitizerType.BODY_KEY)
Comment on lines +32 to +33
Copy link
Member Author

@weidongxu-microsoft weidongxu-microsoft Jul 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redact blob url with sig=, in response

);
}

@Override
protected HttpPipeline buildHttpPipeline(
TokenCredential credential,
Expand Down

This file was deleted.

Loading