Skip to content

Commit

Permalink
Merge branch 'kudobuilder:main' into mhoffm-wait-for-deletion-of-name…
Browse files Browse the repository at this point in the history
…spaces
  • Loading branch information
mhoffm-aiven authored Sep 20, 2021
2 parents a67b76d + d2cd0d5 commit 0dfe63c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions keps/0007-command-asserts.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ owners:
- "@nfnt"
- "@kensipe"
creation-date: 2020-10-28
last-updated: 2021-02-04
status: implementable
last-updated: 2021-09-02
status: implemented
---

# Assertions for CLI commands
Expand Down
2 changes: 1 addition & 1 deletion pkg/file/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func ToObjects(paths []string) ([]client.Object, error) {
for _, path := range paths {
objs, err := testutils.LoadYAMLFromFile(path)
if err != nil {
return nil, fmt.Errorf("file %q load yaml error", path)
return nil, fmt.Errorf("file %q load yaml error: %w", path, err)
}
apply = append(apply, objs...)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func ToObjects(urlPath string) ([]client.Object, error) {

objs, err := testutils.LoadYAML(urlPath, buf)
if err != nil {
return nil, fmt.Errorf("url %q load yaml error", urlPath)
return nil, fmt.Errorf("url %q load yaml error: %w", urlPath, err)
}
apply = append(apply, objs...)

Expand Down
2 changes: 1 addition & 1 deletion pkg/kuttlctl/cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ For more detailed documentation, visit: https://kuttl.dev`,
},
}

testCmd.Flags().StringVar(&configPath, "config", "", "Path to file to load test settings from (must not be set with any other arguments).")
testCmd.Flags().StringVar(&configPath, "config", "", "Path to file to load base test settings from (these may be overridden with command-line arguments).")
testCmd.Flags().StringVar(&crdDir, "crd-dir", "", "Directory to load CustomResourceDefinitions from prior to running the tests.")
testCmd.Flags().StringSliceVar(&manifestDirs, "manifest-dir", []string{}, "One or more directories containing manifests to apply before running the tests.")
testCmd.Flags().StringVar(&testToRun, "test", "", "If set, the specific test case to run.")
Expand Down

0 comments on commit 0dfe63c

Please sign in to comment.