Signed-off-by: Roman Mashak
---
.../tc-testing/tc-tests/actions/sample.json| 588 +
1 file changed, 588 insertions(+)
create mode 100644
tools/testing/selftests/tc-testing/tc-tests/actions/sample.json
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/sample.json
b/tools/testing/selftests/tc-testing/tc-tests/actions/sample.json
new file mode 100644
index ..3aca33c00039
--- /dev/null
+++ b/tools/testing/selftests/tc-testing/tc-tests/actions/sample.json
@@ -0,0 +1,588 @@
+[
+{
+"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 1 group 11
drop index 22",
+"expExitCode": "0",
+"verifyCmd": "$TC actions list action sample",
+"matchPattern": "action order [0-9]+: sample rate 1/1 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 2 group 72
reclassify index 100",
+"expExitCode": "0",
+"verifyCmd": "$TC actions list action sample",
+"matchPattern": "action order [0-9]+: sample rate 1/2 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-