Functional tests with aws-sdk-rust #242

Merged
lx merged 7 commits from tests/port-integration into main 2022-03-07 18:01:12 +00:00
Owner

Currently the functional tests are made of 7 files, 1 serving as an example to write new tests (simple.rs) and the 6 remaining ones are covering, each one, a specific part of garage:

  • bucket.rs which handles bucket manipulation through S3 (including listing)
  • objects.rs which handles bucket manipulation through S3 (except listing)
  • multipart.rs which handles multipart upload through S3 (except listing)
  • list.rs which handles listing through S3 of the 2 previous items
  • website.rs which handles website endpoint & CORS through S3
  • admin.rs which handles command line related tests

You can see the output of this test in the unit+func tests section of Drone:

running 13 tests
test bucket::test_bucket_all ... ok
test admin::test_admin_bucket_perms ... ok
test list::test_listmultipart ... ok
test list::test_listobjectsv1 ... ok
test list::test_listobjectsv2 ... ok
test objects::test_getobject ... ok
test objects::test_deleteobject ... ok
test objects::test_putobject ... ok
test simple::test_simple ... ok
test website::test_website ... ok
test website::test_website_s3_api ... ok
test multipart::test_uploadlistpart ... ok
test multipart::test_uploadpartcopy ... ok

These tests are not exhaustive but they are a super set of the previous functional tests written in bash (in other words, everything that we tested before in bash is now tested in Rust and some additional features/things that were not tested before are now tested).

This PR is ready to merge.

Currently the functional tests are made of 7 files, 1 serving as an example to write new tests (`simple.rs`) and the 6 remaining ones are covering, each one, a specific part of garage: - `bucket.rs` which handles bucket manipulation through S3 (including listing) - `objects.rs` which handles bucket manipulation through S3 (except listing) - `multipart.rs` which handles multipart upload through S3 (except listing) - `list.rs` which handles listing through S3 of the 2 previous items - `website.rs` which handles website endpoint & CORS through S3 - `admin.rs` which handles command line related tests You can see the output of this test in the `unit+func tests` section of Drone: ``` running 13 tests test bucket::test_bucket_all ... ok test admin::test_admin_bucket_perms ... ok test list::test_listmultipart ... ok test list::test_listobjectsv1 ... ok test list::test_listobjectsv2 ... ok test objects::test_getobject ... ok test objects::test_deleteobject ... ok test objects::test_putobject ... ok test simple::test_simple ... ok test website::test_website ... ok test website::test_website_s3_api ... ok test multipart::test_uploadlistpart ... ok test multipart::test_uploadpartcopy ... ok ``` These tests are not exhaustive but they are a super set of the previous functional tests written in bash (in other words, everything that we tested before in bash is now tested in Rust and some additional features/things that were not tested before are now tested). This PR is ready to merge.
quentin added the
kind
testing
label 2022-03-03 13:51:49 +00:00
quentin force-pushed tests/port-integration from d0f66176b4 to f9e2dc7688 2022-03-04 10:43:59 +00:00 Compare
quentin changed title from Functional tests with aws-sdk-rust to WIP: Functional tests with aws-sdk-rust 2022-03-04 17:28:56 +00:00
quentin force-pushed tests/port-integration from c1d935e296 to 168ead8f5a 2022-03-04 17:45:00 +00:00 Compare
quentin force-pushed tests/port-integration from 168ead8f5a to e6714ab0ce 2022-03-07 16:02:21 +00:00 Compare
quentin force-pushed tests/port-integration from e6714ab0ce to f4e5f7acc5 2022-03-07 16:05:58 +00:00 Compare
quentin force-pushed tests/port-integration from f4e5f7acc5 to c00b2c9948 2022-03-07 16:32:16 +00:00 Compare
quentin changed title from WIP: Functional tests with aws-sdk-rust to Functional tests with aws-sdk-rust 2022-03-07 16:45:54 +00:00
lx approved these changes 2022-03-07 18:00:52 +00:00
lx left a comment
Owner

LGTM

LGTM
lx merged commit c00b2c9948 into main 2022-03-07 18:01:12 +00:00
Sign in to join this conversation.
No reviewers
lx
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#242
No description provided.