Skip to content

Remove dependence on external mysql image tag order - #11393

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
liggitt:fix-external-mysql-tests
Oct 17, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
liggitt:fix-external-mysql-tests

Conversation

@liggitt

@liggitt liggitt commented Oct 17, 2016 •

Copy link
Copy Markdown
Contributor

Resolves #11381

@miminar

miminar commented Oct 17, 2016

Copy link
Copy Markdown

LGTM [test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to eebbd5c

@legionus

Copy link
Copy Markdown
Contributor

I think it fix #10928 too.

@miminar

miminar commented Oct 17, 2016

Copy link
Copy Markdown

I think it fix #10928 too.

I don't think so, we still import from the same location (docker hub). The timeout can occur again.

@legionus

Copy link
Copy Markdown
Contributor

I don't think so, we still import from the same location (docker hub). The timeout can occur again.

@miminar Yes, I was wrong.

@miminar

miminar commented Oct 17, 2016

Copy link
Copy Markdown

@liggitt good job! Jenkins just passed image cmd images test.

@openshift-bot

Copy link
Copy Markdown
Contributor

@liggitt

liggitt commented Oct 17, 2016

Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot

openshift-bot commented Oct 17, 2016 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10113/) (Image: devenv-rhel7_5185)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to eebbd5c

@openshift-bot
openshift-bot merged commit 92a71d4 into openshift:master Oct 17, 2016
Comment thread test/cmd/images_tests.sh
os::cmd::expect_success "oc tag $project/mysql:5.5 newrepo:latest"
os::cmd::expect_success_and_text "oc get is/newrepo --template='{{(index .spec.tags 0).from.kind}}'" 'ImageStreamImage'
os::cmd::expect_success_and_text 'oc get istag/newrepo:latest -o jsonpath={.image.dockerImageReference}' 'mysql@sha256:'
os::cmd::expect_success_and_text 'oc get istag/newrepo:latest -o jsonpath={.image.dockerImageReference}' 'openshift/mysql-55-centos7@sha256:'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'd be better to use centos/mysql-56-centos7 since it'll be around longer.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, didn't see this until post-merge. @miminar, can you follow up with any additional improvements to lengthen the lifespan of the test?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i didn't make the comment until post merge :)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

Comment thread test/cmd/images_tests.sh
os::cmd::expect_success_and_text "oc get is/mysql --template='{{(len .spec.tags)}}'" '1'
os::cmd::expect_success 'oc delete is/mysql'
os::cmd::expect_failure_and_text 'oc import-image mysql-new-single:latest --from=docker.io/mysql:latest' '\-\-confirm'
os::cmd::expect_success_and_text 'oc import-image mysql-new-single:latest --from=docker.io/mysql:latest --confirm' 'sha256:'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we not get rid of all the docker.io/mysql refs in these tests?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly... the point was to test tagging in things from other sources, but there may be a more contained way to do it. @miminar ^

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on it

@liggitt
liggitt deleted the fix-external-mysql-tests branch October 17, 2016 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants