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

More unit-tests for cli:admin_commands.go #6449

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tools/cli/admin_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ func AdminRefreshWorkflowTasks(c *cli.Context) error {
if err != nil {
return commoncli.Problem("Refresh workflow task failed", err)
}
fmt.Println("Refresh workflow task succeeded.")
fmt.Fprintln(getDeps(c).Output(), "Refresh workflow task succeeded.")
return nil
}

Expand Down Expand Up @@ -737,7 +737,8 @@ func AdminResetQueue(c *cli.Context) error {
if err != nil {
return commoncli.Problem("Failed to reset queue", err)
}
fmt.Println("Reset queue state succeeded")

fmt.Fprintln(getDeps(c).Output(), "Reset queue state succeeded")
return nil
}

Expand Down Expand Up @@ -777,8 +778,9 @@ func AdminDescribeQueue(c *cli.Context) error {
return commoncli.Problem("Failed to describe queue", err)
}

output := getDeps(c).Output()
for _, state := range resp.ProcessingQueueStates {
fmt.Println(state)
fmt.Fprintln(output, state)
}
return nil
}
Loading
Loading