Skip to content

Commit

Permalink
fix(tests): use new subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Jul 25, 2023
1 parent a4deec5 commit 0a153b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func testKongState(t *testing.T, client *kong.Client, isKonnect bool,

func reset(t *testing.T, opts ...string) {
deckCmd := cmd.NewRootCmd()
args := []string{"reset", "--force"}
args := []string{"gateway", "reset", "--force"}
if len(opts) > 0 {
args = append(args, opts...)
}
Expand Down Expand Up @@ -217,7 +217,7 @@ func setup(_ *testing.T) func(t *testing.T) {

func sync(kongFile string, opts ...string) error {
deckCmd := cmd.NewRootCmd()
args := []string{"sync", "-s", kongFile}
args := []string{"gateway", "sync", kongFile}
if len(opts) > 0 {
args = append(args, opts...)
}
Expand All @@ -227,7 +227,7 @@ func sync(kongFile string, opts ...string) error {

func diff(kongFile string, opts ...string) (string, error) {
deckCmd := cmd.NewRootCmd()
args := []string{"diff", "-s", kongFile}
args := []string{"gateway", "diff", kongFile}
if len(opts) > 0 {
args = append(args, opts...)
}
Expand All @@ -249,7 +249,7 @@ func diff(kongFile string, opts ...string) (string, error) {

func dump(opts ...string) (string, error) {
deckCmd := cmd.NewRootCmd()
args := []string{"dump"}
args := []string{"gateway", "dump"}
if len(opts) > 0 {
args = append(args, opts...)
}
Expand All @@ -271,7 +271,7 @@ func dump(opts ...string) (string, error) {

func ping(opts ...string) error {
deckCmd := cmd.NewRootCmd()
args := []string{"ping"}
args := []string{"gateway", "ping"}
if len(opts) > 0 {
args = append(args, opts...)
}
Expand Down

0 comments on commit 0a153b3

Please sign in to comment.