Search in sources :

Example 1 with AgentsFile

use of com.hazelcast.simulator.common.AgentsFile in project hazelcast-simulator by hazelcast.

the class TestEnvironmentUtils method createAgentsFileWithLocalhost.

public static void createAgentsFileWithLocalhost() {
    agentsFile = new File(getUserDir(), AgentsFile.NAME);
    appendText("127.0.0.1", agentsFile);
}
Also used : FileUtils.newFile(com.hazelcast.simulator.utils.FileUtils.newFile) File(java.io.File) FileUtils.ensureExistingFile(com.hazelcast.simulator.utils.FileUtils.ensureExistingFile) AgentsFile(com.hazelcast.simulator.common.AgentsFile)

Example 2 with AgentsFile

use of com.hazelcast.simulator.common.AgentsFile 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();
}
Also used : Bash(com.hazelcast.simulator.utils.Bash) AgentsFile(com.hazelcast.simulator.common.AgentsFile) File(java.io.File) FileUtils.ensureExistingFile(com.hazelcast.simulator.utils.FileUtils.ensureExistingFile) SimulatorProperties(com.hazelcast.simulator.common.SimulatorProperties) Before(org.junit.Before)

Aggregations

AgentsFile (com.hazelcast.simulator.common.AgentsFile)2 FileUtils.ensureExistingFile (com.hazelcast.simulator.utils.FileUtils.ensureExistingFile)2 File (java.io.File)2 SimulatorProperties (com.hazelcast.simulator.common.SimulatorProperties)1 Bash (com.hazelcast.simulator.utils.Bash)1 FileUtils.newFile (com.hazelcast.simulator.utils.FileUtils.newFile)1 Before (org.junit.Before)1