@@ -12,7 +12,9 @@ import aws.smithy.kotlin.runtime.auth.awssigning.DefaultAwsSigner
12
12
import aws.smithy.kotlin.runtime.auth.awssigning.internal.AWS_CHUNKED_THRESHOLD
13
13
import aws.smithy.kotlin.runtime.collections.Attributes
14
14
import 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
16
18
import aws.smithy.kotlin.runtime.http.operation.*
17
19
import aws.smithy.kotlin.runtime.http.request.HttpRequest
18
20
import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder
@@ -149,8 +151,8 @@ public abstract class AwsHttpSignerTestBase(
149
151
val op = buildOperation(streaming = true , replayable = false , requestBody = " a" .repeat(AWS_CHUNKED_THRESHOLD + 1 ))
150
152
val expectedDate = " 20201016T195600Z"
151
153
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 "
154
156
155
157
val signed = getSignedRequest(op)
156
158
assertEquals(expectedDate, signed.headers[" X-Amz-Date" ])
@@ -162,8 +164,8 @@ public abstract class AwsHttpSignerTestBase(
162
164
val op = buildOperation(streaming = true , replayable = true , requestBody = " a" .repeat(AWS_CHUNKED_THRESHOLD + 1 ))
163
165
val expectedDate = " 20201016T195600Z"
164
166
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 "
167
169
168
170
val signed = getSignedRequest(op)
169
171
assertEquals(expectedDate, signed.headers[" X-Amz-Date" ])
@@ -176,8 +178,8 @@ public abstract class AwsHttpSignerTestBase(
176
178
val expectedDate = " 20201016T195600Z"
177
179
// should have same signature as testSignAwsChunkedStreamNonReplayable(), except for the hash, since the body is different
178
180
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 "
181
183
182
184
val signed = getSignedRequest(op)
183
185
assertEquals(expectedDate, signed.headers[" X-Amz-Date" ])
0 commit comments