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
65
66
67
68
69
|
meta {
name: 01-create
type: http
seq: 1
}
post {
url: {{WARDEN_CFG_HOST}}/api/{{WARDEN_CFG_VERSION}}/typology
body: json
auth: inherit
}
body:json {
{
"description": "Test description",
"typology_name": "Rule-901-Typology-999",
"id": "999",
"version": "1.0.0",
"workflow": {
"alert_threshold": 200,
"interdiction_threshold": 400
},
"rules": [
{
"id": "901",
"version": "1.0.0",
"wghts": [
{
"ref": ".err",
"wght": 0
},
{
"ref": ".x00",
"wght": 100
},
{
"ref": ".01",
"wght": 100
},
{
"ref": ".02",
"wght": 200
},
{
"ref": ".03",
"wght": 400
}
]
}
],
"expression": {
"operator": "ADD",
"terms": [
{
"id": "901",
"version": "1.0.0"
}
]
}
}
}
assert {
res.status: eq 201
}
settings {
encodeUrl: true
}
|