Skip to content

Commit de9e465

Browse files
authored
fix(profiler): workaround certificate expiration issue in integration tests (#4955)
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/
1 parent 25cd7a1 commit de9e465

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

profiler/kokoro/integration_test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ set -eo pipefail
2828
# Display commands being run.
2929
set -x
3030

31+
# Remove expired certificate; otherwise `go mod download` may fail.
32+
# See https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
33+
# for more context.
34+
sudo apt-get install -y ca-certificates
35+
sudo rm -f /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
36+
sudo update-ca-certificates
37+
3138
cd $(dirname $0)/..
3239

3340
export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_KEYSTORE_DIR}/72935_cloud-profiler-e2e-service-account-key"

0 commit comments

Comments
 (0)