Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

davidgamero
Copy link
Collaborator

@davidgamero davidgamero commented Nov 22, 2024

  • 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

@davidgamero davidgamero marked this pull request as ready for review November 22, 2024 03:34
@@ -34,7 +34,6 @@ application and service principle, and will configure that application to trust
ctx := cmd.Context()

gh := providers.NewGhClient()
providers.EnsureAzCli()
Copy link
Collaborator Author

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)
Copy link
Collaborator Author

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"
Copy link
Collaborator Author

@davidgamero davidgamero Nov 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant