-
Notifications
You must be signed in to change notification settings - Fork 63
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
az cli client cleanup #434
base: main
Are you sure you want to change the base?
Conversation
davidgamero
commented
Nov 22, 2024
•
edited
Loading
edited
- move az cli methods to within the azClient
- consume CommandRunner for az cli
- update Ensure/Validation for AzCLI to methods that return errors so we can consume and test them directly via fakeCommandRunners
- revert contributor role to allow acr build and push for github action
@@ -34,7 +34,6 @@ application and service principle, and will configure that application to trust | |||
ctx := cmd.Context() | |||
|
|||
gh := providers.NewGhClient() | |||
providers.EnsureAzCli() |
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.
moved this to inside the az client constructor
var _ CommandRunner = &DefaultCommandRunner{} | ||
|
||
func (d *DefaultCommandRunner) RunCommand(args ...string) (string, error) { | ||
log.Debug("Running command: ", args) |
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.
add debug log here to allow tracing command executions while debugging
@@ -10,10 +10,6 @@ deployVariables: | |||
value: "testapp" | |||
- name: "IMAGENAME" |
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.
we should rework the integration test generation to no longer be a big bash script and maybe leverage go natively. then we can integrate better defaults per-language