Search in sources :

Example 6 with SimulatorProperties

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

the class CloudProviderUtilsTest method testIsCloudProvider_withStatic.

@Test
public void testIsCloudProvider_withStatic() {
    SimulatorProperties properties = getSimulatorProperties(PROVIDER_STATIC);
    assertFalse(isCloudProvider(properties));
}
Also used : SimulatorProperties(com.hazelcast.simulator.common.SimulatorProperties) Test(org.junit.Test)

Example 7 with SimulatorProperties

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

the class CloudProviderUtilsTest method testIsStatic_fromProperties_withStatic.

@Test
public void testIsStatic_fromProperties_withStatic() {
    SimulatorProperties properties = getSimulatorProperties(PROVIDER_STATIC);
    assertTrue(CloudProviderUtils.isStatic(properties));
}
Also used : SimulatorProperties(com.hazelcast.simulator.common.SimulatorProperties) Test(org.junit.Test)

Example 8 with SimulatorProperties

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

the class CloudProviderUtilsTest method testIsCloudProvider_withLocal.

@Test
public void testIsCloudProvider_withLocal() {
    SimulatorProperties properties = getSimulatorProperties(PROVIDER_LOCAL);
    assertFalse(isCloudProvider(properties));
}
Also used : SimulatorProperties(com.hazelcast.simulator.common.SimulatorProperties) Test(org.junit.Test)

Example 9 with SimulatorProperties

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

the class CloudProviderUtilsTest method testIsEC2_fromProperties_withEC2.

@Test
public void testIsEC2_fromProperties_withEC2() {
    SimulatorProperties properties = getSimulatorProperties(PROVIDER_EC2);
    assertTrue(CloudProviderUtils.isEC2(properties));
}
Also used : SimulatorProperties(com.hazelcast.simulator.common.SimulatorProperties) Test(org.junit.Test)

Example 10 with SimulatorProperties

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

the class ProvisionerUtilsTest method testEnsureIsRemoteSetup_withLocal.

@Test(expected = CommandLineExitException.class)
public void testEnsureIsRemoteSetup_withLocal() {
    SimulatorProperties properties = mock(SimulatorProperties.class);
    when(properties.getCloudProvider()).thenReturn(CloudProviderUtils.PROVIDER_LOCAL);
    ensureIsRemoteSetup(properties, "terminate");
}
Also used : SimulatorProperties(com.hazelcast.simulator.common.SimulatorProperties) Test(org.junit.Test)

Aggregations

SimulatorProperties (com.hazelcast.simulator.common.SimulatorProperties)21 Test (org.junit.Test)12 File (java.io.File)5 Before (org.junit.Before)4 Registry (com.hazelcast.simulator.coordinator.registry.Registry)3 Agent (com.hazelcast.simulator.agent.Agent)2 AgentsFile (com.hazelcast.simulator.common.AgentsFile)2 AgentData (com.hazelcast.simulator.coordinator.registry.AgentData)2 FileUtils.ensureExistingFile (com.hazelcast.simulator.utils.FileUtils.ensureExistingFile)2 SimulatorUtils.loadSimulatorProperties (com.hazelcast.simulator.utils.SimulatorUtils.loadSimulatorProperties)2 HazelcastDriver (com.hazelcast.simulator.vendors.HazelcastDriver)2 Bash (com.hazelcast.simulator.utils.Bash)1 FileUtils.newFile (com.hazelcast.simulator.utils.FileUtils.newFile)1 VendorDriver (com.hazelcast.simulator.vendors.VendorDriver)1 Map (java.util.Map)1 Properties (java.util.Properties)1 TreeSet (java.util.TreeSet)1 BeforeClass (org.junit.BeforeClass)1