From bf3744906a11041a9a5aac30c305c4ab2d82936d Mon Sep 17 00:00:00 2001 From: Landon James Date: Wed, 25 Sep 2024 13:18:28 -0700 Subject: [PATCH] Update PutBucketLifecycleConfiguration test It now checks the Crc32 checksum header instead of Md5 Update test for Authorization header --- aws/sdk/aws-models-extra/s3-tests.smithy | 4 +--- aws/sdk/integration-tests/s3/tests/endpoints.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/aws/sdk/aws-models-extra/s3-tests.smithy b/aws/sdk/aws-models-extra/s3-tests.smithy index 59ced8bc10e..bee98811f63 100644 --- a/aws/sdk/aws-models-extra/s3-tests.smithy +++ b/aws/sdk/aws-models-extra/s3-tests.smithy @@ -111,9 +111,7 @@ apply PutBucketLifecycleConfiguration @httpRequestTests([ protocol: "aws.protocols#restXml", uri: "/", headers: { - // we can assert this, but when this test is promoted, it can't assert - // on the exact contents - "content-md5": "JP8DTuCSH6yDC8wNGg4+mA==", + "x-amz-checksum-crc32": "11+f3g==", }, bodyMediaType: "application/xml", body: """ diff --git a/aws/sdk/integration-tests/s3/tests/endpoints.rs b/aws/sdk/integration-tests/s3/tests/endpoints.rs index 6b4f88c8f81..11b370ecc3c 100644 --- a/aws/sdk/integration-tests/s3/tests/endpoints.rs +++ b/aws/sdk/integration-tests/s3/tests/endpoints.rs @@ -80,7 +80,7 @@ async fn multi_region_access_points() { let auth_header = captured_request.headers().get("AUTHORIZATION").unwrap(); // Verifies that the sigv4a signing algorithm was used, that the signing scope doesn't include a region, and that the x-amz-region-set header was signed. let expected_start = - "AWS4-ECDSA-P256-SHA256 Credential=ANOTREAL/20090213/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-region-set;x-amz-user-agent, Signature="; + "AWS4-ECDSA-P256-SHA256 Credential=ANOTREAL/20090213/s3/aws4_request, SignedHeaders=host;x-amz-checksum-mode;x-amz-content-sha256;x-amz-date;x-amz-region-set;x-amz-user-agent, Signature="; assert!( auth_header.starts_with(expected_start),