Skip to content

Commit

Permalink
scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
exu committed Feb 10, 2022
1 parent a0bce83 commit a1cf781
Show file tree
Hide file tree
Showing 12 changed files with 896 additions and 895 deletions.
8 changes: 4 additions & 4 deletions cmd/kubectl-testkube/commands/tests/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ func NewListTestsCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "list",
Aliases: []string{"l"},
Short: "Get all available scripts",
Short: "Get all available tests",
Long: `Getting all available scritps from given namespace - if no namespace given "testkube" namespace is used`,
Run: func(cmd *cobra.Command, args []string) {
namespace := cmd.Flag("namespace").Value.String()

client, _ := common.GetClient(cmd)
scripts, err := client.ListTests(namespace, tags)
ui.ExitOnError("getting all scripts in namespace "+namespace, err)
tests, err := client.ListTests(namespace, tags)
ui.ExitOnError("getting all tests in namespace "+namespace, err)

ui.Table(scripts, os.Stdout)
ui.Table(tests, os.Stdout)
},
}
cmd.Flags().StringSliceVar(&tags, "tags", nil, "comma separated list of tags: --tags tag1,tag2,tag3")
Expand Down
2 changes: 1 addition & 1 deletion docs/executor-cypress.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ kubectl testkube tests create --uri https://github.com/kubeshop/testkube-executo
We can check that test is created with:

```sh
kubectl get scripts
kubectl get tests
```

Output:
Expand Down
342 changes: 0 additions & 342 deletions docs/scripts-creating.md

This file was deleted.

151 changes: 0 additions & 151 deletions docs/scripts-getting-results.md

This file was deleted.

0 comments on commit a1cf781

Please sign in to comment.