dockertest 0.5.0

A library to control docker containers when running your integration tests.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use dockertest::{DockerTest, TestBodySpecification};

#[tokio::test]
async fn test_privileged_container() {
    let mut test = DockerTest::new();
    let mut hello_world = TestBodySpecification::with_repository("dockertest-rs/hello-privileged");

    hello_world.privileged(true);

    test.provide_container(hello_world);

    test.run_async(|ops| async move {
        ops.handle("dockertest-rs/hello-privileged");
    })
    .await;
}