diff --git a/.github/workflows/stress-test.yaml b/.github/workflows/stress-test.yaml index b42b9973d..1b400f743 100644 --- a/.github/workflows/stress-test.yaml +++ b/.github/workflows/stress-test.yaml @@ -19,4 +19,4 @@ jobs: - name: "Install Artillery" run: npm install -g artillery - name: "Run tests" - run: artillery run artilleryTests/rosetta-load-test.yml \ No newline at end of file + run: artillery run artilleryTests/rosetta-load-test.yml diff --git a/artilleryTests/rosetta-load-test.yml b/artilleryTests/rosetta-load-test.yml index d66814fee..5554b7ca3 100644 --- a/artilleryTests/rosetta-load-test.yml +++ b/artilleryTests/rosetta-load-test.yml @@ -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 @@ -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": { @@ -56,7 +63,7 @@ scenarios: "network": "preprod" }, "block_identifier": { - "index": 2235737 + "index": 20 } } - post: