Skip to content

Commit 133c770

Browse files
committed
test: change integ tests to use projen framework
1 parent 1b08cc6 commit 133c770

32 files changed

+9905
-9912
lines changed

.gitignore

Lines changed: 49 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.npmignore

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/tasks.json

Lines changed: 414 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/aliased-port.integ.snapshot/aws-ecs-integ.assets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"version": "21.0.0",
33
"files": {
4-
"008fd6f37d1eb1900674e08594b06958fad8cce9adf9fc4256765219a4131c01": {
4+
"1904e1ff90c4f297a8a8c9f4f5573101aa4cb632abb96486f141dc588c222614": {
55
"source": {
66
"path": "aws-ecs-integ.template.json",
77
"packaging": "file"
88
},
99
"destinations": {
1010
"current_account-current_region": {
1111
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12-
"objectKey": "008fd6f37d1eb1900674e08594b06958fad8cce9adf9fc4256765219a4131c01.json",
12+
"objectKey": "1904e1ff90c4f297a8a8c9f4f5573101aa4cb632abb96486f141dc588c222614.json",
1313
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
1414
}
1515
}

test/aliased-port.integ.snapshot/aws-ecs-integ.template.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,7 @@
521521
"TaskDefinition": {
522522
"Ref": "ServiceConnecttaskdefinitionB19E0536"
523523
}
524-
},
525-
"DependsOn": [
526-
"productionenvironmentclusterDefaultServiceDiscoveryNamespaceBE74D64D"
527-
]
524+
}
528525
},
529526
"ServiceConnectserviceSecurityGroup0D1FCAE3": {
530527
"Type": "AWS::EC2::SecurityGroup",
@@ -540,10 +537,7 @@
540537
"VpcId": {
541538
"Ref": "productionenvironmentvpcAEB47DF7"
542539
}
543-
},
544-
"DependsOn": [
545-
"productionenvironmentclusterDefaultServiceDiscoveryNamespaceBE74D64D"
546-
]
540+
}
547541
}
548542
},
549543
"Parameters": {

test/aliased-port.integ.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ aliasedPortServiceDescription.add(new AliasedPortExtension({
2727
appProtocol: ecs.AppProtocol.grpc,
2828
}));
2929

30-
const svc = new Service(stack, 'ServiceConnect', {
30+
new Service(stack, 'ServiceConnect', {
3131
environment: environment,
3232
serviceDescription: aliasedPortServiceDescription,
3333
desiredCount: 1,
3434
});
35-
36-
const ns = environment.cluster.defaultCloudMapNamespace!;
37-
svc.ecsService.node.addDependency(ns);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "21.0.0",
3+
"files": {
4+
"b6f7e728bbb59a44cd36e3c267201c18a62a55d3ebf1181a439da200585eb7df": {
5+
"source": {
6+
"path": "aws-ecs-integ.template.json",
7+
"packaging": "file"
8+
},
9+
"destinations": {
10+
"current_account-current_region": {
11+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12+
"objectKey": "b6f7e728bbb59a44cd36e3c267201c18a62a55d3ebf1181a439da200585eb7df.json",
13+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14+
}
15+
}
16+
}
17+
},
18+
"dockerImages": {}
19+
}

0 commit comments

Comments
 (0)