File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,10 @@ os::cmd::expect_success "echo '${group_json}' | oc create -f -"
325
325
os::cmd::expect_success " oc patch group patch-group -p 'users: [\" myuser\" ]' --loglevel=8"
326
326
os::cmd::expect_success_and_text ' oc get group patch-group -o yaml' ' myuser'
327
327
os::cmd::expect_success " oc patch group patch-group -p 'users: []' --loglevel=8"
328
+ # applying the same patch twice results in exit code 0, and "not patched" text
329
+ os::cmd::expect_success_and_text " oc patch group patch-group -p 'users: []'" " not patched"
330
+ # applying an invalid patch results in exit code 1 and an error
331
+ os::cmd::expect_failure_and_text " oc patch group patch-group -p 'users: \"\" '" " cannot restore slice from string"
328
332
os::cmd::expect_success_and_text ' oc get group patch-group -o yaml' ' users: \[\]'
329
333
echo " patch: ok"
330
334
os::test::junit::declare_suite_end
You can’t perform that action at this time.
0 commit comments