Skip to content

Commit

Permalink
Fix postgres integration CI (#1330)
Browse files Browse the repository at this point in the history
postgres/postgres@c82207a broke some of the error string expectations we have
for postgres.
  • Loading branch information
samuel40791765 authored Dec 4, 2023
1 parent f3e49b0 commit 730e6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ci/integration/run_postgres_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function postgres_run_tests() {
# SSL tests expect the OpenSSL style of error messages. We patch this to expect AWS-LC's style.
# TODO: Remove this when we make an upstream contribution.
function postgres_patch() {
POSTGRES_ERROR_STRING=("certificate verify failed" "bad decrypt" "sslv3 alert certificate revoked" "tlsv1 alert unknown ca")
POSTGRES_ERROR_STRING=("certificate verify failed" "bad decrypt" "ssl\[a\-z0\-9\/\]\* alert certificate revoked" "tlsv1 alert unknown ca")
AWS_LC_EXPECTED_ERROR_STRING=("CERTIFICATE_VERIFY_FAILED" "BAD_DECRYPT" "SSLV3_ALERT_CERTIFICATE_REVOKED" "TLSV1_ALERT_UNKNOWN_CA")
for i in "${!POSTGRES_ERROR_STRING[@]}"; do
find ./ -type f -name "001_ssltests.pl" | xargs sed -i -e "s|${POSTGRES_ERROR_STRING[$i]}|${AWS_LC_EXPECTED_ERROR_STRING[$i]}|g"
Expand Down

0 comments on commit 730e6e4

Please sign in to comment.