Skip to content

Commit 29e7025

Browse files
committed
add test for non-duplicate error outputs
1 parent 2061aab commit 29e7025

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/cmd/newapp.sh

+5
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ os::cmd::expect_success 'oc delete all -l app=php'
5555
os::cmd::expect_failure 'oc get dc/mysql'
5656
os::cmd::expect_failure 'oc get dc/php'
5757

58+
# ensure non-duplicate invalid label errors show up
59+
os::cmd::expect_failure_and_text 'oc new-app nginx -l qwer1345%$$#=self' 'error: ImageStream "nginx" is invalid'
60+
os::cmd::expect_failure_and_text 'oc new-app nginx -l qwer1345%$$#=self' 'DeploymentConfig "nginx" is invalid'
61+
os::cmd::expect_failure_and_text 'oc new-app nginx -l qwer1345%$$#=self' 'Service "nginx" is invalid'
62+
5863
# check if we can create from a stored template
5964
os::cmd::expect_success 'oc create -f examples/sample-app/application-template-stibuild.json'
6065
os::cmd::expect_success 'oc get template ruby-helloworld-sample'

0 commit comments

Comments
 (0)