-
Notifications
You must be signed in to change notification settings - Fork 0
/
ping.json
47 lines (47 loc) · 1.18 KB
/
ping.json
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
{
"description": "Pings www.redhat.com 5 times using the Unix ping executable.",
"testResult": 0,
"testTimeout": 10000000000,
"reelFirstStep": {
"execute": "ping -c 5 www.redhat.com\n",
"expect": [
"(?m)(\\d+) packets transmitted, (\\d+)( packets){0,1} received, (?:\\+(\\d+) errors)?.*$"
],
"timeout": 10000000000
},
"identifier": {
"url": "http://test-network-function.com/tests/example/ping",
"version": "v1.0.0"
},
"resultContexts": [
{
"pattern": "(?m)(\\d+) packets transmitted, (\\d+)( packets){0,1} received, (?:\\+(\\d+) errors)?.*$",
"defaultResult": 1,
"composedAssertions": [
{
"assertions": [
{
"groupIdx": 1,
"condition": {
"type": "intComparison",
"input": 5,
"comparison": "=="
}
},
{
"groupIdx": 2,
"condition": {
"type": "intComparison",
"input": 5,
"comparison": "=="
}
}
],
"logic": {
"type": "and"
}
}
]
}
]
}