-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample-urls.js
More file actions
48 lines (48 loc) · 768 Bytes
/
Copy pathsample-urls.js
File metadata and controls
48 lines (48 loc) · 768 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
47
48
module.exports = {
port: 4000,
target: 'https://jsonplaceholder.typicode.com/',
urlsGeneratingErrors: [
{
url: /\/todos\b/,
probability: 0.6,
codes: {
'404': {
weight: 0.3
},
'500': {
weight: 0.3
},
'close': {
weight: 0.3
}
}
},
{
url: /\/posts/,
probability: 0.8,
codes: {
'404': {
weight: 0.3
},
'500': {
weight: 0.3
},
'close': {
weight: 0.3
}
}
},
{
url: /\/photos\b/,
probability: 0.1,
codes: {
'404': {
weight: 0.7
},
'500': {
weight: 0.3
},
}
}
],
}