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

Test Revamp #246

Merged
merged 13 commits into from
Jan 13, 2023
Merged

Test Revamp #246

merged 13 commits into from
Jan 13, 2023

Conversation

TingDaoK
Copy link
Contributor

Issue #, if available:

  • Our tests are fully depend on the pre-config S3 bucket structure.

Description of changes:

  • Make a helper script to create and clean up the S3 bucket structure
  • Update the tests to make sure all the test created objects fall to upload/
  • AWS_S3_META_REQUEST_TYPE_COPY_OBJECT doesn't work correctly, make it fail hard.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2023

Codecov Report

Merging #246 (58914d2) into main (d4b3ca3) will decrease coverage by 0.97%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
- Coverage   85.20%   84.23%   -0.98%     
==========================================
  Files          17       16       -1     
  Lines        4306     4014     -292     
==========================================
- Hits         3669     3381     -288     
+ Misses        637      633       -4     
Impacted Files Coverage Δ
source/s3_client.c 81.99% <0.00%> (-0.35%) ⬇️
source/s3_request_messages.c 56.81% <0.00%> (-13.89%) ⬇️
source/s3_copy_object.c
source/s3_auto_ranged_get.c 93.01% <0.00%> (+0.42%) ⬆️
source/s3_default_meta_request.c 88.57% <0.00%> (+0.95%) ⬆️

.builder/actions/mock_server_setup.py Show resolved Hide resolved
.builder/actions/mock_server_setup.py Outdated Show resolved Hide resolved
.github/workflows/codecov.yml Show resolved Hide resolved
tests/CMakeLists.txt Show resolved Hide resolved
tests/test_helper/test_helper.py Outdated Show resolved Hide resolved
tests/test_helper/README.md Outdated Show resolved Hide resolved
tests/test_helper/README.md Outdated Show resolved Hide resolved
tests/test_helper/README.md Outdated Show resolved Hide resolved
tests/test_helper/README.md Outdated Show resolved Hide resolved
tests/test_helper/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@graebm graebm left a comment

Choose a reason for hiding this comment

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

trivial fix and shipit

.builder/actions/mock_server_setup.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
source/s3_client.c Show resolved Hide resolved
tests/test_helper/test_helper.py Outdated Show resolved Hide resolved
tests/test_helper/test_helper.py Outdated Show resolved Hide resolved
@TingDaoK TingDaoK merged commit 1a51819 into main Jan 13, 2023
@TingDaoK TingDaoK deleted the test-revamp branch January 13, 2023 18:37
grrtrr added a commit to grrtrr/aws-c-s3 that referenced this pull request May 10, 2023
This fixes the hardcoded URL for the initial HeadObject call used by the CopyObject method.
Also re-enable the tests that were accordingly disabled in awslabs#246.
grrtrr added a commit to grrtrr/aws-c-s3 that referenced this pull request May 10, 2023
This fixes the hardcoded URL for the initial HeadObject call used by the CopyObject method.
Also re-enable the tests that were accordingly disabled in awslabs#246.
DmitriyMusatkin added a commit that referenced this pull request Jun 1, 2023
…ts (#284)

* [CopyObject]: fix hardcoded URL, re-enable tests

This fixes the hardcoded URL for the initial HeadObject call used by the CopyObject method.
Also re-enable the tests that were accordingly disabled in #246.

Co-authored-by: Dmitriy Musatkin <63878209+DmitriyMusatkin@users.noreply.github.com>
Co-authored-by: Dmitriy Musatkin <musatkd@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants