Skip to content

Commit 480af49

Browse files
committed
fix annotations test flake
1 parent ab7d5fe commit 480af49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/cmd/annotations.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ trap os::test::junit::reconcile_output EXIT
1313
os::test::junit::declare_suite_start "cmd/annotate"
1414
# This test validates empty values in key-value pairs set by the annotate command
1515
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 node-selector=""' 'pod "zookeeper-1" annotated'
17-
os::cmd::expect_success_and_text 'oc get pod zookeeper-1 --template="{{.metadata.annotations}}"' 'node-selector:'
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}}"' ''
1818

1919
echo "annotate: ok"
2020
os::test::junit::declare_suite_end
2121

2222
os::test::junit::declare_suite_start "cmd/label"
2323
# This test validates empty values in key-value pairs set by the label command
2424
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_text 'oc get pod zookeeper-1 --template="{{.metadata.labels.label2}}"' ''
2626

2727
echo "label: ok"
28-
os::test::junit::declare_suite_end
28+
os::test::junit::declare_suite_end

0 commit comments

Comments
 (0)