Skip to content

Commit e022491

Browse files
author
vgkowski
committed
fix e2e tests
1 parent caa7eca commit e022491

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

framework/test/e2e/spark-cicd-pipeline.e2e.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* E2E test for SparkCICDPipeline
66
*
7-
* @group e2e/processing/spark-cicd
7+
* @group e2e/processing/default-spark-cicd
88
*/
99

1010
import { RemovalPolicy, CfnOutput, Stack, StackProps, App } from 'aws-cdk-lib';
@@ -18,7 +18,7 @@ jest.setTimeout(9000000);
1818

1919
// GIVEN
2020
const app = new App();
21-
const cicdStack = new Stack(app, 'CICDStack', {
21+
const cicdStack = new Stack(app, 'DefaultCICDStack', {
2222
env: {
2323
region: 'eu-west-1',
2424
},
@@ -27,8 +27,8 @@ const testStack = new TestStack('SparkCICDPipelineTestStack', app, cicdStack);
2727
const { stack } = testStack;
2828

2929
stack.node.setContext('@data-solutions-framework-on-aws/removeDataOnDestroy', true);
30-
stack.node.setContext('staging', { accountId: '123456789012', region: 'eu-west-1' });
31-
stack.node.setContext('prod', { accountId: '123456789012', region: 'eu-west-1' });
30+
stack.node.setContext('staging', { accountId: stack.account, region: stack.region });
31+
stack.node.setContext('prod', { accountId: stack.account, region: stack.region });
3232

3333
interface MyApplicationStackProps extends StackProps {
3434
readonly prodBoolean: Boolean;

framework/test/e2e/spark-cicd-userdefined-pipeline.e2e.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* E2E test for SparkCICDPipeline
66
*
7-
* @group e2e/processing/spark-cicd-userdefined
7+
* @group e2e/processing/userdefined-spark-cicd
88
*/
99

1010
import { RemovalPolicy, CfnOutput, Stack, StackProps, App } from 'aws-cdk-lib';
@@ -18,7 +18,7 @@ jest.setTimeout(9000000);
1818

1919
// GIVEN
2020
const app = new App();
21-
const cicdStack = new Stack(app, 'CICDStack', {
21+
const cicdStack = new Stack(app, 'UserDefinedCICDStack', {
2222
env: {
2323
region: 'eu-west-1',
2424
},
@@ -30,14 +30,14 @@ stack.node.setContext('@data-solutions-framework-on-aws/removeDataOnDestroy', tr
3030
stack.node.setContext('environments', [
3131
{
3232
stageName: 'userdefined1',
33-
account: '111111111111',
34-
region: 'eu-west-1',
33+
account: stack.account,
34+
region: stack.region,
3535
triggerIntegTest: true,
3636
},
3737
{
3838
stageName: 'userdefined2',
39-
account: '222222222222',
40-
region: 'eu-west-1',
39+
account: stack.account,
40+
region: stack.region,
4141
triggerIntegTest: false,
4242
},
4343
]);

0 commit comments

Comments
 (0)