Skip to content

Commit

Permalink
Merge pull request containers#2924 from containers/gating_test_SAN_fix
Browse files Browse the repository at this point in the history
Workaround for RHEL gating test failure
  • Loading branch information
openshift-merge-robot authored Jan 21, 2021
2 parents 3f5ba7e + c48ab4a commit d460e2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/authenticate.bats
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ load helpers
expect_output --substring "Writing manifest to image destination"

# With tls-verify=true, should fail due to self-signed cert
run_buildah 125 push --signature-policy ${TESTSDIR}/policy.json --tls-verify=true alpine localhost:5000/my-alpine
# The magic GODEBUG is needed for RHEL on 2021-01-20. Without it,
# we get the following error instead of 'unknown authority':
# x509: certificate relies on legacy Common Name field, use SANs or [...]
# It is possible that this is a temporary workaround, and Go
# may remove it without notice. We'll deal with that then.
GODEBUG=x509ignoreCN=0 run_buildah 125 push --signature-policy ${TESTSDIR}/policy.json --tls-verify=true alpine localhost:5000/my-alpine
expect_output --substring " x509: certificate signed by unknown authority" \
"push with --tls-verify=true"

Expand Down

0 comments on commit d460e2e

Please sign in to comment.