Skip to content

Commit

Permalink
Merge pull request #11443 from juanvallejo/jvallejo/fix-annotations-t…
Browse files Browse the repository at this point in the history
…est-flake

Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Oct 21, 2016
2 parents d2ac56c + 68cd54a commit fa658ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/cmd/annotations.sh
Expand Up @@ -14,15 +14,15 @@ os::test::junit::declare_suite_start "cmd/annotate"
# This test validates empty values in key-value pairs set by the annotate command
os::cmd::expect_success_and_text 'oc process -f examples/zookeeper/template.json | oc apply -f -' 'pod "zookeeper-1" created'
os::cmd::expect_success_and_text 'oc annotate pod zookeeper-1 node-selector=""' 'pod "zookeeper-1" annotated'
os::cmd::expect_success_and_text 'oc get pod zookeeper-1 --template="{{.metadata.annotations}}"' 'node-selector:'
os::cmd::expect_success_and_not_text 'oc get pod zookeeper-1 --template="{{index .metadata.annotations \"node-selector\"}}"' '.'

echo "annotate: ok"
os::test::junit::declare_suite_end

os::test::junit::declare_suite_start "cmd/label"
# This test validates empty values in key-value pairs set by the label command
os::cmd::expect_success_and_text 'oc label pod zookeeper-1 label2=""' 'pod "zookeeper-1" labeled'
os::cmd::expect_success_and_text 'oc get pod zookeeper-1 --template="{{.metadata.labels}}"' 'label2\: '
os::cmd::expect_success_and_not_text 'oc get pod zookeeper-1 --template="{{.metadata.labels.label2}}"' '.'

echo "label: ok"
os::test::junit::declare_suite_end
os::test::junit::declare_suite_end

0 comments on commit fa658ac

Please sign in to comment.