Search in sources :

Example 6 with GeneratedResources

use of org.sagebionetworks.stack.GeneratedResources in project Synapse-Stack-Builder by Sage-Bionetworks.

the class DatabaseParameterGroupTest method before.

@Before
public void before() throws IOException {
    mockClient = factory.createRDSClient();
    inputProperties = TestHelper.createInputProperties("dev");
    config = new InputConfiguration(inputProperties);
    resources = new GeneratedResources();
    // Inject the dependencies.
    databaseParamGroup = new DatabaseParameterGroup(factory, config, resources);
}
Also used : GeneratedResources(org.sagebionetworks.stack.GeneratedResources) DatabaseParameterGroup(org.sagebionetworks.stack.DatabaseParameterGroup) InputConfiguration(org.sagebionetworks.stack.config.InputConfiguration) Before(org.junit.Before)

Example 7 with GeneratedResources

use of org.sagebionetworks.stack.GeneratedResources in project Synapse-Stack-Builder by Sage-Bionetworks.

the class ElbAlarmSetupTest method setUp.

@Before
public void setUp() throws Exception {
    // Config
    config = TestHelper.createTestConfig("dev");
    // SNS topic
    resources = new GeneratedResources();
    resources.setStackInstanceNotificationTopicArn("topicArn");
    // Beanstalk environments
    EnvironmentDescription repoEnvDesc = new EnvironmentDescription().withEnvironmentName("repoEnvName");
    resources.setEnvironment(StackEnvironmentType.REPO, repoEnvDesc);
    EnvironmentDescription workersEnvDesc = new EnvironmentDescription().withEnvironmentName("workersEnvName");
    resources.setEnvironment(StackEnvironmentType.WORKERS, workersEnvDesc);
    EnvironmentDescription portalEnvDesc = new EnvironmentDescription().withEnvironmentName("portalEnvName");
    resources.setEnvironment(StackEnvironmentType.PORTAL, portalEnvDesc);
    // Clients
    beanstalkClient = mockFactory.createBeanstalkClient();
    mockCwClient = mockFactory.createCloudWatchClient();
    mockSleeper = Mockito.mock(Sleeper.class);
    setup = new ElbAlarmSetup(mockFactory, config, resources, mockSleeper);
}
Also used : EnvironmentDescription(com.amazonaws.services.elasticbeanstalk.model.EnvironmentDescription) Sleeper(org.sagebionetworks.stack.util.Sleeper) GeneratedResources(org.sagebionetworks.stack.GeneratedResources) Before(org.junit.Before)

Example 8 with GeneratedResources

use of org.sagebionetworks.stack.GeneratedResources in project Synapse-Stack-Builder by Sage-Bionetworks.

the class EnvironmentInstancesNotificationSetupTest method before.

@Before
public void before() throws IOException {
    config = TestHelper.createTestConfig("dev");
    mockClient = factory.createSNSClient();
    resources = new GeneratedResources();
    setup = new EnvironmentInstancesNotificationSetup(factory, config, resources);
}
Also used : GeneratedResources(org.sagebionetworks.stack.GeneratedResources) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)8 GeneratedResources (org.sagebionetworks.stack.GeneratedResources)8 EnvironmentDescription (com.amazonaws.services.elasticbeanstalk.model.EnvironmentDescription)1 DBInstance (com.amazonaws.services.rds.model.DBInstance)1 ArrayList (java.util.ArrayList)1 DatabaseParameterGroup (org.sagebionetworks.stack.DatabaseParameterGroup)1 InputConfiguration (org.sagebionetworks.stack.config.InputConfiguration)1 Sleeper (org.sagebionetworks.stack.util.Sleeper)1