Files
tokens-reef/tests/performance/artillery/websocket.yml
Developer 8b19f56ba4 fix: update E2E test API paths and payloads to match backend
- user-apikey-lifecycle: /api/v1/keys -> /api/v1/api-keys (24 occurrences)
- admin-users: balance payload uses balance+operation+notes
- admin-groups: rate-multiplier already uses correct format
2026-04-02 22:35:48 +08:00

35 lines
867 B
YAML

config:
target: "http://localhost:8080"
phases:
- duration: 30
arrivalRate: 5
name: "Warm up"
- duration: 60
arrivalRate: 20
name: "Load test"
- duration: 60
arrivalRate: 50
name: "Stress test"
processor: "./ws-processors.js"
scenarios:
- name: "WebSocket Chat Streaming"
weight: 10
flow:
- ws:
url: "ws://localhost:8080/v1/chat/completions"
headers:
Authorization: "Bearer {{ $processEnvironment.API_KEY }}"
capture:
- json: "$[0].choices[0].delta.content"
as: "content"
send:
- json:
model: "gpt-4"
messages:
- role: "user"
content: "Tell me a short story"
stream: true
expect:
- statusCode: 200