Commit c23fcbbc authored by Roman Mashak's avatar Roman Mashak Committed by David S. Miller
Browse files

tc-testing: added tests with cookie for conntrack TC action

parent 23c161ee
Loading
Loading
Loading
Loading
+72 −0
Original line number Diff line number Diff line
@@ -23,6 +23,30 @@
            "$TC actions flush action ct"
        ]
    },
    {
        "id": "e38c",
        "name": "Add simple ct action with cookie",
        "category": [
            "actions",
            "ct"
        ],
        "setup": [
            [
                "$TC actions flush action ct",
                0,
                1,
                255
            ]
        ],
        "cmdUnderTest": "$TC actions add action ct index 42 cookie deadbeef",
        "expExitCode": "0",
        "verifyCmd": "$TC actions list action ct",
        "matchPattern": "action order [0-9]*: ct zone 0 pipe.*index 42 ref.*cookie deadbeef",
        "matchCount": "1",
        "teardown": [
            "$TC actions flush action ct"
        ]
    },
    {
        "id": "9f20",
        "name": "Add ct clear action",
@@ -47,6 +71,30 @@
            "$TC actions flush action ct"
        ]
    },
    {
        "id": "0bc1",
        "name": "Add ct clear action with cookie of max length",
        "category": [
            "actions",
            "ct"
        ],
        "setup": [
            [
                "$TC actions flush action ct",
                0,
                1,
                255
            ]
        ],
        "cmdUnderTest": "$TC actions add action ct clear index 42 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
        "expExitCode": "0",
        "verifyCmd": "$TC actions list action ct",
        "matchPattern": "action order [0-9]*: ct clear pipe.*index 42 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
        "matchCount": "1",
        "teardown": [
            "$TC actions flush action ct"
        ]
    },
    {
        "id": "5bea",
        "name": "Try ct with zone",
@@ -311,6 +359,30 @@
            "$TC actions flush action ct"
        ]
    },
    {
        "id": "2faa",
        "name": "Try ct with mark + mask and cookie",
        "category": [
            "actions",
            "ct"
        ],
        "setup": [
            [
                "$TC actions flush action ct",
                0,
                1,
                255
            ]
        ],
        "cmdUnderTest": "$TC actions add action ct mark 0x42/0xf0 index 42 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
        "expExitCode": "0",
        "verifyCmd": "$TC actions list action ct",
        "matchPattern": "action order [0-9]*: ct mark 66/0xf0 zone 0 pipe.*index 42 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
        "matchCount": "1",
        "teardown": [
            "$TC actions flush action ct"
        ]
    },
    {
        "id": "3991",
        "name": "Add simple ct action with no_percpu flag",