-
Notifications
You must be signed in to change notification settings - Fork 4k
Add AksTestRunner and replace TestController #17962
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
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.
Please check the review comments and change the code accordingly.
.WithNewRmModules (helper => new[] | ||
{ | ||
helper.RMProfileModule, | ||
helper.GetRMModulePath("AzureRM.Aks.psd1") |
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.
Update from AzureRM.Aks.psd1 to Az.Aks.psd1
AzureSession.Instance.DataStore.WriteFile(Path.Combine(home, ".azure", "acsServicePrincipal.json"), jsonOutput); | ||
} | ||
} | ||
).WithManagementClients( |
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.
Remove the invocation of WithManagementClients()
.Build(); | ||
} | ||
|
||
private static ContainerServiceClient GetContainerServiceClient(MockContext 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.
This method definition is not necessary. Please remove it.
{ | ||
return context.GetServiceClient<ContainerServiceClient>(); | ||
} | ||
private MicrosoftGraphClient GetGraphManagementClient(MockContext 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.
This method definition is not necessary. Please remove it.
{ | ||
return context.GetServiceClient<MicrosoftGraphClient>(); | ||
} | ||
private static AuthorizationManagementClient GetAuthorizationManagementClient(MockContext 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.
This method definition is not necessary. Please remove it.
{ | ||
return context.GetServiceClient<AuthorizationManagementClient>(); | ||
} | ||
private static ResourceManagementClient GetInternalResourceManagementClient(MockContext 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.
This method definition is not necessary. Please remove 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.
WithMockContextAction() still not removed.
2c8d703
to
098f4cd
Compare
caecbf4
to
098f4cd
Compare
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.
Looks good !
@@ -0,0 +1,87 @@ | |||
using System; |
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.
License header
Description
Checklist
CONTRIBUTING.md
ChangeLog.md
file(s) has been updated:ChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header -- no new version header should be added