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);
}
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);
}
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);
}
Aggregations