Skip to content

Commit

Permalink
update pipeline tests for CDN dedicated WAF to specify alarm notifica…
Browse files Browse the repository at this point in the history
…tion email
  • Loading branch information
markdboyd committed Sep 19, 2024
1 parent 35d1a0c commit 22b7e93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions acceptance/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ tests() {
"$PLAN_NAME" \
"$INSTANCE" \
-c "{\"domains\": \"$DOMAIN_0, $DOMAIN_1\", \"forward_cookies\": \"cookieone, cookietwo\", \"forward_headers\": \"x-one-header,x-two-header\", \"error_responses\": {\"404\": \"/errors/404.html\"}}"
elif [[ "${PLAN_NAME}" == "domain-with-cdn-dedicated-wafP" ]]; then
echo "Creating the service instance"
cf create-service \
"$SERVICE_NAME" \
"$PLAN_NAME" \
"$INSTANCE" \
-c "{\"domains\": \"$DOMAIN_0, $DOMAIN_1\", \"alarm_notification_email\": \"$ALARM_NOTIFICATION_EMAIL\", \"forward_cookies\": \"cookieone, cookietwo\", \"forward_headers\": \"x-one-header,x-two-header\", \"error_responses\": {\"404\": \"/errors/404.html\"}}"
else
echo "Creating the service instance"
cf create-service \
Expand Down
2 changes: 2 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ jobs:
TEST_DOMAIN_0: ((staging-test-domain-0))
HOSTED_ZONE_ID_1: ((staging-test-hosted-zone-id-1))
TEST_DOMAIN_1: ((staging-test-domain-1))
ALARM_NOTIFICATION_EMAIL: ((alarm-notification-email))
run:
path: /app/acceptance/run.sh
on_failure:
Expand Down Expand Up @@ -623,6 +624,7 @@ jobs:
params:
<<: *acceptance-tests-production-params
PLAN_NAME: "domain-with-cdn-dedicated-waf"
ALARM_NOTIFICATION_EMAIL: ((alarm-notification-email))
run:
path: /app/acceptance/run.sh
on_failure:
Expand Down

0 comments on commit 22b7e93

Please sign in to comment.