Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the public HTTP dependency from aws-sigv4 #2921

Merged
merged 1 commit into from
Aug 16, 2023
Merged

Remove the public HTTP dependency from aws-sigv4 #2921

merged 1 commit into from
Aug 16, 2023

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Aug 15, 2023

Motivation and Context

Removes the public http dependency from the aws-sigv4 crate to avoid compatibility issues with http = 1.0 and to support the http refactor

Description

  • Changes SignableRequest::new to remove the direct exposure of HTTP types
  • Assorted test refactorings as a result
  • Update calling code

Testing

IT/UT

Checklist

TODO: changelog

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rcoh rcoh added the breaking-change This will require a breaking change label Aug 15, 2023
@rcoh rcoh requested a review from a team as a code owner August 15, 2023 13:59
@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@rcoh rcoh requested a review from a team as a code owner August 15, 2023 14:55
@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

Removes the public http dependency from the aws-sigv4 crate to avoid compatibility issues with http = 1.0 and to support the http refactor
@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

}

#[test]
fn test_trim_all_does_nothing_when_there_are_no_spaces(s in "[^ ]*") {
assert_eq!(trim_all(s.as_bytes()).as_ref(), s.as_bytes());
}
}

#[test]
fn test_normalize_header_value_returns_expected_error_on_invalid_utf8() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this test still relevant?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, invalid UTF-8 headers can't make it in as input anymore

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, got it. Makes sense.

@rcoh rcoh added this pull request to the merge queue Aug 16, 2023
Merged via the queue into main with commit 2d61502 Aug 16, 2023
@rcoh rcoh deleted the sigv4-api-http branch August 16, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This will require a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants