-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ trap os::test::junit::reconcile_output EXIT | |
os::cmd::expect_success 'oc login -u system:admin' | ||
cluster_admin_context="$( oc config current-context )" | ||
os::cmd::expect_success "oc config use-context '${original_context}'" | ||
oc delete project test-cmd-images-2 --context=${cluster_admin_context} | ||
oc delete project test-cmd-images-2 merge-tags --context=${cluster_admin_context} | ||
oc delete all,templates --all --context=${cluster_admin_context} | ||
|
||
exit 0 | ||
|
@@ -292,4 +292,14 @@ os::cmd::expect_success 'oc delete all --all' | |
echo "delete istag: ok" | ||
os::test::junit::declare_suite_end | ||
|
||
os::test::junit::declare_suite_start "cmd/images${IMAGES_TESTS_POSTFIX:-}/merge-tags-on-apply" | ||
os::cmd::expect_success 'oc new-project merge-tags' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bparees
Author
Contributor
|
||
os::cmd::expect_success 'oc create -f examples/image-streams/image-streams-centos7.json' | ||
os::cmd::expect_success_and_test 'oc get is ruby -o jsonpath={.spec.tags[*].name}' '2.0 2.2 2.3 2.4 latest' | ||
os::cmd::expect_success 'oc apply -f test/testdata/images/modified-ruby-imagestream.json' | ||
os::cmd::expect_success_and_test 'oc get is ruby -o jsonpath={.spec.tags[*].name}' '2.0 2.2 2.3 2.4 latest newtag' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bparees
Author
Contributor
|
||
os::cmd::expect_success 'oc delete project mergetags' | ||
echo "apply new imagestream tags: ok" | ||
os::test::junit::declare_suite_end | ||
|
||
os::test::junit::declare_suite_end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"kind": "ImageStream", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "ruby", | ||
"annotations": { | ||
"openshift.io/display-name": "Ruby" | ||
} | ||
}, | ||
"spec": { | ||
"tags": [ | ||
{ | ||
"name": "2.4", | ||
"annotations": { | ||
"openshift.io/display-name": "Apache HTTP Server 2.4", | ||
"openshift.io/provider-display-name": "Red Hat, Inc.", | ||
"description": "Build and serve static content via Apache HTTP Server (httpd) 2.4 on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/httpd-container/blob/master/2.4/README.md.", | ||
"iconClass": "icon-apache", | ||
"tags": "builder,httpd", | ||
"supports":"httpd", | ||
"version": "2.4", | ||
"sampleRepo": "https://github.com/openshift/httpd-ex.git" | ||
}, | ||
"from": { | ||
"kind": "DockerImage", | ||
"name": "centos/httpd-24-centos7:latest" | ||
} | ||
}, | ||
{ | ||
"name": "newtag", | ||
"from": { | ||
"kind": "DockerImage", | ||
"name": "centos/ruby-24-centos7:latest" | ||
} | ||
} | ||
] | ||
} | ||
} |
This is a nit but why create a new project?