Skip to content

Commit

Permalink
fix(test): Add messaging for communicating the resource group being d…
Browse files Browse the repository at this point in the history
…eleted (#211)

This communicates the resource group that's being deleted if there is a
resource group found at the end of `ie test`.
  • Loading branch information
vmarcella authored Jul 30, 2024
1 parent 5377601 commit 6dc4ef3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/engine/test/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ func (model TestModeModel) Update(message tea.Msg) (tea.Model, tea.Cmd) {

// Delete any found resource groups.
if model.resourceGroupName != "" {
model.CommandLines = append(
model.CommandLines,
fmt.Sprintf(
"Attempting to delete the deployed resource group with the name: %s",
model.resourceGroupName,
),
)
logging.GlobalLogger.Infof("Attempting to delete the deployed resource group with the name: %s", model.resourceGroupName)
command := fmt.Sprintf("az group delete --name %s --yes --no-wait", model.resourceGroupName)
_, err := shells.ExecuteBashCommand(
Expand Down

0 comments on commit 6dc4ef3

Please sign in to comment.