Skip to content

Commit 0c5b41c

Browse files
committed
1 parent 0f14acb commit 0c5b41c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
httpx
22
moto[dynamodb, ssm]>=4.0.9,<5.0
33
pytest
4+
fastapi>= 0.122.0

lib/ingestor-api/runtime/tests/test_collection_endpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_auth_publish_collection(
2020

2121
def test_unauth_publish_collection(client, example_stac_collection):
2222
response = client.post(publish_collections_endpoint, json=example_stac_collection)
23-
assert response.status_code == 403
23+
assert response.status_code == 401
2424

2525

2626
@patch("src.collection.delete")
@@ -38,4 +38,4 @@ def test_unauth_delete_collection(client, example_stac_collection):
3838
response = client.delete(
3939
delete_collection_endpoint.format(collection_id=example_stac_collection["id"]),
4040
)
41-
assert response.status_code == 403
41+
assert response.status_code == 401

lib/ingestor-api/runtime/tests/test_registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_unauthenticated_create(self):
6565
json=jsonable_encoder(self.example_ingestion.item),
6666
)
6767

68-
assert response.status_code == 403
68+
assert response.status_code == 401
6969

7070
def test_create(self, client_authenticated, collection_exists, asset_exists):
7171
response = self.api_client.post(

0 commit comments

Comments
 (0)