Commit Graph

10 Commits

Author SHA1 Message Date
Sameer Naik
2747d1ee29 docker_helper: added container_link_and_run_command function
`container_link_and_run_command` starts a new container which is
linked to another container with the link alias $APP_NAME and
execute a command in the newly created container.
2015-11-09 19:06:24 +05:30
Sameer Naik
44ca51ce43 docker_helper: added VOLUMES script variable allowing users to specify VOLUMES in the BATS tests script
VOLUMES is set to `$VOL_PREFIX/data:$VOL_PREFIX/conf:$VOL_PREFIX/logs`
by default. But some images may expose different paths. For example,
the tomcat image exposes `/app` and `$VOL_PREFIX/conf` and
`$VOL_PREFIX/logs` paths as volumes. The VOLUME variable allows us to
override the default volume paths with ones exposed by the image being
tested.
2015-11-09 18:52:03 +05:30
Sameer Naik
fba7cd7228 docker_helper: added APP_NAME script variable, allowing other script variables to be assigned default values 2015-11-09 18:09:19 +05:30
Sameer Naik
d0b884d8f3 docker_helper: allow arguments to be passes to docker inspect in container_inspect 2015-11-09 18:02:49 +05:30
Sameer Naik
ad4cfbc71e docker_helper: stop and remove container in container_remove 2015-11-09 18:02:05 +05:30
Sameer Naik
14dec07d4a docker_helper: fix if conditions 2015-11-09 18:01:25 +05:30
Sameer Naik
c6af4552f4 tests: renamed create_container function to container_create in docker_helper 2015-11-05 19:38:39 +05:30
Sameer Naik
5c77c7c716 tests: fix container_exec function 2015-11-05 14:18:49 +05:30
Sameer Naik
1f82dfa505 tests: added container_restart helper in docker_helper 2015-11-04 21:28:21 +05:30
Sameer Naik
a812a01daa tests: move reusable bits into a tests/docker_helper.bash script 2015-11-04 21:28:21 +05:30