diff --git a/packages/middleware-sdk-s3/src/middleware-sdk-s3.integ.spec.ts b/packages/middleware-sdk-s3/src/middleware-sdk-s3.integ.spec.ts index 52ec2db41a3af..b94232466f6f0 100644 --- a/packages/middleware-sdk-s3/src/middleware-sdk-s3.integ.spec.ts +++ b/packages/middleware-sdk-s3/src/middleware-sdk-s3.integ.spec.ts @@ -70,6 +70,9 @@ describe("middleware-sdk-s3", () => { hostname: "mybucket.com", port: 8888, path: "/my-bucket-path/my-key", + headers: { + host: "mybucket.com:8888", + }, }); await client.putObject({ diff --git a/packages/middleware-sdk-s3/src/validate-bucket-name.spec.ts b/packages/middleware-sdk-s3/src/validate-bucket-name.spec.ts index 0f70e83b80dce..b0864379f8814 100644 --- a/packages/middleware-sdk-s3/src/validate-bucket-name.spec.ts +++ b/packages/middleware-sdk-s3/src/validate-bucket-name.spec.ts @@ -11,7 +11,7 @@ describe("validateBucketNameMiddleware", () => { }); it("throws error if Bucket parameter contains '/'", async () => { - const handler = validateBucketNameMiddleware()(mockNextHandler, {} as any); + const handler = validateBucketNameMiddleware({} as any)(mockNextHandler, {} as any); const bucket = "bucket/part/of/key"; let error; try { @@ -29,7 +29,7 @@ describe("validateBucketNameMiddleware", () => { }); it("doesn't throw error if Bucket parameter has no '/'", async () => { - const handler = validateBucketNameMiddleware()(mockNextHandler, {} as any); + const handler = validateBucketNameMiddleware({} as any)(mockNextHandler, {} as any); const args = { input: { Bucket: "bucket", @@ -42,7 +42,7 @@ describe("validateBucketNameMiddleware", () => { it("should not validate bucket name if the bucket name is an ARN", async () => { mockValidateArn.mockReturnValue(true); - const handler = validateBucketNameMiddleware()(mockNextHandler, {} as any); + const handler = validateBucketNameMiddleware({} as any)(mockNextHandler, {} as any); const args = { input: { Bucket: "arn:aws:s3:us-east-1:123456789012:accesspoint/myendpoint", diff --git a/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts b/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts index 7e9a37d9d0c4f..0944609ae18d8 100644 --- a/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts +++ b/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts @@ -116,6 +116,7 @@ export const initializeWithMaximalConfiguration = () => { disableS3ExpressSessionAuth: false, useGlobalEndpoint: false, signingEscapePath: false, + bucketEndpoint: false, }; const s3 = new S3Client(config);