Skip to content

Commit 071c1b5

Browse files
author
Simon Goldberg
committed
fix single node stack tests
1 parent 167f34c commit 071c1b5

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

lib/bitcoin-core/test/single-node-stack.test.ts

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,29 +62,41 @@ describe("SingleNodeBitcoinCoreStack", () => {
6262
// Has EC2 instance with node configuration
6363
template.hasResourceProperties("AWS::EC2::Instance", {
6464
InstanceType: Match.stringLikeRegexp(".*"), // accept any value including 'undefined.undefined'
65-
BlockDeviceMappings: Match.arrayWith([
65+
BlockDeviceMappings: [
6666
{
6767
DeviceName: "/dev/xvda",
6868
Ebs: Match.objectLike({
6969
Encrypted: true,
7070
}),
7171
},
72-
{
73-
DeviceName: "/dev/sdf",
74-
Ebs: Match.objectLike({
75-
Encrypted: true,
76-
}),
77-
},
78-
]),
72+
],
7973
SecurityGroupIds: Match.anyValue(),
8074
SubnetId: Match.anyValue(),
8175
UserData: Match.anyValue(),
8276
});
8377

78+
// Has EBS data volume
79+
template.hasResourceProperties("AWS::EC2::Volume", {
80+
AvailabilityZone: Match.anyValue(),
81+
Encrypted: true,
82+
Iops: 3000,
83+
MultiAttachEnabled: false,
84+
Size: 1000,
85+
Throughput: 125,
86+
VolumeType: "gp3",
87+
});
88+
89+
// Has EBS data volume attachment
90+
template.hasResourceProperties("AWS::EC2::VolumeAttachment", {
91+
Device: "/dev/sdf",
92+
InstanceId: Match.anyValue(),
93+
VolumeId: Match.anyValue(),
94+
});
95+
8496

8597
// Has CloudWatch dashboard
8698
template.hasResourceProperties("AWS::CloudWatch::Dashboard", {
8799
DashboardBody: Match.anyValue(),
88100
});
89101
});
90-
});
102+
});

0 commit comments

Comments
 (0)