Skip to content

Commit

Permalink
fix: workaround certificate expiration issue in integration tests (#773)
Browse files Browse the repository at this point in the history
Let's Encrypt CA certification expiration is causing integration tests to fail.
This commit works around this problem by removing the problematic certificate.

Context: https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
  • Loading branch information
amchiclet authored Oct 6, 2021
1 parent c25f283 commit 9d4908b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions system-test/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ set -eo pipefail
# Display commands being run.
set -x

# Remove expired certificate; otherwise `go get` may fail.
# See https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
# for more context.
sudo apt-get install -y ca-certificates
sudo rm -f /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
sudo update-ca-certificates

cd $(dirname $0)/..

SERVICE_KEY="${KOKORO_KEYSTORE_DIR}/72935_cloud-profiler-e2e-service-account-key"
Expand Down

0 comments on commit 9d4908b

Please sign in to comment.