Skip to content

Commit

Permalink
Chore: Artillery target port fixed (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarMarMot authored May 23, 2024
2 parents e04e775 + caaea49 commit aa1395f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/stress-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: "Install Artillery"
run: npm install -g artillery
- name: "Run tests"
run: artillery run artilleryTests/rosetta-load-test.yml
run: artillery run artilleryTests/rosetta-load-test.yml
19 changes: 13 additions & 6 deletions artilleryTests/rosetta-load-test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
config:
target: http://localhost:8081
target: http://127.0.0.1:8082
ensure:
thresholds:
- vusers.failed: 1
http:
timeout: 120
defaults:
headers:
Content-Type: application/json
http:
timeout: 60
phases:
- duration: 60
arrivalRate: 1
Expand All @@ -19,14 +21,19 @@ config:
arrivalRate: 10
rampTo: 30
name: Spike phase
- duration: 60
plugins:
ensure: { }
expect:
expectDefault200: true
outputFormat: silent
reportFailuresAsErrors: true
metrics-by-endpoint:
useOnlyRequestNames: true
metricsNamespace: "latency_metrics"
scenarios:
- flow:
- post:
url: 'network/status'
url: '/network/status'
body: |
{
"network_identifier": {
Expand Down Expand Up @@ -56,7 +63,7 @@ scenarios:
"network": "preprod"
},
"block_identifier": {
"index": 2235737
"index": 20
}
}
- post:
Expand Down

0 comments on commit aa1395f

Please sign in to comment.