@@ -12,7 +12,9 @@ import aws.smithy.kotlin.runtime.auth.awssigning.DefaultAwsSigner
1212import aws.smithy.kotlin.runtime.auth.awssigning.internal.AWS_CHUNKED_THRESHOLD
1313import aws.smithy.kotlin.runtime.collections.Attributes
1414import aws.smithy.kotlin.runtime.collections.get
15- import aws.smithy.kotlin.runtime.http.*
15+ import aws.smithy.kotlin.runtime.http.HttpBody
16+ import aws.smithy.kotlin.runtime.http.HttpMethod
17+ import aws.smithy.kotlin.runtime.http.SdkHttpClient
1618import aws.smithy.kotlin.runtime.http.operation.*
1719import aws.smithy.kotlin.runtime.http.request.HttpRequest
1820import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder
@@ -149,8 +151,8 @@ public abstract class AwsHttpSignerTestBase(
149151 val op = buildOperation(streaming = true , replayable = false , requestBody = " a" .repeat(AWS_CHUNKED_THRESHOLD + 1 ))
150152 val expectedDate = " 20201016T195600Z"
151153 val expectedSig = " AWS4-HMAC-SHA256 Credential=AKID/20201016/us-east-1/demo/aws4_request, " +
152- " SignedHeaders=content-encoding;host;transfer-encoding; x-amz-archive-description;x-amz-date;x-amz-decoded-content-length;x-amz-security-token, " +
153- " Signature=ac341b9b248a0b23d2fcd9f7e805f4eb0b8a1b789bb23a8ec6adc6c48dd084ad "
154+ " SignedHeaders=content-encoding;host;x-amz-archive-description;x-amz-date;x-amz-decoded-content-length;x-amz-security-token, " +
155+ " Signature=ef06c95647c4d2daa6c89ac90274f1c780777cba8eaab772df6d8009def3eb8f "
154156
155157 val signed = getSignedRequest(op)
156158 assertEquals(expectedDate, signed.headers[" X-Amz-Date" ])
@@ -162,8 +164,8 @@ public abstract class AwsHttpSignerTestBase(
162164 val op = buildOperation(streaming = true , replayable = true , requestBody = " a" .repeat(AWS_CHUNKED_THRESHOLD + 1 ))
163165 val expectedDate = " 20201016T195600Z"
164166 val expectedSig = " AWS4-HMAC-SHA256 Credential=AKID/20201016/us-east-1/demo/aws4_request, " +
165- " SignedHeaders=content-encoding;host;transfer-encoding; x-amz-archive-description;x-amz-date;x-amz-decoded-content-length;x-amz-security-token, " +
166- " Signature=ac341b9b248a0b23d2fcd9f7e805f4eb0b8a1b789bb23a8ec6adc6c48dd084ad "
167+ " SignedHeaders=content-encoding;host;x-amz-archive-description;x-amz-date;x-amz-decoded-content-length;x-amz-security-token, " +
168+ " Signature=ef06c95647c4d2daa6c89ac90274f1c780777cba8eaab772df6d8009def3eb8f "
167169
168170 val signed = getSignedRequest(op)
169171 assertEquals(expectedDate, signed.headers[" X-Amz-Date" ])
@@ -176,8 +178,8 @@ public abstract class AwsHttpSignerTestBase(
176178 val expectedDate = " 20201016T195600Z"
177179 // should have same signature as testSignAwsChunkedStreamNonReplayable(), except for the hash, since the body is different
178180 val expectedSig = " AWS4-HMAC-SHA256 Credential=AKID/20201016/us-east-1/demo/aws4_request, " +
179- " SignedHeaders=content-encoding;host;transfer-encoding; x-amz-archive-description;x-amz-date;x-amz-decoded-content-length;x-amz-security-token, " +
180- " Signature=3f0277123c9ed8a8858f793886a0ac0fcb457bc54401ffc22d470f373397cff0 "
181+ " SignedHeaders=content-encoding;host;x-amz-archive-description;x-amz-date;x-amz-decoded-content-length;x-amz-security-token, " +
182+ " Signature=a902702b57057a864bf41cc22ee846a1b7bd047e22784367ec6a459f6791330e "
181183
182184 val signed = getSignedRequest(op)
183185 assertEquals(expectedDate, signed.headers[" X-Amz-Date" ])
0 commit comments