Tests: Add garage integration tests #240

Merged
KokaKiwi merged 8 commits from KokaKiwi/garage:integration-tests-2 into main 2022-02-11 11:36:23 +00:00
Owner

Use the aws-sdk-s3 crate as S3 client implementation.

To test-run the suite:

$ cargo test -p garage --test integration

The integration test can be configured by setting some env vars:

  • GARAGE_TEST_INTEGRATION_PORT: Garage server port to run on (default: 49995)
    NB: The config will actually bind the specified port plus the two following (49996 and 49997 for default value)
  • GARAGE_TEST_INTEGRATION_PATH: Garage test runtime directory (default: /tmp/garage-integ-test-<PORT>)
  • GARAGE_TEST_INTEGRATION_EXE: Garage executable path (default: $CARGO_BIN_EXE_garage)
Use the [`aws-sdk-s3`](https://crates.io/crates/aws-sdk-s3) crate as S3 client implementation. To test-run the suite: ``` $ cargo test -p garage --test integration ``` The integration test can be configured by setting some env vars: - `GARAGE_TEST_INTEGRATION_PORT`: Garage server port to run on (default: 49995) **NB:** The config will actually bind the specified port plus the two following (49996 and 49997 for default value) - `GARAGE_TEST_INTEGRATION_PATH`: Garage test runtime directory (default: `/tmp/garage-integ-test-<PORT>`) - `GARAGE_TEST_INTEGRATION_EXE`: Garage executable path (default: `$CARGO_BIN_EXE_garage`)
KokaKiwi added 8 commits 2022-02-10 16:05:12 +00:00
KokaKiwi added 7 commits 2022-02-10 16:58:12 +00:00
KokaKiwi force-pushed integration-tests-2 from c3498076d4 to 84613e66a2 2022-02-11 09:51:41 +00:00 Compare
KokaKiwi requested review from quentin 2022-02-11 11:18:24 +00:00
quentin approved these changes 2022-02-11 11:21:18 +00:00
KokaKiwi merged commit 84613e66a2 into main 2022-02-11 11:36:23 +00:00
Sign in to join this conversation.
No reviewers
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#240
No description provided.