Skip to content

Commit e30f0fe

Browse files
authored
migrate from CI api key to CI auth token (#12)
1 parent 4c0c7c4 commit e30f0fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/run-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
cd collect-raw-metric-data-extension && make install
4747
- name: Setup LocalStack
4848
env:
49-
LOCALSTACK_API_KEY: ${{ secrets.TEST_LOCALSTACK_API_KEY }}
49+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.TEST_LOCALSTACK_AUTH_TOKEN }}
5050
run: |
5151
source .venv/bin/activate
5252
pip install localstack
@@ -59,7 +59,7 @@ jobs:
5959
echo "Startup complete"
6060
- name: Run Moto Integration Tests against LocalStack
6161
env:
62-
LOCALSTACK_API_KEY: ${{ secrets.TEST_LOCALSTACK_API_KEY }}
62+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.TEST_LOCALSTACK_AUTH_TOKEN }}
6363
run: |
6464
source .venv/bin/activate
6565
python -m pytest --durations=10 --services=${{ inputs.selected-services || 'all' }} --timeout=300 --capture=no --junitxml=target/reports/pytest.xml moto/tests --tb=line

conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def _startup_localstack():
119119
_localstack_health_check()
120120
except:
121121
os.system(
122-
"DNS_ADDRESS=127.0.0.1 EXTENSION_DEV_MODE=1 DEBUG=1 DISABLE_EVENTS=1 LOCALSTACK_API_KEY=$LOCALSTACK_API_KEY localstack start -d"
122+
"DNS_ADDRESS=127.0.0.1 EXTENSION_DEV_MODE=1 DEBUG=1 DISABLE_EVENTS=1 LOCALSTACK_AUTH_TOKEN=$LOCALSTACK_AUTH_TOKEN localstack start -d"
123123
)
124124

125125
_localstack_health_check()

0 commit comments

Comments
 (0)