[][src]Struct dockertest::DockerTest

pub struct DockerTest { /* fields omitted */ }

Represents the docker test environment, and keep track of all containers that should be started.

Methods

impl DockerTest[src]

pub fn new() -> DockerTest[src]

Creates a new DockerTest.

pub fn with_default_source(self, default_source: Source) -> DockerTest[src]

Sets the default source for all images. All images without a specified source will be pulled from the default source. DockerTest will default to Local if no default source is provided.

pub fn with_namespace<T: ToString>(self, name: T) -> DockerTest[src]

Sets the namespace for all containers created by dockerTest. All container names will be prefixed with this namespace. DockerTest defaults to the namespace "dockertest-rs".

pub fn run<T>(&self, test: T) where
    T: FnOnce(&DockerOperations) + UnwindSafe
[src]

Execute the test body within the provided function closure. All Compositions added to the DockerTest has successfully completed their WaitFor clause once the test body is executed.

pub fn add_composition(&mut self, instance: Composition)[src]

Add a Composition to this DockerTest.

Trait Implementations

impl Default for DockerTest[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]