10923edf4SLucas Bates[ 20923edf4SLucas Bates { 30923edf4SLucas Bates "id": "b078", 40923edf4SLucas Bates "name": "Add simple action", 50923edf4SLucas Bates "category": [ 60923edf4SLucas Bates "actions", 70923edf4SLucas Bates "simple" 80923edf4SLucas Bates ], 90923edf4SLucas Bates "setup": [ 100923edf4SLucas Bates [ 110923edf4SLucas Bates "$TC actions flush action simple", 120923edf4SLucas Bates 0, 130923edf4SLucas Bates 1, 140923edf4SLucas Bates 255 150923edf4SLucas Bates ] 160923edf4SLucas Bates ], 170923edf4SLucas Bates "cmdUnderTest": "$TC actions add action simple sdata \"A triumph\" index 60", 180923edf4SLucas Bates "expExitCode": "0", 190923edf4SLucas Bates "verifyCmd": "$TC actions list action simple", 200923edf4SLucas Bates "matchPattern": "action order [0-9]*: Simple <A triumph>.*index 60 ref", 210923edf4SLucas Bates "matchCount": "1", 220923edf4SLucas Bates "teardown": [ 230923edf4SLucas Bates "$TC actions flush action simple" 240923edf4SLucas Bates ] 250923edf4SLucas Bates }, 260923edf4SLucas Bates { 27*e48792a9SVlad Buslov "id": "4297", 28*e48792a9SVlad Buslov "name": "Add simple action with change command", 29*e48792a9SVlad Buslov "category": [ 30*e48792a9SVlad Buslov "actions", 31*e48792a9SVlad Buslov "simple" 32*e48792a9SVlad Buslov ], 33*e48792a9SVlad Buslov "setup": [ 34*e48792a9SVlad Buslov [ 35*e48792a9SVlad Buslov "$TC actions flush action simple", 36*e48792a9SVlad Buslov 0, 37*e48792a9SVlad Buslov 1, 38*e48792a9SVlad Buslov 255 39*e48792a9SVlad Buslov ] 40*e48792a9SVlad Buslov ], 41*e48792a9SVlad Buslov "cmdUnderTest": "$TC actions change action simple sdata \"Not changed\" index 60", 42*e48792a9SVlad Buslov "expExitCode": "0", 43*e48792a9SVlad Buslov "verifyCmd": "$TC actions list action simple", 44*e48792a9SVlad Buslov "matchPattern": "action order [0-9]*: Simple <Not changed>.*index 60 ref", 45*e48792a9SVlad Buslov "matchCount": "1", 46*e48792a9SVlad Buslov "teardown": [ 47*e48792a9SVlad Buslov "$TC actions flush action simple" 48*e48792a9SVlad Buslov ] 49*e48792a9SVlad Buslov }, 50*e48792a9SVlad Buslov { 510923edf4SLucas Bates "id": "6d4c", 520923edf4SLucas Bates "name": "Add simple action with duplicate index", 530923edf4SLucas Bates "category": [ 540923edf4SLucas Bates "actions", 550923edf4SLucas Bates "simple" 560923edf4SLucas Bates ], 570923edf4SLucas Bates "setup": [ 580923edf4SLucas Bates [ 590923edf4SLucas Bates "$TC actions flush action simple", 600923edf4SLucas Bates 0, 610923edf4SLucas Bates 1, 620923edf4SLucas Bates 255 630923edf4SLucas Bates ], 640923edf4SLucas Bates "$TC actions add action simple sdata \"Aruba\" index 4" 650923edf4SLucas Bates ], 660923edf4SLucas Bates "cmdUnderTest": "$TC actions add action simple sdata \"Jamaica\" index 4", 670923edf4SLucas Bates "expExitCode": "255", 680923edf4SLucas Bates "verifyCmd": "$TC actions list action simple", 690923edf4SLucas Bates "matchPattern": "action order [0-9]*: Simple <Jamaica>.*ref", 700923edf4SLucas Bates "matchCount": "0", 710923edf4SLucas Bates "teardown": [ 720923edf4SLucas Bates "$TC actions flush action simple" 730923edf4SLucas Bates ] 740923edf4SLucas Bates }, 750923edf4SLucas Bates { 760923edf4SLucas Bates "id": "2542", 770923edf4SLucas Bates "name": "List simple actions", 780923edf4SLucas Bates "category": [ 790923edf4SLucas Bates "actions", 800923edf4SLucas Bates "simple" 810923edf4SLucas Bates ], 820923edf4SLucas Bates "setup": [ 830923edf4SLucas Bates [ 840923edf4SLucas Bates "$TC actions flush action simple", 850923edf4SLucas Bates 0, 860923edf4SLucas Bates 1, 870923edf4SLucas Bates 255 880923edf4SLucas Bates ], 890923edf4SLucas Bates "$TC actions add action simple sdata \"Rock\"", 900923edf4SLucas Bates "$TC actions add action simple sdata \"Paper\"", 910923edf4SLucas Bates "$TC actions add action simple sdata \"Scissors\" index 98" 920923edf4SLucas Bates ], 930923edf4SLucas Bates "cmdUnderTest": "$TC actions list action simple", 940923edf4SLucas Bates "expExitCode": "0", 950923edf4SLucas Bates "verifyCmd": "$TC actions list action simple", 960923edf4SLucas Bates "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>", 970923edf4SLucas Bates "matchCount": "3", 980923edf4SLucas Bates "teardown": [ 990923edf4SLucas Bates "$TC actions flush action simple" 1000923edf4SLucas Bates ] 1010923edf4SLucas Bates }, 1020923edf4SLucas Bates { 1030923edf4SLucas Bates "id": "ea67", 1040923edf4SLucas Bates "name": "Delete simple action", 1050923edf4SLucas Bates "category": [ 1060923edf4SLucas Bates "actions", 1070923edf4SLucas Bates "simple" 1080923edf4SLucas Bates ], 1090923edf4SLucas Bates "setup": [ 1100923edf4SLucas Bates [ 1110923edf4SLucas Bates "$TC actions flush action simple", 1120923edf4SLucas Bates 0, 1130923edf4SLucas Bates 1, 1140923edf4SLucas Bates 255 1150923edf4SLucas Bates ], 1160923edf4SLucas Bates "$TC actions add action simple sdata \"Blinkenlights\" index 1" 1170923edf4SLucas Bates ], 1180923edf4SLucas Bates "cmdUnderTest": "$TC actions delete action simple index 1", 1190923edf4SLucas Bates "expExitCode": "0", 1200923edf4SLucas Bates "verifyCmd": "$TC actions list action simple", 1210923edf4SLucas Bates "matchPattern": "action order [0-9]*: Simple <Blinkenlights>.*index 1 ref", 1220923edf4SLucas Bates "matchCount": "0", 1230923edf4SLucas Bates "teardown": [ 1240923edf4SLucas Bates "$TC actions flush action simple" 1250923edf4SLucas Bates ] 1260923edf4SLucas Bates }, 1270923edf4SLucas Bates { 1280923edf4SLucas Bates "id": "8ff1", 1290923edf4SLucas Bates "name": "Flush simple actions", 1300923edf4SLucas Bates "category": [ 1310923edf4SLucas Bates "actions", 1320923edf4SLucas Bates "simple" 1330923edf4SLucas Bates ], 1340923edf4SLucas Bates "setup": [ 1350923edf4SLucas Bates [ 1360923edf4SLucas Bates "$TC actions flush action simple", 1370923edf4SLucas Bates 0, 1380923edf4SLucas Bates 1, 1390923edf4SLucas Bates 255 1400923edf4SLucas Bates ], 1410923edf4SLucas Bates "$TC actions add action simple sdata \"Kirk\"", 1420923edf4SLucas Bates "$TC actions add action simple sdata \"Spock\" index 50", 1430923edf4SLucas Bates "$TC actions add action simple sdata \"McCoy\" index 9" 1440923edf4SLucas Bates ], 1450923edf4SLucas Bates "cmdUnderTest": "$TC actions flush action simple", 1460923edf4SLucas Bates "expExitCode": "0", 1470923edf4SLucas Bates "verifyCmd": "$TC actions list action simple", 1480923edf4SLucas Bates "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>", 1490923edf4SLucas Bates "matchCount": "0", 1500923edf4SLucas Bates "teardown": [ 1510923edf4SLucas Bates "" 1520923edf4SLucas Bates ] 1534b006b0cSDavide Caratti }, 1544b006b0cSDavide Caratti { 1554b006b0cSDavide Caratti "id": "b776", 1564b006b0cSDavide Caratti "name": "Replace simple action with invalid goto chain control", 1574b006b0cSDavide Caratti "category": [ 1584b006b0cSDavide Caratti "actions", 1594b006b0cSDavide Caratti "simple" 1604b006b0cSDavide Caratti ], 1614b006b0cSDavide Caratti "setup": [ 1624b006b0cSDavide Caratti [ 1634b006b0cSDavide Caratti "$TC actions flush action simple", 1644b006b0cSDavide Caratti 0, 1654b006b0cSDavide Caratti 1, 1664b006b0cSDavide Caratti 255 1674b006b0cSDavide Caratti ], 1684b006b0cSDavide Caratti "$TC actions add action simple sdata \"hello\" pass index 90" 1694b006b0cSDavide Caratti ], 1704b006b0cSDavide Caratti "cmdUnderTest": "$TC actions replace action simple sdata \"world\" goto chain 42 index 90 cookie c1a0c1a0", 1714b006b0cSDavide Caratti "expExitCode": "255", 1724b006b0cSDavide Caratti "verifyCmd": "$TC actions list action simple", 1734b006b0cSDavide Caratti "matchPattern": "action order [0-9]*: Simple <hello>.*index 90 ref", 1744b006b0cSDavide Caratti "matchCount": "1", 1754b006b0cSDavide Caratti "teardown": [ 1764b006b0cSDavide Caratti "$TC actions flush action simple" 1774b006b0cSDavide Caratti ] 1780923edf4SLucas Bates } 1790923edf4SLucas Bates] 180