Skip to content

Commit

Permalink
fix: renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
exu committed Feb 11, 2022
1 parent 8ce9a77 commit 6d63b0c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/kubectl-testkube/commands/testsuites/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func NewCreateTestSuitesCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "create",
Aliases: []string{"c"},
Short: "Create new test",
Long: `Create new Test Custom Resource, `,
Short: "Create new test suite",
Long: `Create new TestSuite Custom Resource, `,
Run: func(cmd *cobra.Command, args []string) {
ui.Logo()

Expand Down Expand Up @@ -53,19 +53,19 @@ func NewCreateTestSuitesCmd() *cobra.Command {

test, _ := client.GetTestSuite(options.Name, options.Namespace)
if options.Name == test.Name {
ui.Failf("Test with name '%s' already exists in namespace %s", options.Name, options.Namespace)
ui.Failf("TestSuite with name '%s' already exists in namespace %s", options.Name, options.Namespace)
}

options.Tags = tags

test, err = client.CreateTestSuite((apiClient.UpsertTestSuiteOptions(options)))
ui.ExitOnError("creating test "+options.Name+" in namespace "+options.Namespace, err)
ui.Success("Test created", options.Name)
ui.ExitOnError("creating TestSuite "+options.Name+" in namespace "+options.Namespace, err)
ui.Success("TestSuite created", options.Name)
},
}

cmd.Flags().StringVarP(&file, "file", "f", "", "JSON test file - will be read from stdin if not specified, look at testkube.TestUpsertRequest")
cmd.Flags().StringVar(&name, "name", "", "Set/Override test name")
cmd.Flags().StringVarP(&file, "file", "f", "", "JSON test suite file - will be read from stdin if not specified, look at testkube.TestUpsertRequest")
cmd.Flags().StringVar(&name, "name", "", "Set/Override test suite name")
cmd.Flags().StringSliceVar(&tags, "tags", nil, "comma separated list of tags: --tags tag1,tag2,tag3")

return cmd
Expand Down

0 comments on commit 6d63b0c

Please sign in to comment.