Skip to content

Commit fa658ac

Browse files
author
OpenShift Bot
authored
Merge pull request #11443 from juanvallejo/jvallejo/fix-annotations-test-flake
Merged by openshift-bot
2 parents d2ac56c + 68cd54a commit fa658ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/cmd/annotations.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ 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'
1616
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:'
17+
os::cmd::expect_success_and_not_text 'oc get pod zookeeper-1 --template="{{index .metadata.annotations \"node-selector\"}}"' '.'
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_not_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)