diff options
Diffstat (limited to 'tools/testing/selftests/tc-testing/tc-tests/actions/gact.json')
| -rw-r--r-- | tools/testing/selftests/tc-testing/tc-tests/actions/gact.json | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json b/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json index 89189a03ce3d..814b7a8a478b 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json | |||
| @@ -560,5 +560,30 @@ | |||
| 560 | "teardown": [ | 560 | "teardown": [ |
| 561 | "$TC actions flush action gact" | 561 | "$TC actions flush action gact" |
| 562 | ] | 562 | ] |
| 563 | }, | ||
| 564 | { | ||
| 565 | "id": "ca89", | ||
| 566 | "name": "Replace gact action with invalid goto chain control", | ||
| 567 | "category": [ | ||
| 568 | "actions", | ||
| 569 | "gact" | ||
| 570 | ], | ||
| 571 | "setup": [ | ||
| 572 | [ | ||
| 573 | "$TC actions flush action gact", | ||
| 574 | 0, | ||
| 575 | 1, | ||
| 576 | 255 | ||
| 577 | ], | ||
| 578 | "$TC actions add action pass random determ drop 2 index 90" | ||
| 579 | ], | ||
| 580 | "cmdUnderTest": "$TC actions replace action goto chain 42 random determ drop 5 index 90 cookie c1a0c1a0", | ||
| 581 | "expExitCode": "255", | ||
| 582 | "verifyCmd": "$TC actions list action gact", | ||
| 583 | "matchPattern": "action order [0-9]*: gact action pass.*random type determ drop val 2.*index 90 ref", | ||
| 584 | "matchCount": "1", | ||
| 585 | "teardown": [ | ||
| 586 | "$TC actions flush action gact" | ||
| 587 | ] | ||
| 563 | } | 588 | } |
| 564 | ] | 589 | ] |
