Skip to content

Commit c1ece35

Browse files
authored
chore: update node lambda runtime to latest (#214)
* chore: update node lambda runtime to latest * fix(tests): 401, not 403 Changed in https://github.com/fastapi/fastapi/releases/tag/0.122.0
1 parent 324c6be commit c1ece35

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

lib/database/PgBouncer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class PgBouncer extends Construct {
196196

197197
// Update pgbouncerSecret to contain pgstacSecret values but with new value for host
198198
const secretUpdaterFn = new lambda.Function(this, "SecretUpdaterFunction", {
199-
runtime: lambda.Runtime.NODEJS_20_X,
199+
runtime: lambda.Runtime.NODEJS_LATEST,
200200
handler: "index.handler",
201201
code: lambda.Code.fromAsset(
202202
path.join(__dirname, "lambda/pgbouncer-secret-updater")
@@ -228,7 +228,7 @@ export class PgBouncer extends Construct {
228228
this,
229229
"HealthCheckFunction",
230230
{
231-
runtime: lambda.Runtime.NODEJS_20_X,
231+
runtime: lambda.Runtime.NODEJS_LATEST,
232232
handler: "index.handler",
233233
timeout: Duration.minutes(10),
234234
code: lambda.Code.fromAsset(
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)