File tree Expand file tree Collapse file tree 1 file changed +6
-16
lines changed
Expand file tree Collapse file tree 1 file changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -43,18 +43,18 @@ test("riffRaffYamlFile", async () => {
4343 const region = "eu-west-1" ;
4444
4545 new AbTestingConfig ( app , "AbTestingConfig" , {
46- stack : "frontend" ,
46+ stack,
4747 stage : "CODE" ,
4848 env : {
49- region : "eu-west-1" ,
49+ region,
5050 } ,
5151 } ) ;
5252
5353 new AbTestingDeploymentLambda ( app , "AbTestingDeploymentLambda" , {
54- stack : "frontend" ,
54+ stack,
5555 stage : "CODE" ,
5656 env : {
57- region : "eu-west-1" ,
57+ region,
5858 } ,
5959 } ) ;
6060
@@ -63,19 +63,9 @@ test("riffRaffYamlFile", async () => {
6363 riffRaffYaml : { deployments } ,
6464 } = riffRaff ;
6565
66- const configCloudformationDeploymentName = [
67- "cfn" ,
68- region ,
69- stack ,
70- "ab-testing-config" ,
71- ] . join ( "-" ) ;
66+ const configCloudformationDeploymentName = `cfn-${ region } -${ stack } -ab-testing-config` ;
7267
73- const deploymentLambdaDeploymentName = [
74- "lambda-update" ,
75- region ,
76- stack ,
77- "ab-testing-deployment-lambda" ,
78- ] . join ( "-" ) ;
68+ const deploymentLambdaDeploymentName = `lambda-update-${ region } -${ stack } -ab-testing-deployment-lambda` ;
7969
8070 const configCloudformationDeployment = deployments . get (
8171 configCloudformationDeploymentName ,
You can’t perform that action at this time.
0 commit comments