Skip to content

Commit e26e977

Browse files
author
Florian CHAZAL
committed
fix: input injection
1 parent e27b66d commit e26e977

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/e2e-test-step.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export class E2ETestsStep extends cdkpipeline.Step implements cdkpipeline.ICodeP
4646

4747
this.stateMachine = e2eTestsRunner.stateMachine;
4848
for (const input of props.inputsFromDeployedStack) {
49-
const namespace = cdk.Stack.of(input.value).artifactId;
50-
const variableName = input.value.exportName;
49+
const namespace = cdk.Stack.of(input).artifactId;
50+
const variableName = input.exportName;
5151
this.inputsFromDeployedStack.push({ name: variableName, value: `#{${namespace}.${variableName}}` });
5252
}
5353
}

src/integrationTests/e2e-tests-canaries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class E2ETestsCanaries extends cdk.Construct {
8585
8686
const headers = {}
8787
headers['User-Agent'] = [synthetics.getCanaryUserAgentString(), headers['User-Agent']].join(' ');
88-
const url = await ssmClient.getParameter({Name: 'Demo-testing-stack.DemoApiUrl'}).promise();
88+
const url = await ssmClient.getParameter({Name: 'DemoApiUrl'}).promise();
8989
const requestOptions = {"hostname":url.Parameter.Value.split('/')[2],"method":"GET","path":"/prod/users/${userId}","port":443}
9090
log.info(\`requestOptions \${requestOptions}\`);
9191
requestOptions['headers'] = headers;

0 commit comments

Comments
 (0)