-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add common changes to support Azure Batch AAD #4874
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
Conversation
|
This PR is in preparation for adding Batch AAD support. See #4762 for the official support. |
|
@markcowl please take a look when you get a chance |
markcowl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested test changes for regression protection and type conversion for display types. Otherise, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add in tests that verify this value - we have tests that check the output type, and tests that check the value that is saved in the context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I have updated the TypeConversionTests as well (I hadn't realized they were there earlier).
Can you point me to the test classes/methods for any other tests which I should update?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to use BatchAudience as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an alias you mean? Will add it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, I think you will also need to change the constructors and type conversion operators for PSAzureEnvinronment to include this value. If you add this value into existing test validation overt these types, you'll see the code you need to change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was already done I think, right? I made the change to PSAzureEnvironment(PSObject other) already, and to Equals in PSAzureEnvironment - Did I need to do something else too?
960c3ff to
57d0ae5
Compare
|
@markcowl It looks like the on-demand run failed? I am not sure if it's related to this change or not though (logs are hard to parse...) |
Description
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcessand haveSupportShouldProcess=truespecified in the cmdlet attribute. You can find more information onShouldProcesshere.OutputTypeattribute if any output is produced - if the cmdlet produces no output, it should implement aPassThruparameter.Cmdlet Parameter Guidelines