You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #18272 from gabemontero/new-app-bld-msgs
Automatic merge from submit-queue (batch tested with PRs 18454, 18504, 18510, 18481, 18272).
adjust newapp/newbuild error messages (arg classification vs. actual …
…processing
Fixes#17925@openshift/sig-developer-experience ptal
Now produces:
```
gmontero ~/go/src/github.com/openshift/origin (new-app-bld-msgs)$ oc new-build --name imagesourcetest python~https://github.com/openshift-katacoda/blog-django-py --source-image xxx --source-image-path=yyy --dry-run
error: unable to locate resource for "xxx"
The 'oc new-build' command will match arguments to the following types:
1. Images tagged into image streams in the current project or the 'openshift' project
- if you don't specify a tag, we'll add ':latest'
2. Images in the Docker Hub, on remote registries, or on the local Docker engine
3. Git repository URLs or local paths that point to Git repositories
--allow-missing-images can be used to force the use of an image that was not matched
See 'oc new-build -h' for examples.
```
os::cmd::expect_failure_and_text 'oc new-app --strategy=docker https://192.30.253.113/openshift/ruby-hello-world.git''none of the arguments provided could be classified as a source code location'
60
+
os::cmd::expect_failure_and_text 'oc new-app https://www.google.com/openshift/nodejs-e''unable to load template file'
61
+
os::cmd::expect_failure_and_text 'oc new-app https://www.google.com/openshift/nodejs-e''unable to locate any'
62
+
os::cmd::expect_failure_and_text 'oc new-app https://www.google.com/openshift/nodejs-e''was classified as an image, image~source, or loaded template reference.'
63
+
os::cmd::expect_failure_and_text 'oc new-app https://examplegit.com/openshift/nodejs-e''unable to load template file'
64
+
os::cmd::expect_failure_and_text 'oc new-app https://examplegit.com/openshift/nodejs-e''unable to locate any'
65
+
os::cmd::expect_failure_and_text 'oc new-app https://examplegit.com/openshift/nodejs-e''was classified as an image, image~source, or loaded template reference.'
66
+
os::cmd::expect_failure_and_text 'oc new-build --strategy=docker https://192.30.253.113/openshift/ruby-hello-world.git''none of the arguments provided could be classified as a source code location'
67
+
os::cmd::expect_failure_and_text 'oc new-build https://www.google.com/openshift/nodejs-e''unable to load template file'
68
+
os::cmd::expect_failure_and_text 'oc new-build https://www.google.com/openshift/nodejs-e''unable to locate any'
69
+
os::cmd::expect_failure_and_text 'oc new-build https://www.google.com/openshift/nodejs-e''was classified as an image, image~source, or loaded template reference.'
70
+
os::cmd::expect_failure_and_text 'oc new-build https://examplegit.com/openshift/nodejs-e''unable to load template file'
71
+
os::cmd::expect_failure_and_text 'oc new-build https://examplegit.com/openshift/nodejs-e''unable to locate any'
72
+
os::cmd::expect_failure_and_text 'oc new-build https://examplegit.com/openshift/nodejs-e''was classified as an image, image~source, or loaded template reference.'
73
+
os::cmd::expect_failure_and_text 'oc new-build --name imagesourcetest python~https://github.com/openshift-katacoda/blog-django-py --source-image xxx --source-image-path=yyy --dry-run''unable to locate any '
74
+
os::cmd::expect_failure_and_text 'oc new-app ~java''you must specify a image name'
64
75
65
76
# setting source secret via the --source-secret flag
0 commit comments