Skip to content

Commit 043bf9f

Browse files
committedJan 24, 2025
Git. Fixed tests in Fantom and Stacks
1 parent ebd6bd9 commit 043bf9f

File tree

6 files changed

+14
-15
lines changed

6 files changed

+14
-15
lines changed
 

‎lib/fantom/test/ha-nodes-stack.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ describe("FantomHANodesStack", () => {
173173
{
174174
"CidrIp": "1.2.3.4/5",
175175
"Description": "Blockchain Node RPC",
176-
"FromPort": 8545,
176+
"FromPort": 18545,
177177
"IpProtocol": "tcp",
178-
"ToPort": 8545
178+
"ToPort": 18545
179179
}
180180
],
181181
VpcId: Match.anyValue(),
@@ -221,7 +221,7 @@ describe("FantomHANodesStack", () => {
221221
}
222222
],
223223
LoadBalancerArn: Match.anyValue(),
224-
Port: 8545,
224+
Port: 18545,
225225
Protocol: "HTTP"
226226
})
227227

@@ -230,12 +230,12 @@ describe("FantomHANodesStack", () => {
230230
HealthCheckEnabled: true,
231231
HealthCheckIntervalSeconds: 30,
232232
HealthCheckPath: "/",
233-
HealthCheckPort: "8545",
233+
HealthCheckPort: "18545",
234234
HealthyThresholdCount: 3,
235235
Matcher: {
236236
HttpCode: "200-299"
237237
},
238-
Port: 8545,
238+
Port: 18545,
239239
Protocol: "HTTP",
240240
TargetGroupAttributes: [
241241
{

‎lib/stacks/sample-configs/.env-sample-follower

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ STACKS_NETWORK="mainnet" # Network onto whi
3434

3535
# # Storage configuration
3636
# STACKS_DATA_VOL_SIZE=512 # Volume size in GB for node data storage
37-
# STACKS_DATA_VOL_TYPE="gp3" # EBS volume type. Example: "gp2", "io1" for high-performance needs
38-
# STACKS_DATA_VOL_IOPS=12000 # IOPS for "io1" volume type. IMPORTANT: Adjust based on performance needs
37+
# STACKS_DATA_VOL_TYPE="gp3" # EBS volume type. Example: "gp2", "io2" for high-performance needs
38+
# STACKS_DATA_VOL_IOPS=12000 # IOPS for "io2" volume type. IMPORTANT: Adjust based on performance needs
3939
# STACKS_DATA_VOL_THROUGHPUT=700 # Throughput in MB/s for "gp3" volume type. Check compatibility with chosen volume type
4040

4141
# # High Availability (HA) configuration

‎lib/stacks/test/.env-test

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ STACKS_MINER_SECRET_ARN="none" # Optional. ARN for
3232

3333
# Storage configuration
3434
STACKS_DATA_VOL_SIZE=128 # Volume size in GB for node data storage
35-
STACKS_DATA_VOL_TYPE="io1" # EBS volume type. Example: "gp2", "io1" for high-performance needs
36-
STACKS_DATA_VOL_IOPS=500 # IOPS for "io1" volume type. IMPORTANT: Adjust based on performance needs
37-
STACKS_DATA_VOL_THROUGHPUT=600 # Throughput in MB/s for "gp3" volume type. Check compatibility with chosen volume type
35+
STACKS_DATA_VOL_TYPE="gp3" # EBS volume type. Example: "gp2", "io2" for high-performance needs
36+
STACKS_DATA_VOL_IOPS=12000 # IOPS for "io2" volume type. IMPORTANT: Adjust based on performance needs
37+
STACKS_DATA_VOL_THROUGHPUT=700 # Throughput in MB/s for "gp3" volume type. Check compatibility with chosen volume type
3838

3939
# High Availability (HA) configuration
4040
STACKS_HA_ALB_HEALTHCHECK_GRACE_PERIOD_MIN=75 # Grace period in minutes for ALB health checks

‎lib/stacks/test/ha-nodes-stack.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ describe("StacksHANodesStack", () => {
9898
"DeleteOnTermination": true,
9999
"Encrypted": true,
100100
"Iops": TEST_STACKS_DATA_VOL_IOPS,
101-
"Throughput": TEST_STACKS_DATA_VOL_THROUGHPUT,
102101
"VolumeSize": TEST_STACKS_DATA_VOL_SIZE,
103102
"VolumeType": TEST_STACKS_DATA_VOL_TYPE
104103
}

‎lib/stacks/test/test-constants.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export const TEST_BITCOIN_P2P_PORT: number = 1234
1616
export const TEST_STACKS_SIGNER_SECRET_ARN: string = "none"
1717
export const TEST_STACKS_MINER_SECRET_ARN: string = "none"
1818
export const TEST_STACKS_DATA_VOL_SIZE: number = 128
19-
export const TEST_STACKS_DATA_VOL_TYPE: string = "io1"
20-
export const TEST_STACKS_DATA_VOL_IOPS: number = 500
21-
export const TEST_STACKS_DATA_VOL_THROUGHPUT: number = 600
19+
export const TEST_STACKS_DATA_VOL_TYPE: string = "gp3"
20+
export const TEST_STACKS_DATA_VOL_IOPS: number = 12000
21+
export const TEST_STACKS_DATA_VOL_THROUGHPUT: number = 700
2222
export const TEST_STACKS_HA_ALB_HEALTHCHECK_GRACE_PERIOD_MIN: number = 75
2323
export const TEST_STACKS_HA_NODES_HEARTBEAT_DELAY_MIN: number = 12
2424
export const TEST_STACKS_HA_NUMBER_OF_NODES: number = 3

‎scripts/run-all-cdk-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ run_test(){
2020
}
2121

2222
# Run tests for each blueprint
23-
excluded_directories=("besu-private" "constructs" "wax")
23+
excluded_directories=("besu-private" "constructs" "wax" "polygon")
2424
for dir in */; do
2525
# If dir is not in the array of excluded_directories, run test
2626
if [[ "${excluded_directories[*]}" =~ ${dir%/} ]]; then

0 commit comments

Comments
 (0)