Skip to content

Commit

Permalink
remove underscore character in API auth test header names
Browse files Browse the repository at this point in the history
  • Loading branch information
Samweli committed Apr 18, 2024
1 parent d80536a commit 9e36fc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/mock/stac_api_auth_server_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def catalog():
@app.route("/collections")
def collections():
headers = request.headers
auth = headers.get("API_HEADER_KEY")
auth = headers.get("APIHeaderKey")
if auth == 'test_api_header_key':
collections = DATA_PATH / "collections.json"
with collections.open() as fl:
Expand Down
4 changes: 2 additions & 2 deletions test/test_stac_api_client_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_auth_collections_fetch(self):
cfg_id = self.set_auth_method(
"STAC_API_AUTH_TEST",
"APIHeader",
{"API_HEADER_KEY": "test_api_header_key"}
{"APIHeaderKey": "test_api_header_key"}
)

api_client = Client(
Expand All @@ -78,7 +78,7 @@ def test_auth_collections_fetch(self):
cfg_id = self.set_auth_method(
"STAC_API_AUTH_TEST",
"APIHeader",
{"API_HEADER_KEY": "unauthorized_api_header_key"}
{"APIHeaderKey": "unauthorized_api_header_key"}
)

api_client = Client(
Expand Down

0 comments on commit 9e36fc4

Please sign in to comment.