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
os::cmd::expect_failure_and_text 'oc process name1 name2''template name must be specified only once'
26
+
# fail to pass a filename or template by name
27
+
os::cmd::expect_failure_and_text 'oc process''Must pass a filename or name of stored template'
28
+
# can't ask for parameters and try process the template
29
+
os::cmd::expect_failure_and_text 'oc process template-name --parameters --value=someval''\-\-parameters flag does not process the template, can.t be used with \-\-value'
30
+
os::cmd::expect_failure_and_text 'oc process template-name --parameters -v someval''\-\-parameters flag does not process the template, can.t be used with \-\-value'
31
+
os::cmd::expect_failure_and_text 'oc process template-name --parameters --labels=someval''\-\-parameters flag does not process the template, can.t be used with \-\-labels'
32
+
os::cmd::expect_failure_and_text 'oc process template-name --parameters -l someval''\-\-parameters flag does not process the template, can.t be used with \-\-labels'
33
+
os::cmd::expect_failure_and_text 'oc process template-name --parameters --output=someval''\-\-parameters flag does not process the template, can.t be used with \-\-output'
34
+
os::cmd::expect_failure_and_text 'oc process template-name --parameters -o someval''\-\-parameters flag does not process the template, can.t be used with \-\-output'
35
+
os::cmd::expect_failure_and_text 'oc process template-name --parameters --output-version=someval''\-\-parameters flag does not process the template, can.t be used with \-\-output-version'
36
+
os::cmd::expect_failure_and_text 'oc process template-name --parameters --raw''\-\-parameters flag does not process the template, can.t be used with \-\-raw'
37
+
os::cmd::expect_failure_and_text 'oc process template-name --parameters --template=someval''\-\-parameters flag does not process the template, can.t be used with \-\-template'
38
+
os::cmd::expect_failure_and_text 'oc process template-name --parameters -t someval''\-\-parameters flag does not process the template, can.t be used with \-\-template'
39
+
40
+
# providing a value more than once should fail
41
+
os::cmd::expect_failure_and_text 'oc process template-name key=value key=value''provided more than once: key'
42
+
os::cmd::expect_failure_and_text 'oc process template-name --value=key=value --value=key=value''provided more than once: key'
43
+
os::cmd::expect_failure_and_text 'oc process template-name key=value --value=key=value''provided more than once: key'
44
+
os::cmd::expect_failure_and_text 'oc process template-name key=value other=foo --value=key=value --value=other=baz''provided more than once: key, other'
os::cmd::expect_success_and_text 'oc get user someval -o jsonpath={.Name}''someval'
57
+
# providing a value not in the template should fail
58
+
os::cmd::expect_failure_and_text "oc process -f '${required_params}' --value=required_param=someval --value=other_param=otherval"'unknown parameter name "other_param"'
59
+
# failure on values fails the entire call
60
+
os::cmd::expect_failure_and_text "oc process -f '${required_params}' --value=required_param=someval --value=optional_param=some=series=of=values="'invalid parameter assignment in'
61
+
# failure on labels fails the entire call
62
+
os::cmd::expect_failure_and_text "oc process -f '${required_params}' --value=required_param=someval --labels======"'error parsing labels'
0 commit comments