Files
42_ft_ping/test/tests.json
2025-12-17 06:56:48 -06:00

108 lines
2.5 KiB
JSON

{
"parsing": {
"basic": [
{
"title": "normal",
"args": "1.1.1.1",
"exit": 0
}
],
"dns": [
{
"title": "normal",
"args": "google.com",
"exit": 0
}
],
"ttl": [
{
"title": "normal",
"args": "1.1.1.1 --ttl 128",
"exit": 0
},
{
"title": "too high",
"args": "1.1.1.1 --ttl 256",
"exit": 1
},
{
"title": "too low",
"args": "1.1.1.1 --ttl 0",
"exit": 1
},
{
"title": "negative",
"args": "1.1.1.1 --ttl -1",
"exit": 1
}
],
"preload": [
{
"title": "normal",
"args": "1.1.1.1 -p 1",
"exit": 0
},
{
"title": "negative",
"args": "1.1.1.1 -p -1",
"exit": 1
},
{
"title": "highest",
"args": "1.1.1.1 -p 2147483647",
"exit": 0
},
{
"title": "too high",
"args": "1.1.1.1 -p 2147483648",
"exit": 1
}
],
"payload_size": [
{
"title": "normal",
"args": "1.1.1.1 -s 1",
"exit": 0
},
{
"title": "negative",
"args": "1.1.1.1 -s -1",
"exit": 1
},
{
"title": "too high",
"args": "1.1.1.1 -s 2147483648",
"exit": 1
}
]
},
"excution": {
"basic": [
{
"title": "normal",
"args": "1.1.1.1"
}
],
"dns": [
{
"title": "normal",
"args": "google.com"
},
{
"title": "invalid",
"args": "domain.invalid",
"exit": 1
}
],
"payload_size": [
{
"title": "normal",
"args": "1.1.1.1 -s 56"
},
{
"title": "empty payload",
"args": "1.1.1.1 -s 0"
}
]
}
}