Commit 0fc86746 authored by Zhengchao Shao's avatar Zhengchao Shao Committed by David S. Miller

selftests/tc-testings: add connmark action deleting test case

Test 6571: Delete connmark action with valid index
Test 3426: Delete connmark action with invalid index
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 910d504b
......@@ -312,5 +312,55 @@
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "6571",
"name": "Delete connmark action with valid index",
"category": [
"actions",
"connmark"
],
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
],
"$TC actions add action connmark pass index 20"
],
"cmdUnderTest": "$TC actions del action connmark index 20",
"expExitCode": "0",
"verifyCmd": "$TC actions get action connmark index 20",
"matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 20 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "3426",
"name": "Delete connmark action with invalid index",
"category": [
"actions",
"connmark"
],
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
],
"$TC actions add action connmark pass index 20"
],
"cmdUnderTest": "$TC actions del action connmark index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions get action connmark index 20",
"matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 20 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
}
]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment