Introduce mock test base#22445
Closed
ArcturusZhang wants to merge 4 commits intoAzure:feature/mgmt-track2from
Closed
Introduce mock test base#22445ArcturusZhang wants to merge 4 commits intoAzure:feature/mgmt-track2from
ArcturusZhang wants to merge 4 commits intoAzure:feature/mgmt-track2from
Conversation
3305bee to
74eaf1f
Compare
pakrym
reviewed
Jul 6, 2021
Contributor
There was a problem hiding this comment.
The only purpose of this base class seems to be to diable instrumentation validation. Not worth having a class for that.
Member
Author
There was a problem hiding this comment.
And it turns out this overriding is also not needed.
I believe it is very possible that we could only use the MockTestEnvironment to indicate the test was a mock test.
@m-nash what do you think?
pakrym
reviewed
Jul 6, 2021
Contributor
There was a problem hiding this comment.
You don't need a test environment for mock tests because they would never run live.
Member
Author
There was a problem hiding this comment.
That is true, but I need the Credential to be the mock credential even not in Playback mode
Contributor
There was a problem hiding this comment.
Can you use new MockCredential()?
1f2d7fb to
3f87b34
Compare
cac8a1c to
314fcae
Compare
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisite PR: #22524
All SDK Contribution checklist:
This checklist is used to make sure that common guidelines for a pull request are followed.
Draftmode if it is:General Guidelines and Best Practices
Testing Guidelines
SDK Generation Guidelines
*.csprojandAssemblyInfo.csfiles have been updated with the new version of the SDK. Please double check nuget.org current release version.Additional management plane SDK specific contribution checklist:
Note: Only applies to
Microsoft.Azure.Management.[RP]orAzure.ResourceManager.[RP]Management plane SDK Troubleshooting
If this is very first SDK for a services and you are adding new service folders directly under /SDK, please add
new servicelabel and/or contact assigned reviewer.If the check fails at the
Verify Code Generationstep, please ensure:generate.ps1/cmdto generate this PR instead of callingautorestdirectly.Please pay attention to the @microsoft.csharp version output after running
generate.ps1. If it is lower than current released version (2.3.82), please run it again as it should pull down the latest version.Note: We have recently updated the PSH module called by
generate.ps1to emit additional data. This would help reduce/eliminate the Code Verification check error. Please run following command:Old outstanding PR cleanup
Please note:
If PRs (including draft) has been out for more than 60 days and there are no responses from our query or followups, they will be closed to maintain a concise list for our reviewers.