Skip to content

Commit

Permalink
add tests for image labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jfchevrette committed Dec 18, 2017
1 parent 340502b commit aea4040
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/cmd/images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ os::cmd::expect_success_and_text "oc get is/mysql --template='{{(index .spec.tag

os::cmd::expect_failure_and_text 'oc tag mysql:latest tagtest:tag1 --alias' 'cannot set alias across'

# label image
imgsha256=$(oc get istag/mysql:latest --template='{{ .image.metadata.name }}')
os::cmd::expect_success "oc label image ${imgsha256} foo=bar"
os::cmd::expect_success_and_text "oc get image ${imgsha256} --show-labels" 'foo=bar'

# tag labeled image
os::cmd::expect_success 'oc label is/mysql labelA=value'
os::cmd::expect_success 'oc tag mysql:latest mysql:labeled'
Expand Down

0 comments on commit aea4040

Please sign in to comment.