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

Merged

Conversation

weidongxu-microsoft
Copy link
Member

@weidongxu-microsoft weidongxu-microsoft commented Jul 25, 2023

Start file scanning...
NumberOfAsset : 792
NumberOfAssetScanned : 270
NumberOfAssetBytes : 48,225,970
NumberOfAssetBytesScanned : 40,432,402
NumberOfScanResult: 0
NumberOfRankedResult : 0
NumberOfCredentialRecord: 0
NumberOfSuppressedRecord: 0
NumberOfScanError: 0

Scan completed in 16.70 seconds
code 0
  • appplatform
  • cdn
  • network
  • redis
  • sql

LIVE test "canCRUDSqlServerWithImportDatabase" in sql runs forever.

LIVE test "canCRUDEnterpriseTierDeployment" in appplatform fails with

com.azure.core.management.exception.ManagementException: Build failed for file: api-gateway.jar, buildId: /subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rg614378446bf/providers/Microsoft.AppPlatform/Spring/springsvc28221/buildServices/default/builds/api-gateway/results/1

"canCreateCustomDomainWithSsl" fails on another problem.

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

String resourcePath = Paths.get(this.getClass().getResource("/session-records").toURI()).getParent().toString();
String resourcePath = Paths.get(this.getClass().getResource("/junit-platform.properties").toURI()).getParent().toString();
Copy link
Member Author

Choose a reason for hiding this comment

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

we don't have /session-records folder now.

new TestProxySanitizer("$..primaryKey", null, REDACTED_VALUE, TestProxySanitizerType.BODY_KEY),
new TestProxySanitizer("$..secondaryKey", null, REDACTED_VALUE, TestProxySanitizerType.BODY_KEY),
// ContainerRegistry
new TestProxySanitizer("$..passwords[*].value", null, REDACTED_VALUE, TestProxySanitizerType.BODY_KEY)
Copy link
Member Author

Choose a reason for hiding this comment

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

for future tests in azure-resourcemanager and samples

@weidongxu-microsoft weidongxu-microsoft marked this pull request as ready for review July 25, 2023 08:12
Comment on lines 28 to 33
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)
new TestProxySanitizer("$..uploadUrl", null, REDACTED_VALUE, TestProxySanitizerType.BODY_KEY),
new TestProxySanitizer("$..logLink", null, REDACTED_VALUE, TestProxySanitizerType.BODY_KEY)
);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps we can put them all under ResourceManagerTestProxyTestBase?

Copy link
Member Author

@weidongxu-microsoft weidongxu-microsoft Jul 25, 2023

Choose a reason for hiding this comment

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

This 2 is not unambiguously key name for secret. They could accidently match to other valid property in JSON. Hence I still put it in ACR instead of Base.

If we see more of them in other module, maybe we will, but with smaller scope e.g. $.logLink if it is directly under root of response JSON.

@weidongxu-microsoft weidongxu-microsoft merged commit 1b9767d into Azure:main Jul 25, 2023
@weidongxu-microsoft weidongxu-microsoft deleted the mgmt_migrate-test-proxy branch July 25, 2023 09:03
@weidongxu-microsoft weidongxu-microsoft added Mgmt This issue is related to a management-plane library. test-proxy Anything relating to test-proxy requests or issues. labels Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt This issue is related to a management-plane library. test-proxy Anything relating to test-proxy requests or issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants