mirror of
https://github.com/containers/buildah.git
synced 2026-02-05 09:45:38 +01:00
Merge pull request #2924 from containers/gating_test_SAN_fix
Workaround for RHEL gating test failure
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user