use of com.hazelcast.simulator.utils.Bash in project hazelcast-simulator by hazelcast.
the class SimulatorProvisioner method provision.
public void provision() {
Bash bash = new Bash(simulatorProperties);
Provisioner provisioner = new Provisioner(simulatorProperties, bash);
provisioner.scale(machineCount, new HashMap<String, String>());
}
use of com.hazelcast.simulator.utils.Bash in project hazelcast-simulator by hazelcast.
the class WizardTest method before.
@Before
public void before() {
setupFakeEnvironment();
simulatorProperties = mock(SimulatorProperties.class);
when(simulatorProperties.getUser()).thenReturn(SSH_USERNAME);
when(simulatorProperties.getSshOptions()).thenReturn("");
bash = mock(Bash.class);
workDir = new File("wizardTestWorkDir").getAbsoluteFile();
testPropertiesFile = new File(workDir, "test.properties");
runScriptFile = new File(workDir, "run");
prepareScriptFile = new File(workDir, "prepare");
simulatorPropertiesFile = new File(workDir, SimulatorProperties.PROPERTIES_FILE_NAME);
agentsFile = new File(workDir, AgentsFile.NAME);
localSimulatorPropertiesFile = new File(SimulatorProperties.PROPERTIES_FILE_NAME).getAbsoluteFile();
profileFile = ensureExistingFile("wizardTest.txt");
wizard = new Wizard();
}
Aggregations