Repository navigation
Add tests for https://github.com/openshift/origin/issues/10402 - #10622
Conversation
|
@mfojtik This test works, but because there is apparently a settling time for the status contents, I temporarily added a five-second sleep (which is overkill at least on my system). I'm not sure how to get So now I'm just posting what I have and hoping you can help me get across the finish line on this. |
|
[test] |
|
capture the value you want it to equal, then try_until_text? |
|
|
||
| # https://github.com/openshift/origin/issues/10402 | ||
| # Make latest a --reference to 8.1 | ||
| os::cmd::expect_success 'oc tag --source=docker $reference_81 --reference wildfly:latest' |
There was a problem hiding this comment.
os::cmd::expect_success "oc tag --source=docker '${reference_81}' --reference wildfly:latest"
^ ^ ^ ^^ ^Proves that generation is always increased when tags are updated. Signed-off-by: Stephen Gallagher <[email protected]>
52ed102 to
c603b8d
Compare
|
@stevekuznetsov @liggitt OK, I think I figured out how to avoid those sleeps (and I fixed the minor issues Steve identified as well). PTAL |
|
Evaluated for origin test up to c603b8d |
| # Make latest a --reference to 8.1 | ||
| os::cmd::expect_success "oc tag --source=docker '${reference_81}' --reference wildfly:latest" | ||
| reference_spec_tag_generation="$(oc get imagestreams/wildfly --template='{{range .spec.tags}}{{ if eq .name "latest"}}{{ .generation }}{{end}}{{end}}')" | ||
| os::cmd::expect_success 'test $reference_spec_tag_generation -gt $orig_spec_tag_generation' |
There was a problem hiding this comment.
Previous comment seems to have gotten lost: #10622 (comment)
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/8508/) |
|
Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again |
Proves that generation is always increased when tags are updated.
Signed-off-by: Stephen Gallagher [email protected]