This repository was archived by the owner on Dec 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.yaml
More file actions
64 lines (64 loc) · 1.4 KB
/
Copy pathconf.yaml
File metadata and controls
64 lines (64 loc) · 1.4 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# - endpoint: "/photo" - serviced endpoint
# status: 200 - http status, 200 by default
# size: 100 - size in bytes. you can define random value from m..n, example 100..200
# time: 100 - time in milliseconds you can define random value from m..n, example 100..200
# wight: 1 - how often will be requested
endpoints:
# statuses
- endpoint: "/200"
status: 200
weight: 100
- endpoint: "/301"
status: 301
weight: 2
- endpoint: "/400"
status: 400
weight: 1
- endpoint: "/404"
status: 404
weight: 5
- endpoint: "/500"
status: 500
weight: 2
- endpoint: "/502"
status: 502
weight: 1
#static
- endpoint: "/css/main.css"
size: 100..500
weight: 50
- endpoint: "/js/logic.js"
size: 645
weight: 20
- endpoint: "/js/additional.js"
size: 200..600
weight: 20
- endpoint: "/img/logo.png"
size: 500..1000
weight: 20
- endpoint: "/img/not_found.jpg"
status: 404
weight: 5
#photo
- endpoint: "/photo/a1.jpg"
size: 0..10000
weight: 10
- endpoint: "/photo/a2.jpg"
size: 0..10000
weight: 10
- endpoint: "/photo/a3.jpg"
status: 404
weight: 1
# api
- endpoint: "/api/index"
time: 0..500
weight: 50
- endpoint: "/api/registration"
time: 0..500
weight: 20
- endpoint: "/api/login"
time: 0..500
weight: 50
- endpoint: "/api/very_slow"
time: 500..1000
weight: 5