Skip to content

Commit 0a29e7d

Browse files
committed
Fix header casing for API key in tests to ensure consistency
1 parent dc0b5c5 commit 0a29e7d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/deploy-apprunner.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ jobs:
9797
9898
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
9999
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
100-
101-
echo "image_uri=$ECR_REGISTRY/$ECR_REPOSITORY:latest" >> $GITHUB_OUTPUT
100+
101+
echo "image_uri=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
102102
103103
- name: Deploy to App Runner and wait
104104
run: |

tests/quick_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_global_edgar_endpoint_smoke(monkeypatch):
1414
client = flask_app.test_client()
1515

1616
api_key = os.getenv('TEST_API_KEY')
17-
headers = {'X-API-Key': api_key}
17+
headers = {'X-API-KEY': api_key}
1818

1919
resp = client.get("/global/edgar?country=United%20States&pollutant=PM2.5&window=3", headers=headers)
2020

tests/test_global_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def auth_headers(self):
2727
api_key = os.getenv('TEST_API_KEY')
2828
if not api_key:
2929
pytest.fail("TEST_API_KEY environment variable not set. Please set it in GitHub Secrets.")
30-
return {'X-API-Key': api_key}
30+
return {'X-API-KEY': api_key}
3131

3232
def test_global_emissions_basic_response(self, client, auth_headers):
3333
"""Test /global/emissions returns 200 and proper structure."""

0 commit comments

Comments
 (0)