| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612 |
- [
- {
- "id": "9784",
- "name": "Add valid sample action with mandatory arguments",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action sample index 2",
- "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "5c91",
- "name": "Add valid sample action with mandatory arguments and continue control action",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 700 group 2 continue index 2",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action sample index 2",
- "matchPattern": "action order [0-9]+: sample rate 1/700 group 2 continue.*index 2 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "334b",
- "name": "Add valid sample action with mandatory arguments and drop control action",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 10000 group 11 drop index 22",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action sample",
- "matchPattern": "action order [0-9]+: sample rate 1/10000 group 11 drop.*index 22 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "da69",
- "name": "Add valid sample action with mandatory arguments and reclassify control action",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 20000 group 72 reclassify index 100",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action sample",
- "matchPattern": "action order [0-9]+: sample rate 1/20000 group 72 reclassify.*index 100 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "13ce",
- "name": "Add valid sample action with mandatory arguments and pipe control action",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 20 group 2 pipe index 100",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action sample",
- "matchPattern": "action order [0-9]+: sample rate 1/20 group 2 pipe.*index 100 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "1886",
- "name": "Add valid sample action with mandatory arguments and jump control action",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 700 group 25 jump 4 index 200",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action sample index 200",
- "matchPattern": "action order [0-9]+: sample rate 1/700 group 25 jump 4.*index 200 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "7571",
- "name": "Add sample action with invalid rate",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 0 group 1 index 2",
- "expExitCode": "255",
- "verifyCmd": "$TC actions get action sample index 2",
- "matchPattern": "action order [0-9]+: sample rate 1/0 group 1.*index 2 ref",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "b6d4",
- "name": "Add sample action with mandatory arguments and invalid control action",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 200000 group 52 foo index 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action sample",
- "matchPattern": "action order [0-9]+: sample rate 1/200000 group 52 foo.*index 1 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "a874",
- "name": "Add invalid sample action without mandatory arguments",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample index 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action sample",
- "matchPattern": "action order [0-9]+: sample.*index 1 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "ac01",
- "name": "Add invalid sample action without mandatory argument rate",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample group 10 index 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action sample",
- "matchPattern": "action order [0-9]+: sample.*group 10.*index 1 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "4203",
- "name": "Add invalid sample action without mandatory argument group",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 100 index 10",
- "expExitCode": "255",
- "verifyCmd": "$TC actions get action sample index 10",
- "matchPattern": "action order [0-9]+: sample rate 1/100.*index 10 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "14a7",
- "name": "Add invalid sample action without mandatory argument group",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 100 index 10",
- "expExitCode": "255",
- "verifyCmd": "$TC actions get action sample index 10",
- "matchPattern": "action order [0-9]+: sample rate 1/100.*index 10 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "8f2e",
- "name": "Add valid sample action with trunc argument",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 1024 group 4 trunc 1024 index 10",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action sample index 10",
- "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 trunc_size 1024 pipe.*index 10 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "45f8",
- "name": "Add sample action with maximum rate argument",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 4294967295 group 4 index 10",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action sample index 10",
- "matchPattern": "action order [0-9]+: sample rate 1/4294967295 group 4 pipe.*index 10 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "ad0c",
- "name": "Add sample action with maximum trunc argument",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 16000 group 4 trunc 4294967295 index 10",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action sample index 10",
- "matchPattern": "action order [0-9]+: sample rate 1/16000 group 4 trunc_size 4294967295 pipe.*index 10 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "83a9",
- "name": "Add sample action with maximum group argument",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 4294 group 4294967295 index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action sample index 1",
- "matchPattern": "action order [0-9]+: sample rate 1/4294 group 4294967295 pipe.*index 1 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "ed27",
- "name": "Add sample action with invalid rate argument",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 4294967296 group 4 index 10",
- "expExitCode": "255",
- "verifyCmd": "$TC actions get action sample index 10",
- "matchPattern": "action order [0-9]+: sample rate 1/4294967296 group 4 pipe.*index 10 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "2eae",
- "name": "Add sample action with invalid group argument",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 4098 group 5294967299 continue index 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions get action sample index 1",
- "matchPattern": "action order [0-9]+: sample rate 1/4098 group 5294967299 continue.*index 1 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "6ff3",
- "name": "Add sample action with invalid trunc size",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 1024 group 4 trunc 112233445566 index 11",
- "expExitCode": "255",
- "verifyCmd": "$TC actions get action sample index 11",
- "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 trunc_size 112233445566.*index 11 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "2b2a",
- "name": "Add sample action with invalid index",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 1024 group 4 index 5294967299",
- "expExitCode": "255",
- "verifyCmd": "$TC actions get action sample index 5294967299",
- "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pipe.*index 5294967299 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "dee2",
- "name": "Add sample action with maximum allowed index",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 1024 group 4 index 4294967295",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action sample index 4294967295",
- "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pipe.*index 4294967295 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "560e",
- "name": "Add sample action with cookie",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action sample rate 1024 group 4 index 45 cookie aabbccdd",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action sample index 45",
- "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pipe.*index 45.*cookie aabbccdd",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "704a",
- "name": "Replace existing sample action with new rate argument",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ],
- "$TC actions add action sample rate 1024 group 4 index 4"
- ],
- "cmdUnderTest": "$TC actions replace action sample rate 2048 group 4 index 4",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action sample",
- "matchPattern": "action order [0-9]+: sample rate 1/2048 group 4 pipe.*index 4",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "60eb",
- "name": "Replace existing sample action with new group argument",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ],
- "$TC actions add action sample rate 1024 group 4 index 4"
- ],
- "cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 index 4",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action sample",
- "matchPattern": "action order [0-9]+: sample rate 1/1024 group 7 pipe.*index 4",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "2cce",
- "name": "Replace existing sample action with new trunc argument",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ],
- "$TC actions add action sample rate 1024 group 4 trunc 48 index 4"
- ],
- "cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 trunc 64 index 4",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action sample",
- "matchPattern": "action order [0-9]+: sample rate 1/1024 group 7 trunc_size 64 pipe.*index 4",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- },
- {
- "id": "59d1",
- "name": "Replace existing sample action with new control argument",
- "category": [
- "actions",
- "sample"
- ],
- "setup": [
- [
- "$TC actions flush action sample",
- 0,
- 1,
- 255
- ],
- "$TC actions add action sample rate 1024 group 4 reclassify index 4"
- ],
- "cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 pipe index 4",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action sample",
- "matchPattern": "action order [0-9]+: sample rate 1/1024 group 7 pipe.*index 4",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action sample"
- ]
- }
- ]
|