Skip to content

Commit

Permalink
Adding a test for admin_commands (cadence-workflow#6414)
Browse files Browse the repository at this point in the history
* Adding a test for admin_commands

For now it is a test for a single function: ResetQueue
Inroducing clitest package as a helper to write cli tests.
Previously we were mistakenly overriding flags in flag.FlagSet which
does not align with `context.IsSet()` - it thinks user did not provide
an argument.

* Converging admin_cluster_commands_test.go

To follow a new, shorter approach with newCLITestData/clitest.

* Converging admin_task_list_commands_test.go

To follow a new, shorter approach with newCLITestData/clitest.
  • Loading branch information
dkrotx authored Oct 25, 2024
1 parent 2fd0fbc commit 9b812c5
Show file tree
Hide file tree
Showing 6 changed files with 473 additions and 368 deletions.
Loading

0 comments on commit 9b812c5

Please sign in to comment.