beeb / awsbck

Backup a folder to AWS S3, once or periodically
https://crates.io/crates/awsbck
Apache License 2.0
6 stars 0 forks source link

tests: add end-to-end testing #13

Closed beeb closed 1 year ago

beeb commented 1 year ago

Potentially using https://hub.docker.com/r/adobe/s3mock/

let shared_config = aws_config::from_env()
        .region(params.aws_region.region().await)
        .endpoint_url(endpoint_url) // use the local URL if testing
        .load()
        .await;

More reading material:

https://docs.rs/dockertest/latest/dockertest/

https://docs.rs/testcontainers/latest/testcontainers/