Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88c2e3b4 authored by Davide Caratti's avatar Davide Caratti Committed by David S. Miller
Browse files

tc-tests: test denial of 'goto chain' on 'random' traffic in gact.json



add test to verify if act_gact forbids 'goto chain' control actions on
'random' traffic in gact.json.

Signed-off-by: default avatarDavide Caratti <dcaratti@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c08f5ed5
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -536,5 +536,29 @@
        "matchPattern": "^[ \t]+index [0-9]+ ref",
        "matchCount": "0",
        "teardown": []
    },
    {
        "id": "8e47",
        "name": "Add gact action with random determ goto chain control action",
        "category": [
            "actions",
            "gact"
        ],
        "setup": [
            [
                "$TC actions flush action gact",
                0,
                1,
                255
            ]
        ],
        "cmdUnderTest": "$TC actions add action pass random determ goto chain 1 2 index 90",
        "expExitCode": "255",
        "verifyCmd": "$TC actions list action gact",
        "matchPattern": "action order [0-9]*: gact action pass random type determ goto chain 1 val 2.*index 90 ref",
        "matchCount": "0",
        "teardown": [
            "$TC actions flush action gact"
        ]
    }
]