File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,16 @@ trap os::test::junit::reconcile_output EXIT
13
13
os::test::junit::declare_suite_start " cmd/annotate"
14
14
# This test validates empty values in key-value pairs set by the annotate command
15
15
os::cmd::expect_success_and_text ' oc process -f examples/zookeeper/template.json | oc apply -f -' ' pod "zookeeper-1" created'
16
- os::cmd::expect_success_and_text ' oc annotate pod zookeeper-1 nodeselector =""' ' pod "zookeeper-1" annotated'
17
- os::cmd::expect_success_and_text ' oc get pod zookeeper-1 --template="{{.metadata.annotations.nodeselector }}"' ' '
16
+ os::cmd::expect_success_and_text ' oc annotate pod zookeeper-1 node-selector =""' ' pod "zookeeper-1" annotated'
17
+ os::cmd::expect_success_and_not_text ' oc get pod zookeeper-1 --template="{{index .metadata.annotations \"node-selector\" }}"' ' . '
18
18
19
19
echo " annotate: ok"
20
20
os::test::junit::declare_suite_end
21
21
22
22
os::test::junit::declare_suite_start " cmd/label"
23
23
# This test validates empty values in key-value pairs set by the label command
24
24
os::cmd::expect_success_and_text ' oc label pod zookeeper-1 label2=""' ' pod "zookeeper-1" labeled'
25
- os::cmd::expect_success_and_text ' oc get pod zookeeper-1 --template="{{.metadata.labels.label2}}"' ' '
25
+ os::cmd::expect_success_and_not_text ' oc get pod zookeeper-1 --template="{{.metadata.labels.label2}}"' ' . '
26
26
27
27
echo " label: ok"
28
28
os::test::junit::declare_suite_end
You can’t perform that action at this time.
0 commit comments