mirror of https://github.com/docker/docs.git
19 lines
515 B
Bash
19 lines
515 B
Bash
#!/usr/bin/env bats
|
|
|
|
load ${BASE_TEST_DIR}/helpers.bash
|
|
|
|
@test "$DRIVER: create with arbitrary engine envs" {
|
|
run machine create -d $DRIVER \
|
|
--engine-env=TEST=VALUE \
|
|
$NAME
|
|
echo ${output}
|
|
[ $status -eq 0 ]
|
|
}
|
|
|
|
@test "$DRIVER: test docker process envs" {
|
|
# get pid of docker process, check process envs for set Environment Variable from above test
|
|
run machine ssh $NAME 'pgrep -f "docker daemon" | xargs -I % sudo cat /proc/%/environ | grep -q "TEST=VALUE"'
|
|
echo ${output}
|
|
[ $status -eq 0 ]
|
|
}
|