Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add S3 CORS test with referer header and regenerate CORS snaphots #8776

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

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Jul 31, 2023

Following a support case, added a test case validating that AWS does not return CORS headers if no Origin header is present, even if the referer one is there.

I took the opportunity to regenerate the snapshots, knowing there was now an issue regarding ACL, so I've added a new fixture to allow ACL on bucket. Something changed on AWS side, so I've fixed a small field for an Exception returned.

Also refactored a bit the code to use the fix made in #6865, allowing us to add fields to the exception at instantiation as parameters and not by attaching them directly to the exception object like before.

\cc @steffyP for the snapshot regeneration/fixture allowing AWS tests

@bentsku bentsku added semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases aws:s3 Amazon Simple Storage Service semver: patch Non-breaking changes which can be included in patch releases and removed semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases labels Jul 31, 2023
@bentsku bentsku self-assigned this Jul 31, 2023
@bentsku bentsku changed the title add S3 CORS test with referer header ad regenerate CORS snaphots add S3 CORS test with referer header and regenerate CORS snaphots Jul 31, 2023
@github-actions
Copy link

github-actions bot commented Jul 31, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 27m 41s ⏱️
2 040 tests 1 656 ✔️ 384 💤 0
2 041 runs  1 656 ✔️ 385 💤 0

Results for commit 4c7a926.

♻️ This comment has been updated with latest results.

@coveralls
Copy link

coveralls commented Jul 31, 2023

Coverage Status

coverage: 81.81% (-0.01%) from 81.82% when pulling 4c7a926 on add-referer-cors-test-s3 into 56b93e4 on master.

@bentsku bentsku marked this pull request as ready for review July 31, 2023 17:17
@bentsku bentsku requested a review from macnev2013 as a code owner July 31, 2023 17:17
@bentsku bentsku requested a review from steffyP August 7, 2023 18:20
@bentsku bentsku force-pushed the add-referer-cors-test-s3 branch 3 times, most recently from 876e72e to 778b113 Compare August 8, 2023 02:17
@bentsku bentsku force-pushed the add-referer-cors-test-s3 branch from 778b113 to 4c7a926 Compare August 8, 2023 14:13
Copy link
Member

@steffyP steffyP left a comment

Choose a reason for hiding this comment

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

LGTM 👍 thanks for updating the snapshots @bentsku 🙏 🔝

@bentsku bentsku merged commit 46a62fb into master Aug 8, 2023
@bentsku bentsku deleted the add-referer-cors-test-s3 branch August 8, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:s3 Amazon Simple Storage Service semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants