File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 2525 - name : Setup Node.js
2626 uses : actions/setup-node@v3
2727 with :
28- node-version : 20
28+ node-version : 22
2929
3030 - name : Install CDK
3131 run : |
4040 configuration : DEBUG=1
4141 install-awslocal : ' true'
4242 env :
43- LOCALSTACK_API_KEY : ${{ secrets.LOCALSTACK_API_KEY }}
43+ LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
4444
4545 - name : Install dependencies
4646 run : |
Original file line number Diff line number Diff line change @@ -43,14 +43,14 @@ jobs:
4343 pip install requests boto3 pytest localstack-sdk-python
4444
4545 - name : Start LocalStack
46- uses : LocalStack/setup-localstack@v0.2.3
46+ uses : LocalStack/setup-localstack@main
4747 with :
4848 image-tag : ' latest'
4949 use-pro : ' true'
5050 configuration : LS_LOG=trace
5151 install-awslocal : ' true'
5252 env :
53- LOCALSTACK_API_KEY : ${{ secrets.LOCALSTACK_API_KEY }}
53+ LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
5454
5555 - name : Deploy infrastructure
5656 run : |
7171 AWS_REGION : us-east-1
7272 AWS_ACCESS_KEY_ID : test
7373 AWS_SECRET_ACCESS_KEY : test
74+ LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
7475 run : |
7576 pytest tests/test_outage.py
7677
Original file line number Diff line number Diff line change 1515 - name : Setup Node.js
1616 uses : actions/setup-node@v4
1717 with :
18- node-version : 20
18+ node-version : 22
1919 - name : LocalStack Preview
2020 uses : LocalStack/setup-localstack@main
2121 with :
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ def test_dynamodb_outage(api_endpoint):
4444 with fault_configuration (fault_rules = [outage_rule ]):
4545 print ("DynamoDB outage initiated within context." )
4646
47+ time .sleep (2 ) # Add a 2-second delay
48+
4749 # Attempt to create a quiz during the outage
4850 create_quiz_payload = {
4951 "Title" : "Outage Test Quiz" ,
You can’t perform that action at this time.
0 commit comments