From 730e6e4e373226cfce336e8612a243886e29cd14 Mon Sep 17 00:00:00 2001 From: Samuel Chiang Date: Mon, 4 Dec 2023 15:47:12 -0800 Subject: [PATCH] Fix postgres integration CI (#1330) postgres/postgres@c82207a broke some of the error string expectations we have for postgres. --- tests/ci/integration/run_postgres_integration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ci/integration/run_postgres_integration.sh b/tests/ci/integration/run_postgres_integration.sh index 1a7e5dbe1c..306299a9a5 100755 --- a/tests/ci/integration/run_postgres_integration.sh +++ b/tests/ci/integration/run_postgres_integration.sh @@ -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"