Skip to content

Commit 0cdcd05

Browse files
authored
fix the github actions workflow (#30)
* fix the github actions workflow * add a delay to see what happens * try setting an auth token * remove config to see what happens * remove comments
1 parent 89b4af8 commit 0cdcd05

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.github/workflows/cdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
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: |
@@ -40,7 +40,7 @@ jobs:
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: |

.github/workflows/integration-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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: |
@@ -71,6 +71,7 @@ jobs:
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

.github/workflows/preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
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:

tests/test_outage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)