-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.yml
More file actions
46 lines (40 loc) · 1022 Bytes
/
test.yml
File metadata and controls
46 lines (40 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
config:
target: "https://animai-api-mno64fns4a-uc.a.run.app"
phases:
# Phase 1: Warm up - start slow
- duration: 30
arrivalRate: 1
name: "Warm up"
# Phase 2: Ramp up gradually
- duration: 60
arrivalRate: 2
rampTo: 5
name: "Ramp up"
# Phase 3: Sustained load
- duration: 120
arrivalRate: 5
name: "Sustained load"
defaults:
headers:
Content-Type: "application/json"
# Timeout settings (important for slow endpoints like LLM)
http:
timeout: 300 # 5 minutes timeout for /run endpoint
# Plugins for better reporting
plugins:
expect: {}
scenarios:
- name: "Run Animation - Draw Circle"
flow:
- post:
url: "/run"
json:
prompt: "draw a circle"
capture:
- json: "$.status"
as: "status"
- json: "$.result"
as: "result"
expect:
- statusCode: 200
- contentType: application/json