Files
docker-machine/test/integration/helpers.bash
Nathan LeClaire c8edb33ecd Move towards using external binaries / RPC plugins
- First RPC steps

- Work on some flaws in RPC model

- Remove unused TLS settings from Engine and Swarm options

- Add code to correctly encode data over the network

- Add client driver for RPC

- Rename server driver file

- Start to make marshal make sense

- Fix silly RPC method args and add client

- Fix some issues with RPC calls, and marshaling

- Simplify plugin main.go

- Move towards 100% plugin in CLI

- Ensure that plugin servers are cleaned up properly

- Make flag parsing for driver flags work properly

Includes some work carried from @dmp42 updating the build process and
tests to use the new method.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-10-16 16:34:56 -07:00

36 lines
671 B
Bash

#!/bin/bash
echo_to_log() {
echo "$BATS_TEST_NAME
----------
$output
----------
" >> ${BATS_LOG}
}
teardown() {
echo_to_log
}
function errecho () {
>&2 echo "$@"
}
function force_env () {
if [[ ${!1} != "$2" ]]; then
errecho "This test requires the $1 environment variable to be set to $2 in order to run properly."
exit 1
fi
}
function require_env () {
if [[ -z ${!1} ]]; then
errecho "This test requires the $1 environment variable to be set in order to run."
exit 1
fi
}
# Make sure these aren't set while tests run (can cause confusing behavior)
unset DOCKER_HOST DOCKER_TLS_VERIFY DOCKER_CERT_DIR