775 lines · json
1[2 {3 "id": "9784",4 "name": "Add valid sample action with mandatory arguments",5 "category": [6 "actions",7 "sample"8 ],9 "plugins": {10 "requires": "nsPlugin"11 },12 "setup": [13 [14 "$TC actions flush action sample",15 0,16 1,17 25518 ]19 ],20 "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2",21 "expExitCode": "0",22 "verifyCmd": "$TC actions get action sample index 2",23 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref",24 "matchCount": "1",25 "teardown": [26 "$TC actions flush action sample"27 ]28 },29 {30 "id": "5c91",31 "name": "Add valid sample action with mandatory arguments and continue control action",32 "category": [33 "actions",34 "sample"35 ],36 "plugins": {37 "requires": "nsPlugin"38 },39 "setup": [40 [41 "$TC actions flush action sample",42 0,43 1,44 25545 ]46 ],47 "cmdUnderTest": "$TC actions add action sample rate 700 group 2 continue index 2",48 "expExitCode": "0",49 "verifyCmd": "$TC actions get action sample index 2",50 "matchPattern": "action order [0-9]+: sample rate 1/700 group 2 continue.*index 2 ref",51 "matchCount": "1",52 "teardown": [53 "$TC actions flush action sample"54 ]55 },56 {57 "id": "334b",58 "name": "Add valid sample action with mandatory arguments and drop control action",59 "category": [60 "actions",61 "sample"62 ],63 "plugins": {64 "requires": "nsPlugin"65 },66 "setup": [67 [68 "$TC actions flush action sample",69 0,70 1,71 25572 ]73 ],74 "cmdUnderTest": "$TC actions add action sample rate 10000 group 11 drop index 22",75 "expExitCode": "0",76 "verifyCmd": "$TC actions list action sample",77 "matchPattern": "action order [0-9]+: sample rate 1/10000 group 11 drop.*index 22 ref",78 "matchCount": "1",79 "teardown": [80 "$TC actions flush action sample"81 ]82 },83 {84 "id": "da69",85 "name": "Add valid sample action with mandatory arguments and reclassify control action",86 "category": [87 "actions",88 "sample"89 ],90 "plugins": {91 "requires": "nsPlugin"92 },93 "setup": [94 [95 "$TC actions flush action sample",96 0,97 1,98 25599 ]100 ],101 "cmdUnderTest": "$TC actions add action sample rate 20000 group 72 reclassify index 100",102 "expExitCode": "0",103 "verifyCmd": "$TC actions list action sample",104 "matchPattern": "action order [0-9]+: sample rate 1/20000 group 72 reclassify.*index 100 ref",105 "matchCount": "1",106 "teardown": [107 "$TC actions flush action sample"108 ]109 },110 {111 "id": "13ce",112 "name": "Add valid sample action with mandatory arguments and pipe control action",113 "category": [114 "actions",115 "sample"116 ],117 "plugins": {118 "requires": "nsPlugin"119 },120 "setup": [121 [122 "$TC actions flush action sample",123 0,124 1,125 255126 ]127 ],128 "cmdUnderTest": "$TC actions add action sample rate 20 group 2 pipe index 100",129 "expExitCode": "0",130 "verifyCmd": "$TC actions list action sample",131 "matchPattern": "action order [0-9]+: sample rate 1/20 group 2 pipe.*index 100 ref",132 "matchCount": "1",133 "teardown": [134 "$TC actions flush action sample"135 ]136 },137 {138 "id": "1886",139 "name": "Add valid sample action with mandatory arguments and jump control action",140 "category": [141 "actions",142 "sample"143 ],144 "plugins": {145 "requires": "nsPlugin"146 },147 "setup": [148 [149 "$TC actions flush action sample",150 0,151 1,152 255153 ]154 ],155 "cmdUnderTest": "$TC actions add action sample rate 700 group 25 jump 4 index 200",156 "expExitCode": "0",157 "verifyCmd": "$TC actions get action sample index 200",158 "matchPattern": "action order [0-9]+: sample rate 1/700 group 25 jump 4.*index 200 ref",159 "matchCount": "1",160 "teardown": [161 "$TC actions flush action sample"162 ]163 },164 {165 "id": "7571",166 "name": "Add sample action with invalid rate",167 "category": [168 "actions",169 "sample"170 ],171 "plugins": {172 "requires": "nsPlugin"173 },174 "setup": [175 [176 "$TC actions flush action sample",177 0,178 1,179 255180 ]181 ],182 "cmdUnderTest": "$TC actions add action sample rate 0 group 1 index 2",183 "expExitCode": "255",184 "verifyCmd": "$TC actions get action sample index 2",185 "matchPattern": "action order [0-9]+: sample rate 1/0 group 1.*index 2 ref",186 "matchCount": "0",187 "teardown": [188 "$TC actions flush action sample"189 ]190 },191 {192 "id": "b6d4",193 "name": "Add sample action with mandatory arguments and invalid control action",194 "category": [195 "actions",196 "sample"197 ],198 "plugins": {199 "requires": "nsPlugin"200 },201 "setup": [202 [203 "$TC actions flush action sample",204 0,205 1,206 255207 ]208 ],209 "cmdUnderTest": "$TC actions add action sample rate 200000 group 52 foo index 1",210 "expExitCode": "255",211 "verifyCmd": "$TC actions list action sample",212 "matchPattern": "action order [0-9]+: sample rate 1/200000 group 52 foo.*index 1 ref",213 "matchCount": "0",214 "teardown": []215 },216 {217 "id": "a874",218 "name": "Add invalid sample action without mandatory arguments",219 "category": [220 "actions",221 "sample"222 ],223 "plugins": {224 "requires": "nsPlugin"225 },226 "setup": [227 [228 "$TC actions flush action sample",229 0,230 1,231 255232 ]233 ],234 "cmdUnderTest": "$TC actions add action sample index 1",235 "expExitCode": "255",236 "verifyCmd": "$TC actions list action sample",237 "matchPattern": "action order [0-9]+: sample.*index 1 ref",238 "matchCount": "0",239 "teardown": []240 },241 {242 "id": "ac01",243 "name": "Add invalid sample action without mandatory argument rate",244 "category": [245 "actions",246 "sample"247 ],248 "plugins": {249 "requires": "nsPlugin"250 },251 "setup": [252 [253 "$TC actions flush action sample",254 0,255 1,256 255257 ]258 ],259 "cmdUnderTest": "$TC actions add action sample group 10 index 1",260 "expExitCode": "255",261 "verifyCmd": "$TC actions list action sample",262 "matchPattern": "action order [0-9]+: sample.*group 10.*index 1 ref",263 "matchCount": "0",264 "teardown": []265 },266 {267 "id": "4203",268 "name": "Add invalid sample action without mandatory argument group",269 "category": [270 "actions",271 "sample"272 ],273 "plugins": {274 "requires": "nsPlugin"275 },276 "setup": [277 [278 "$TC actions flush action sample",279 0,280 1,281 255282 ]283 ],284 "cmdUnderTest": "$TC actions add action sample rate 100 index 10",285 "expExitCode": "255",286 "verifyCmd": "$TC actions get action sample index 10",287 "matchPattern": "action order [0-9]+: sample rate 1/100.*index 10 ref",288 "matchCount": "0",289 "teardown": []290 },291 {292 "id": "14a7",293 "name": "Add invalid sample action without mandatory argument group",294 "category": [295 "actions",296 "sample"297 ],298 "plugins": {299 "requires": "nsPlugin"300 },301 "setup": [302 [303 "$TC actions flush action sample",304 0,305 1,306 255307 ]308 ],309 "cmdUnderTest": "$TC actions add action sample rate 100 index 10",310 "expExitCode": "255",311 "verifyCmd": "$TC actions get action sample index 10",312 "matchPattern": "action order [0-9]+: sample rate 1/100.*index 10 ref",313 "matchCount": "0",314 "teardown": []315 },316 {317 "id": "8f2e",318 "name": "Add valid sample action with trunc argument",319 "category": [320 "actions",321 "sample"322 ],323 "plugins": {324 "requires": "nsPlugin"325 },326 "setup": [327 [328 "$TC actions flush action sample",329 0,330 1,331 255332 ]333 ],334 "cmdUnderTest": "$TC actions add action sample rate 1024 group 4 trunc 1024 index 10",335 "expExitCode": "0",336 "verifyCmd": "$TC actions get action sample index 10",337 "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 trunc_size 1024 pipe.*index 10 ref",338 "matchCount": "1",339 "teardown": [340 "$TC actions flush action sample"341 ]342 },343 {344 "id": "45f8",345 "name": "Add sample action with maximum rate argument",346 "category": [347 "actions",348 "sample"349 ],350 "plugins": {351 "requires": "nsPlugin"352 },353 "setup": [354 [355 "$TC actions flush action sample",356 0,357 1,358 255359 ]360 ],361 "cmdUnderTest": "$TC actions add action sample rate 4294967295 group 4 index 10",362 "expExitCode": "0",363 "verifyCmd": "$TC actions get action sample index 10",364 "matchPattern": "action order [0-9]+: sample rate 1/4294967295 group 4 pipe.*index 10 ref",365 "matchCount": "1",366 "teardown": [367 "$TC actions flush action sample"368 ]369 },370 {371 "id": "ad0c",372 "name": "Add sample action with maximum trunc argument",373 "category": [374 "actions",375 "sample"376 ],377 "plugins": {378 "requires": "nsPlugin"379 },380 "setup": [381 [382 "$TC actions flush action sample",383 0,384 1,385 255386 ]387 ],388 "cmdUnderTest": "$TC actions add action sample rate 16000 group 4 trunc 4294967295 index 10",389 "expExitCode": "0",390 "verifyCmd": "$TC actions get action sample index 10",391 "matchPattern": "action order [0-9]+: sample rate 1/16000 group 4 trunc_size 4294967295 pipe.*index 10 ref",392 "matchCount": "1",393 "teardown": [394 "$TC actions flush action sample"395 ]396 },397 {398 "id": "83a9",399 "name": "Add sample action with maximum group argument",400 "category": [401 "actions",402 "sample"403 ],404 "plugins": {405 "requires": "nsPlugin"406 },407 "setup": [408 [409 "$TC actions flush action sample",410 0,411 1,412 255413 ]414 ],415 "cmdUnderTest": "$TC actions add action sample rate 4294 group 4294967295 index 1",416 "expExitCode": "0",417 "verifyCmd": "$TC actions get action sample index 1",418 "matchPattern": "action order [0-9]+: sample rate 1/4294 group 4294967295 pipe.*index 1 ref",419 "matchCount": "1",420 "teardown": [421 "$TC actions flush action sample"422 ]423 },424 {425 "id": "ed27",426 "name": "Add sample action with invalid rate argument",427 "category": [428 "actions",429 "sample"430 ],431 "plugins": {432 "requires": "nsPlugin"433 },434 "setup": [435 [436 "$TC actions flush action sample",437 0,438 1,439 255440 ]441 ],442 "cmdUnderTest": "$TC actions add action sample rate 4294967296 group 4 index 10",443 "expExitCode": "255",444 "verifyCmd": "$TC actions get action sample index 10",445 "matchPattern": "action order [0-9]+: sample rate 1/4294967296 group 4 pipe.*index 10 ref",446 "matchCount": "0",447 "teardown": []448 },449 {450 "id": "2eae",451 "name": "Add sample action with invalid group argument",452 "category": [453 "actions",454 "sample"455 ],456 "plugins": {457 "requires": "nsPlugin"458 },459 "setup": [460 [461 "$TC actions flush action sample",462 0,463 1,464 255465 ]466 ],467 "cmdUnderTest": "$TC actions add action sample rate 4098 group 5294967299 continue index 1",468 "expExitCode": "255",469 "verifyCmd": "$TC actions get action sample index 1",470 "matchPattern": "action order [0-9]+: sample rate 1/4098 group 5294967299 continue.*index 1 ref",471 "matchCount": "0",472 "teardown": []473 },474 {475 "id": "6ff3",476 "name": "Add sample action with invalid trunc size",477 "category": [478 "actions",479 "sample"480 ],481 "plugins": {482 "requires": "nsPlugin"483 },484 "setup": [485 [486 "$TC actions flush action sample",487 0,488 1,489 255490 ]491 ],492 "cmdUnderTest": "$TC actions add action sample rate 1024 group 4 trunc 112233445566 index 11",493 "expExitCode": "255",494 "verifyCmd": "$TC actions get action sample index 11",495 "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 trunc_size 112233445566.*index 11 ref",496 "matchCount": "0",497 "teardown": []498 },499 {500 "id": "2b2a",501 "name": "Add sample action with invalid index",502 "category": [503 "actions",504 "sample"505 ],506 "plugins": {507 "requires": "nsPlugin"508 },509 "setup": [510 [511 "$TC actions flush action sample",512 0,513 1,514 255515 ]516 ],517 "cmdUnderTest": "$TC actions add action sample rate 1024 group 4 index 5294967299",518 "expExitCode": "255",519 "verifyCmd": "$TC actions get action sample index 5294967299",520 "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pipe.*index 5294967299 ref",521 "matchCount": "0",522 "teardown": []523 },524 {525 "id": "dee2",526 "name": "Add sample action with maximum allowed index",527 "category": [528 "actions",529 "sample"530 ],531 "plugins": {532 "requires": "nsPlugin"533 },534 "setup": [535 [536 "$TC actions flush action sample",537 0,538 1,539 255540 ]541 ],542 "cmdUnderTest": "$TC actions add action sample rate 1024 group 4 index 4294967295",543 "expExitCode": "0",544 "verifyCmd": "$TC actions get action sample index 4294967295",545 "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pipe.*index 4294967295 ref",546 "matchCount": "1",547 "teardown": [548 "$TC actions flush action sample"549 ]550 },551 {552 "id": "560e",553 "name": "Add sample action with cookie",554 "category": [555 "actions",556 "sample"557 ],558 "plugins": {559 "requires": "nsPlugin"560 },561 "setup": [562 [563 "$TC actions flush action sample",564 0,565 1,566 255567 ]568 ],569 "cmdUnderTest": "$TC actions add action sample rate 1024 group 4 index 45 cookie aabbccdd",570 "expExitCode": "0",571 "verifyCmd": "$TC actions get action sample index 45",572 "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pipe.*index 45.*cookie aabbccdd",573 "matchCount": "1",574 "teardown": [575 "$TC actions flush action sample"576 ]577 },578 {579 "id": "704a",580 "name": "Replace existing sample action with new rate argument",581 "category": [582 "actions",583 "sample"584 ],585 "plugins": {586 "requires": "nsPlugin"587 },588 "setup": [589 [590 "$TC actions flush action sample",591 0,592 1,593 255594 ],595 "$TC actions add action sample rate 1024 group 4 index 4"596 ],597 "cmdUnderTest": "$TC actions replace action sample rate 2048 group 4 index 4",598 "expExitCode": "0",599 "verifyCmd": "$TC actions list action sample",600 "matchPattern": "action order [0-9]+: sample rate 1/2048 group 4 pipe.*index 4",601 "matchCount": "1",602 "teardown": [603 "$TC actions flush action sample"604 ]605 },606 {607 "id": "60eb",608 "name": "Replace existing sample action with new group argument",609 "category": [610 "actions",611 "sample"612 ],613 "plugins": {614 "requires": "nsPlugin"615 },616 "setup": [617 [618 "$TC actions flush action sample",619 0,620 1,621 255622 ],623 "$TC actions add action sample rate 1024 group 4 index 4"624 ],625 "cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 index 4",626 "expExitCode": "0",627 "verifyCmd": "$TC actions list action sample",628 "matchPattern": "action order [0-9]+: sample rate 1/1024 group 7 pipe.*index 4",629 "matchCount": "1",630 "teardown": [631 "$TC actions flush action sample"632 ]633 },634 {635 "id": "2cce",636 "name": "Replace existing sample action with new trunc argument",637 "category": [638 "actions",639 "sample"640 ],641 "plugins": {642 "requires": "nsPlugin"643 },644 "setup": [645 [646 "$TC actions flush action sample",647 0,648 1,649 255650 ],651 "$TC actions add action sample rate 1024 group 4 trunc 48 index 4"652 ],653 "cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 trunc 64 index 4",654 "expExitCode": "0",655 "verifyCmd": "$TC actions list action sample",656 "matchPattern": "action order [0-9]+: sample rate 1/1024 group 7 trunc_size 64 pipe.*index 4",657 "matchCount": "1",658 "teardown": [659 "$TC actions flush action sample"660 ]661 },662 {663 "id": "59d1",664 "name": "Replace existing sample action with new control argument",665 "category": [666 "actions",667 "sample"668 ],669 "plugins": {670 "requires": "nsPlugin"671 },672 "setup": [673 [674 "$TC actions flush action sample",675 0,676 1,677 255678 ],679 "$TC actions add action sample rate 1024 group 4 reclassify index 4"680 ],681 "cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 pipe index 4",682 "expExitCode": "0",683 "verifyCmd": "$TC actions list action sample",684 "matchPattern": "action order [0-9]+: sample rate 1/1024 group 7 pipe.*index 4",685 "matchCount": "1",686 "teardown": [687 "$TC actions flush action sample"688 ]689 },690 {691 "id": "0a6e",692 "name": "Replace sample action with invalid goto chain control",693 "category": [694 "actions",695 "sample"696 ],697 "plugins": {698 "requires": "nsPlugin"699 },700 "setup": [701 [702 "$TC actions flush action sample",703 0,704 1,705 255706 ],707 "$TC actions add action sample rate 1024 group 4 pass index 90"708 ],709 "cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 goto chain 42 index 90 cookie c1a0c1a0",710 "expExitCode": "255",711 "verifyCmd": "$TC actions list action sample",712 "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pass.*index 90",713 "matchCount": "1",714 "teardown": [715 "$TC actions flush action sample"716 ]717 },718 {719 "id": "3872",720 "name": "Delete sample action with valid index",721 "category": [722 "actions",723 "sample"724 ],725 "plugins": {726 "requires": "nsPlugin"727 },728 "setup": [729 [730 "$TC actions flush action sample",731 0,732 1,733 255734 ],735 "$TC actions add action sample rate 10 group 1 index 20"736 ],737 "cmdUnderTest": "$TC actions del action sample index 20",738 "expExitCode": "0",739 "verifyCmd": "$TC actions get action sample index 20",740 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 20 ref",741 "matchCount": "0",742 "teardown": [743 "$TC actions flush action sample"744 ]745 },746 {747 "id": "a394",748 "name": "Delete sample action with invalid index",749 "category": [750 "actions",751 "sample"752 ],753 "plugins": {754 "requires": "nsPlugin"755 },756 "setup": [757 [758 "$TC actions flush action sample",759 0,760 1,761 255762 ],763 "$TC actions add action sample rate 10 group 1 index 20"764 ],765 "cmdUnderTest": "$TC actions del action sample index 10",766 "expExitCode": "255",767 "verifyCmd": "$TC actions get action sample index 20",768 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 20 ref",769 "matchCount": "1",770 "teardown": [771 "$TC actions flush action sample"772 ]773 }774]775