From 4804052ea1634615d3b1f3def6026116beec762f Mon Sep 17 00:00:00 2001 From: Britt Treece Date: Tue, 24 Sep 2024 15:19:56 -0500 Subject: [PATCH] enable initial acm test --- .github/workflows/integration-tests.yml | 12 +++++++++++- test/integration/acm/test.sh | 10 +++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 0dc9ff463..e45818ea2 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -156,4 +156,14 @@ jobs: test/integration/zookeeper/test.sh test/integration/expect/check.sh env: - ZOOKEEPER_NODE: zookeeper \ No newline at end of file + ZOOKEEPER_NODE: zookeeper + + - name: Test ACM + run: | + test/integration/acm/test.sh + env: + AWS_ACCESS_KEY_ID: "test" + AWS_SECRET_ACCESS_KEY: "test" + AWS_REGION: "us-east-1" + AWS_DEFAULT_REGION: "us-east-1" + ACM_ENDPOINT_URL: http://localstack:4566 \ No newline at end of file diff --git a/test/integration/acm/test.sh b/test/integration/acm/test.sh index 8edcdad88..d4234df39 100755 --- a/test/integration/acm/test.sh +++ b/test/integration/acm/test.sh @@ -1,14 +1,14 @@ #!/bin/bash -x -export AWS_ACCESS_KEY_ID="test" -export AWS_SECRET_ACCESS_KEY="test" -export AWS_DEFAULT_REGION="us-east-1" -export AWS_REGION="us-east-1" +export AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" +export AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" +export AWS_DEFAULT_REGION="$AWS_DEFAULT_REGION" +export AWS_REGION="$AWS_REGION" CERTIFICATE_ID=$(aws acm request-certificate --domain-name www.example.com \ --validation-method DNS \ --idempotency-token 1234 \ --options CertificateTransparencyLoggingPreference=DISABLED \ - --endpoint-url http://localhost:4566 --output text | cut -d '/' -f 2) + --endpoint-url $ACM_ENDPOINT_URL --output text | cut -d '/' -f 2) echo $CERTIFICATE_ID \ No newline at end of file