Skip to content

Commit cadcbfe

Browse files
committed
add a debug step
1 parent 729f44d commit cadcbfe

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,24 @@ jobs:
3939
bash solutions/dynamodb-outage.sh
4040
bash solutions/route53-failover.sh
4141
42+
- name: Debug steps
43+
run: |
44+
dig @127.0.0.1 test.hello-localstack.com CNAME +short
45+
export PRIMARY_API_REGION=us-east-1
46+
curl -L --request POST 'http://localhost:4566/_localstack/chaos/faults' \
47+
--header 'Content-Type: application/json' \
48+
--data "[
49+
{\"service\": \"apigateway\", \"region\": \"${PRIMARY_API_REGION}\"},
50+
{\"service\": \"lambda\", \"region\": \"${PRIMARY_API_REGION}\"}
51+
]"
52+
sleep 40
53+
dig @127.0.0.1 test.hello-localstack.com CNAME +short
54+
curl --location --request POST 'http://localhost.localstack.cloud:4566/_localstack/chaos/faults' \
55+
--header 'Content-Type: application/json' \
56+
--data '[]'
57+
sleep 30
58+
dig @127.0.0.1 test.hello-localstack.com CNAME +short
59+
4260
- name: Run Integration Tests
4361
run: |
4462
pip3 install boto3 pytest requests dnspython

0 commit comments

Comments
 (0)