4 "name": "Add gate action with priority and sched-entry",
10 "requires": "nsPlugin"
14 "$TC action flush action gate",
20 "cmdUnderTest": "$TC action add action gate priority 1 sched-entry close 100000000ns index 100",
22 "verifyCmd": "$TC action get action gate index 100",
23 "matchPattern": "action order [0-9]*: .*priority 1.*index 100 ref",
26 "$TC action flush action gate"
31 "name": "Add gate action with base-time",
37 "requires": "nsPlugin"
41 "$TC actions flush action gate",
47 "cmdUnderTest": "$TC action add action gate base-time 200000000000ns sched-entry close 100000000ns index 10",
49 "verifyCmd": "$TC action ls action gate",
50 "matchPattern": "action order [0-9]*: .*base-time 200s.*index 10 ref",
53 "$TC actions flush action gate"
58 "name": "Add gate action with cycle-time",
64 "requires": "nsPlugin"
68 "$TC action flush action gate",
74 "cmdUnderTest": "$TC action add action gate cycle-time 200000000000ns sched-entry close 100000000ns index 1000",
76 "verifyCmd": "$TC action ls action gate",
77 "matchPattern": "action order [0-9]*: .*cycle-time 200s.*index 1000 ref",
80 "$TC action flush action gate"
85 "name": "Add gate action with cycle-time-ext",
91 "requires": "nsPlugin"
95 "$TC action flush action gate",
101 "cmdUnderTest": "$TC action add action gate cycle-time-ext 20000000000ns sched-entry close 100000000ns index 1000",
103 "verifyCmd": "$TC action get action gate index 1000",
104 "matchPattern": "action order [0-9]*: .*cycle-time-ext 20s.*index 1000 ref",
107 "$TC action flush action gate"
112 "name": "Replace gate base-time action",
118 "requires": "nsPlugin"
122 "$TC actions flush action gate",
128 "$TC action add action gate base-time 200000000000ns sched-entry open 200000000ns -1 8000000b index 20",
134 "cmdUnderTest": "$TC action replace action gate base-time 400000000000ns index 20",
136 "verifyCmd": "$TC action get action gate index 20",
137 "matchPattern": "action order [0-9]*: .*base-time 400s.*index 20 ref",
140 "$TC action flush action gate"
145 "name": "Delete gate action with valid index",
151 "requires": "nsPlugin"
155 "$TC actions flush action gate",
161 "$TC action add action gate base-time 200000000000ns sched-entry open 200000000ns -1 8000000b index 302",
167 "cmdUnderTest": "$TC action delete action gate index 302",
169 "verifyCmd": "$TC action get action bpf index 302",
170 "matchPattern": "action order [0-9]*: .*base-time 200s.*index 302 ref",
173 "$TC action flush action gate"
178 "name": "Delete gate action with invalid index",
184 "requires": "nsPlugin"
188 "$TC actions flush action gate",
194 "$TC action add action gate base-time 600000000000ns sched-entry open 200000000ns -1 8000000b index 999",
200 "cmdUnderTest": "$TC action delete action gate index 333",
201 "expExitCode": "255",
202 "verifyCmd": "$TC action get action gate index 999",
203 "matchPattern": "action order [0-9]*: .*base-time 600s.*index 999 ref",
206 "$TC action flush action gate"
211 "name": "List gate actions",
217 "requires": "nsPlugin"
221 "$TC action flush action gate",
226 "$TC action add action gate base-time 600000000000ns sched-entry open 200000000ns -1 8000000b index 101",
227 "$TC action add action gate cycle-time 600000000000ns sched-entry open 600000000ns -1 8000000b index 102",
228 "$TC action add action gate cycle-time-ext 400000000000ns sched-entry close 100000000ns index 103"
230 "cmdUnderTest": "$TC action list action gate",
232 "verifyCmd": "$TC action list action gate",
233 "matchPattern": "action order [0-9]*:",
236 "$TC actions flush action gate"
241 "name": "Flush gate actions",
247 "requires": "nsPlugin"
251 "$TC actions flush action gate",
256 "$TC action add action gate base-time 600000000000ns sched-entry open 200000000ns -1 8000000b index 101",
257 "$TC action add action gate cycle-time 600000000000ns sched-entry open 600000000ns -1 8000000b index 102",
258 "$TC action add action gate cycle-time-ext 400000000000ns sched-entry close 100000000ns index 103"
260 "cmdUnderTest": "$TC action flush action gate",
262 "verifyCmd": "$TC action list action gate",
263 "matchPattern": "action order [0-9]*: .*priority",
266 "$TC actions flush action gate"
271 "name": "Add gate action with duplicate index",
277 "requires": "nsPlugin"
281 "$TC actions flush action gate",
286 "$TC action add action gate cycle-time 600000000000ns sched-entry open 600000000ns -1 8000000b index 4294967295"
288 "cmdUnderTest": "$TC action add action gate cycle-time 600000000000ns sched-entry open 600000000ns -1 8000000b index 4294967295",
289 "expExitCode": "255",
290 "verifyCmd": "$TC action get action gate index 4294967295",
291 "matchPattern": "action order [0-9]*: .*index 4294967295",
294 "$TC action flush action gate"
299 "name": "Add gate action with invalid index",
305 "requires": "nsPlugin"
309 "$TC actions flush action gate",
315 "cmdUnderTest": "$TC action add action gate cycle-time-ext 400000000000ns sched-entry close 100000000ns index 4294967296",
316 "expExitCode": "255",
317 "verifyCmd": "$TC action ls action gate",
318 "matchPattern": "action order [0-9]*:",
321 "$TC action flush action gate"
326 "name": "Add gate action with cookie",
332 "requires": "nsPlugin"
336 "$TC actions flush action gate",
342 "cmdUnderTest": "$TC action add action gate cycle-time-ext 400000000000ns sched-entry close 100000000ns index 4294 cookie d0d0d0d0d0d0d0d0",
344 "verifyCmd": "$TC action list action gate",
345 "matchPattern": "action order [0-9]*: .*cookie d0d0d0d0d0d0d0",
348 "$TC action flush action gate"