1515import static org .sagebionetworks .template .Constants .SES_SYNAPSE_DOMAIN ;
1616import static org .sagebionetworks .template .Constants .STACK ;
1717import static org .sagebionetworks .template .Constants .VPC_EXPORT_PREFIX ;
18+ import static org .sagebionetworks .template .Constants .PROPERTY_KEY_OPS_VPC_EXPORT_PREFIX ;
1819
1920import java .util .LinkedList ;
2021import java .util .List ;
@@ -85,6 +86,7 @@ public void testCreateStackName() {
8586 @ Test
8687 public void testCreateContext () {
8788 when (mockConfig .getProperty (PROPERTY_KEY_STACK )).thenReturn ("dev" );
89+ when (mockConfig .getProperty (PROPERTY_KEY_OPS_VPC_EXPORT_PREFIX )).thenReturn ("us-east-1-vpc" );
8890 when (mockStsClient .getCallerIdentity ()).thenReturn (GetCallerIdentityResponse .builder ().arn ("currentIdentityArn" ).build ());
8991 VelocityContext context = builder .createContext ();
9092 assertEquals ("dev" , context .get (STACK ));
@@ -109,6 +111,7 @@ public void testSetupSesTopics() {
109111 @ Test
110112 public void testBuildGlobalResourcesDev () throws InterruptedException {
111113 when (mockConfig .getProperty (PROPERTY_KEY_STACK )).thenReturn ("dev" );
114+ when (mockConfig .getProperty (PROPERTY_KEY_OPS_VPC_EXPORT_PREFIX )).thenReturn ("us-east-1-vpc" );
112115 when (mockStsClient .getCallerIdentity ()).thenReturn (GetCallerIdentityResponse .builder ().arn ("currentIdentityArn" ).build ());
113116 when (mockStackTagsProvider .getStackTags (mockConfig )).thenReturn (expectedTags );
114117
@@ -137,6 +140,7 @@ public void testBuildGlobalResourcesDev() throws InterruptedException {
137140 @ Test
138141 public void testBuildGlobalResourcesProd () throws InterruptedException {
139142 when (mockConfig .getProperty (PROPERTY_KEY_STACK )).thenReturn ("prod" );
143+ when (mockConfig .getProperty (PROPERTY_KEY_OPS_VPC_EXPORT_PREFIX )).thenReturn ("us-east-1-vpc" );
140144 when (mockStsClient .getCallerIdentity ()).thenReturn (GetCallerIdentityResponse .builder ().arn ("currentIdentityArn" ).build ());
141145 when (mockCloudFormationClientWrapper .getOutput ("synapse-prod-global-resources" , GLOBAL_CFSTACK_OUTPUT_KEY_SES_COMPLAINT_TOPIC )).thenReturn ("complaintTopicArn" );
142146 when (mockCloudFormationClientWrapper .getOutput ("synapse-prod-global-resources" , GLOBAL_CFSTACK_OUTPUT_KEY_SES_BOUNCE_TOPIC )).thenReturn ("bounceTopicArn" );
0 commit comments