Skip to content

Commit

Permalink
enable initial acm test
Browse files Browse the repository at this point in the history
  • Loading branch information
abtreece committed Sep 24, 2024
1 parent b5bc7ad commit 4804052
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,14 @@ jobs:
test/integration/zookeeper/test.sh
test/integration/expect/check.sh
env:
ZOOKEEPER_NODE: zookeeper
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
10 changes: 5 additions & 5 deletions test/integration/acm/test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4804052

Please sign in to comment.