Skip to content

Conversation

@ziyuezh576
Copy link
Contributor

Description

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
      • {Please put the link here}
    • the markdown help files have been regenerated using the commands listed here

@ziyuezh576 ziyuezh576 added the Test Infra Test framework label May 9, 2022
Copy link
Contributor

@vidai-msft vidai-msft left a comment

Choose a reason for hiding this comment

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

Try to remove WithManagementClients method and make sure it has not impact on all the test casess

{"Microsoft.Authorization", null},
{"Microsoft.Network", null}
}
).WithManagementClients(
Copy link
Contributor

Choose a reason for hiding this comment

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

WithManagementClients method can be removed. Please make sure all tests can pass after removing it

return context.GetServiceClient<ResourceManagementClient>(RestTestFramework.TestEnvironmentFactory.GetTestEnvironment());
}

private static CognitiveServicesManagementClient GetCognitiveServicesManagementClient(RestTestFramework.MockContext context)
Copy link
Contributor

Choose a reason for hiding this comment

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

GetCognitiveServiceManagementClient is not necessary. Please remove it.

return context.GetServiceClient<CognitiveServicesManagementClient>(RestTestFramework.TestEnvironmentFactory.GetTestEnvironment());
}

protected NetworkManagementClient GetNetworkClient(RestTestFramework.MockContext context)
Copy link
Contributor

Choose a reason for hiding this comment

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

GetNetworkManagementClient is not necessary. Please remove it.

@ziyuezh576 ziyuezh576 requested a review from vidai-msft May 10, 2022 02:47
@vidai-msft vidai-msft merged commit 12c25f9 into Azure:main May 10, 2022
@ziyuezh576 ziyuezh576 deleted the CognitiveServices branch May 11, 2022 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Test Infra Test framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants