public class DockerComposeExecutor extends AbstractDockerBasedEnvironment
TestEnvironmentExecutor.ConstantsapmBindAddress, dockerClient, network, scenarioDirectory| Modifier and Type | Method and Description |
|---|---|
void |
execScript(String id,
String serviceName,
String script)
Execute script in running environment
|
static DockerComposeExecutor |
getInstance(String scenarioDirectory,
String apmBindAddress) |
String |
run(TestEnvironment testEnvironment)
Run test environment
|
void |
stopAndRemove(String dockerCompose)
Stop and remove environment
|
close, createNetworkclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitscriptExecCommandpublic static DockerComposeExecutor getInstance(String scenarioDirectory, String apmBindAddress)
scenarioDirectory - Absolute path of test scenario directoryapmBindAddress - Address of default gateway (host OS where is running APM server). This network
is also used as default in docker-composepublic String run(TestEnvironment testEnvironment)
TestEnvironmentExecutortestEnvironment - test environmentpublic void stopAndRemove(String dockerCompose)
TestEnvironmentExecutordockerCompose - Id of the environmentpublic void execScript(String id, String serviceName, String script)
TestEnvironmentExecutorid - Id of the environment, Concretely docker-compose file.serviceName - Service name in running environment. Service defined in docker-compose.script - Script to executeCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.