diff --git a/packages/lambda-tiler/src/__test__/tile.import.test.ts b/packages/lambda-tiler/src/__test__/tile.import.test.ts index dc1246ba4..95b9adceb 100644 --- a/packages/lambda-tiler/src/__test__/tile.import.test.ts +++ b/packages/lambda-tiler/src/__test__/tile.import.test.ts @@ -90,7 +90,7 @@ o.spec('Import', () => { // When ...Then ... const res = await Import(req); - o(res.body).equals('{"status":500,"message":"Invalid s3 path"}'); + o(res.body).equals('{"status":400,"message":"Invalid s3 path: s3::testbucket/"}'); }); o('should return Unable to access bucket', async () => { @@ -100,7 +100,7 @@ o.spec('Import', () => { // When ...Then ... const res = await Import(req); - o(res.body).equals('{"status":500,"message":"Unable to Access the bucket"}'); + o(res.body).equals('{"status":403,"message":"Unable to Access the s3 bucket"}'); }); o('should return Imagery not found', async () => { diff --git a/packages/lambda-tiler/src/routes/import.ts b/packages/lambda-tiler/src/routes/import.ts index c0dc6c455..2656fe2f0 100644 --- a/packages/lambda-tiler/src/routes/import.ts +++ b/packages/lambda-tiler/src/routes/import.ts @@ -26,9 +26,9 @@ export async function Import(req: LambdaHttpRequest): Promise