docs/test/integration/core/arbitrary-engine-options.bats

17 lines
433 B
Bash

#!/usr/bin/env bats
load ${BASE_TEST_DIR}/helpers.bash
@test "$DRIVER: create with arbitrary engine option" {
run machine create -d $DRIVER \
--engine-opt log-driver=none \
$NAME
[ $status -eq 0 ]
}
@test "$DRIVER: check created engine option (log driver)" {
docker $(machine config $NAME) run --name nolog busybox echo this should not be logged
run docker $(machine config $NAME) logs nolog
[ $status -eq 1 ]
}