diff --git a/tests/integration/test_utils.go b/tests/integration/test_utils.go index 228db1e28..5d036d7c5 100644 --- a/tests/integration/test_utils.go +++ b/tests/integration/test_utils.go @@ -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...) } @@ -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...) } @@ -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...) } @@ -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...) } @@ -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...) }