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 ], 9*d227cc0bSPedro Tammela "plugins": { 10*d227cc0bSPedro Tammela "requires": "nsPlugin" 11*d227cc0bSPedro Tammela }, 120923edf4SLucas Bates "setup": [ 130923edf4SLucas Bates [ 140923edf4SLucas Bates "$TC actions flush action simple", 150923edf4SLucas Bates 0, 160923edf4SLucas Bates 1, 170923edf4SLucas Bates 255 180923edf4SLucas Bates ] 190923edf4SLucas Bates ], 200923edf4SLucas Bates "cmdUnderTest": "$TC actions add action simple sdata \"A triumph\" index 60", 210923edf4SLucas Bates "expExitCode": "0", 220923edf4SLucas Bates "verifyCmd": "$TC actions list action simple", 230923edf4SLucas Bates "matchPattern": "action order [0-9]*: Simple <A triumph>.*index 60 ref", 240923edf4SLucas Bates "matchCount": "1", 250923edf4SLucas Bates "teardown": [ 260923edf4SLucas Bates "$TC actions flush action simple" 270923edf4SLucas Bates ] 280923edf4SLucas Bates }, 290923edf4SLucas Bates { 30e48792a9SVlad Buslov "id": "4297", 31e48792a9SVlad Buslov "name": "Add simple action with change command", 32e48792a9SVlad Buslov "category": [ 33e48792a9SVlad Buslov "actions", 34e48792a9SVlad Buslov "simple" 35e48792a9SVlad Buslov ], 36*d227cc0bSPedro Tammela "plugins": { 37*d227cc0bSPedro Tammela "requires": "nsPlugin" 38*d227cc0bSPedro Tammela }, 39e48792a9SVlad Buslov "setup": [ 40e48792a9SVlad Buslov [ 41e48792a9SVlad Buslov "$TC actions flush action simple", 42e48792a9SVlad Buslov 0, 43e48792a9SVlad Buslov 1, 44e48792a9SVlad Buslov 255 45e48792a9SVlad Buslov ] 46e48792a9SVlad Buslov ], 47e48792a9SVlad Buslov "cmdUnderTest": "$TC actions change action simple sdata \"Not changed\" index 60", 48e48792a9SVlad Buslov "expExitCode": "0", 49e48792a9SVlad Buslov "verifyCmd": "$TC actions list action simple", 50e48792a9SVlad Buslov "matchPattern": "action order [0-9]*: Simple <Not changed>.*index 60 ref", 51e48792a9SVlad Buslov "matchCount": "1", 52e48792a9SVlad Buslov "teardown": [ 53e48792a9SVlad Buslov "$TC actions flush action simple" 54e48792a9SVlad Buslov ] 55e48792a9SVlad Buslov }, 56e48792a9SVlad Buslov { 570923edf4SLucas Bates "id": "6d4c", 580923edf4SLucas Bates "name": "Add simple action with duplicate index", 590923edf4SLucas Bates "category": [ 600923edf4SLucas Bates "actions", 610923edf4SLucas Bates "simple" 620923edf4SLucas Bates ], 63*d227cc0bSPedro Tammela "plugins": { 64*d227cc0bSPedro Tammela "requires": "nsPlugin" 65*d227cc0bSPedro Tammela }, 660923edf4SLucas Bates "setup": [ 670923edf4SLucas Bates [ 680923edf4SLucas Bates "$TC actions flush action simple", 690923edf4SLucas Bates 0, 700923edf4SLucas Bates 1, 710923edf4SLucas Bates 255 720923edf4SLucas Bates ], 730923edf4SLucas Bates "$TC actions add action simple sdata \"Aruba\" index 4" 740923edf4SLucas Bates ], 750923edf4SLucas Bates "cmdUnderTest": "$TC actions add action simple sdata \"Jamaica\" index 4", 760923edf4SLucas Bates "expExitCode": "255", 770923edf4SLucas Bates "verifyCmd": "$TC actions list action simple", 780923edf4SLucas Bates "matchPattern": "action order [0-9]*: Simple <Jamaica>.*ref", 790923edf4SLucas Bates "matchCount": "0", 800923edf4SLucas Bates "teardown": [ 810923edf4SLucas Bates "$TC actions flush action simple" 820923edf4SLucas Bates ] 830923edf4SLucas Bates }, 840923edf4SLucas Bates { 850923edf4SLucas Bates "id": "2542", 860923edf4SLucas Bates "name": "List simple actions", 870923edf4SLucas Bates "category": [ 880923edf4SLucas Bates "actions", 890923edf4SLucas Bates "simple" 900923edf4SLucas Bates ], 91*d227cc0bSPedro Tammela "plugins": { 92*d227cc0bSPedro Tammela "requires": "nsPlugin" 93*d227cc0bSPedro Tammela }, 940923edf4SLucas Bates "setup": [ 950923edf4SLucas Bates [ 960923edf4SLucas Bates "$TC actions flush action simple", 970923edf4SLucas Bates 0, 980923edf4SLucas Bates 1, 990923edf4SLucas Bates 255 1000923edf4SLucas Bates ], 1010923edf4SLucas Bates "$TC actions add action simple sdata \"Rock\"", 1020923edf4SLucas Bates "$TC actions add action simple sdata \"Paper\"", 1030923edf4SLucas Bates "$TC actions add action simple sdata \"Scissors\" index 98" 1040923edf4SLucas Bates ], 1050923edf4SLucas Bates "cmdUnderTest": "$TC actions list action simple", 1060923edf4SLucas Bates "expExitCode": "0", 1070923edf4SLucas Bates "verifyCmd": "$TC actions list action simple", 1080923edf4SLucas Bates "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>", 1090923edf4SLucas Bates "matchCount": "3", 1100923edf4SLucas Bates "teardown": [ 1110923edf4SLucas Bates "$TC actions flush action simple" 1120923edf4SLucas Bates ] 1130923edf4SLucas Bates }, 1140923edf4SLucas Bates { 1150923edf4SLucas Bates "id": "ea67", 1160923edf4SLucas Bates "name": "Delete simple action", 1170923edf4SLucas Bates "category": [ 1180923edf4SLucas Bates "actions", 1190923edf4SLucas Bates "simple" 1200923edf4SLucas Bates ], 121*d227cc0bSPedro Tammela "plugins": { 122*d227cc0bSPedro Tammela "requires": "nsPlugin" 123*d227cc0bSPedro Tammela }, 1240923edf4SLucas Bates "setup": [ 1250923edf4SLucas Bates [ 1260923edf4SLucas Bates "$TC actions flush action simple", 1270923edf4SLucas Bates 0, 1280923edf4SLucas Bates 1, 1290923edf4SLucas Bates 255 1300923edf4SLucas Bates ], 1310923edf4SLucas Bates "$TC actions add action simple sdata \"Blinkenlights\" index 1" 1320923edf4SLucas Bates ], 1330923edf4SLucas Bates "cmdUnderTest": "$TC actions delete action simple index 1", 1340923edf4SLucas Bates "expExitCode": "0", 1350923edf4SLucas Bates "verifyCmd": "$TC actions list action simple", 1360923edf4SLucas Bates "matchPattern": "action order [0-9]*: Simple <Blinkenlights>.*index 1 ref", 1370923edf4SLucas Bates "matchCount": "0", 1380923edf4SLucas Bates "teardown": [ 1390923edf4SLucas Bates "$TC actions flush action simple" 1400923edf4SLucas Bates ] 1410923edf4SLucas Bates }, 1420923edf4SLucas Bates { 1430923edf4SLucas Bates "id": "8ff1", 1440923edf4SLucas Bates "name": "Flush simple actions", 1450923edf4SLucas Bates "category": [ 1460923edf4SLucas Bates "actions", 1470923edf4SLucas Bates "simple" 1480923edf4SLucas Bates ], 149*d227cc0bSPedro Tammela "plugins": { 150*d227cc0bSPedro Tammela "requires": "nsPlugin" 151*d227cc0bSPedro Tammela }, 1520923edf4SLucas Bates "setup": [ 1530923edf4SLucas Bates [ 1540923edf4SLucas Bates "$TC actions flush action simple", 1550923edf4SLucas Bates 0, 1560923edf4SLucas Bates 1, 1570923edf4SLucas Bates 255 1580923edf4SLucas Bates ], 1590923edf4SLucas Bates "$TC actions add action simple sdata \"Kirk\"", 1600923edf4SLucas Bates "$TC actions add action simple sdata \"Spock\" index 50", 1610923edf4SLucas Bates "$TC actions add action simple sdata \"McCoy\" index 9" 1620923edf4SLucas Bates ], 1630923edf4SLucas Bates "cmdUnderTest": "$TC actions flush action simple", 1640923edf4SLucas Bates "expExitCode": "0", 1650923edf4SLucas Bates "verifyCmd": "$TC actions list action simple", 1660923edf4SLucas Bates "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>", 1670923edf4SLucas Bates "matchCount": "0", 1680923edf4SLucas Bates "teardown": [ 1690923edf4SLucas Bates "" 1700923edf4SLucas Bates ] 1714b006b0cSDavide Caratti }, 1724b006b0cSDavide Caratti { 1734b006b0cSDavide Caratti "id": "b776", 1744b006b0cSDavide Caratti "name": "Replace simple action with invalid goto chain control", 1754b006b0cSDavide Caratti "category": [ 1764b006b0cSDavide Caratti "actions", 1774b006b0cSDavide Caratti "simple" 1784b006b0cSDavide Caratti ], 179*d227cc0bSPedro Tammela "plugins": { 180*d227cc0bSPedro Tammela "requires": "nsPlugin" 181*d227cc0bSPedro Tammela }, 1824b006b0cSDavide Caratti "setup": [ 1834b006b0cSDavide Caratti [ 1844b006b0cSDavide Caratti "$TC actions flush action simple", 1854b006b0cSDavide Caratti 0, 1864b006b0cSDavide Caratti 1, 1874b006b0cSDavide Caratti 255 1884b006b0cSDavide Caratti ], 1894b006b0cSDavide Caratti "$TC actions add action simple sdata \"hello\" pass index 90" 1904b006b0cSDavide Caratti ], 1914b006b0cSDavide Caratti "cmdUnderTest": "$TC actions replace action simple sdata \"world\" goto chain 42 index 90 cookie c1a0c1a0", 1924b006b0cSDavide Caratti "expExitCode": "255", 1934b006b0cSDavide Caratti "verifyCmd": "$TC actions list action simple", 1944b006b0cSDavide Caratti "matchPattern": "action order [0-9]*: Simple <hello>.*index 90 ref", 1954b006b0cSDavide Caratti "matchCount": "1", 1964b006b0cSDavide Caratti "teardown": [ 1974b006b0cSDavide Caratti "$TC actions flush action simple" 1984b006b0cSDavide Caratti ] 19979749ae1SVlad Buslov }, 20079749ae1SVlad Buslov { 20179749ae1SVlad Buslov "id": "8d07", 20279749ae1SVlad Buslov "name": "Verify cleanup of failed actions batch add", 20379749ae1SVlad Buslov "category": [ 20479749ae1SVlad Buslov "actions", 20579749ae1SVlad Buslov "simple" 20679749ae1SVlad Buslov ], 207*d227cc0bSPedro Tammela "plugins": { 208*d227cc0bSPedro Tammela "requires": "nsPlugin" 209*d227cc0bSPedro Tammela }, 21079749ae1SVlad Buslov "setup": [ 21179749ae1SVlad Buslov [ 21279749ae1SVlad Buslov "$TC actions flush action simple", 21379749ae1SVlad Buslov 0, 21479749ae1SVlad Buslov 1, 21579749ae1SVlad Buslov 255 21679749ae1SVlad Buslov ], 21779749ae1SVlad Buslov "$TC actions add action simple sdata \"2\" index 2", 21879749ae1SVlad Buslov [ 21979749ae1SVlad Buslov "$TC actions add action simple sdata \"1\" index 1 action simple sdata \"2\" index 2", 22079749ae1SVlad Buslov 255 22179749ae1SVlad Buslov ], 22279749ae1SVlad Buslov "$TC actions flush action simple" 22379749ae1SVlad Buslov ], 22479749ae1SVlad Buslov "cmdUnderTest": "$TC actions add action simple sdata \"2\" index 2", 22579749ae1SVlad Buslov "expExitCode": "0", 22679749ae1SVlad Buslov "verifyCmd": "$TC actions list action simple", 22779749ae1SVlad Buslov "matchPattern": "action order [0-9]*: Simple <2>.*index 2 ref", 22879749ae1SVlad Buslov "matchCount": "1", 22979749ae1SVlad Buslov "teardown": [ 23079749ae1SVlad Buslov "$TC actions flush action simple" 23179749ae1SVlad Buslov ] 232652e3124SVlad Buslov }, 233652e3124SVlad Buslov { 234652e3124SVlad Buslov "id": "a68a", 235652e3124SVlad Buslov "name": "Verify cleanup of failed actions batch change", 236652e3124SVlad Buslov "category": [ 237652e3124SVlad Buslov "actions", 238652e3124SVlad Buslov "simple" 239652e3124SVlad Buslov ], 240*d227cc0bSPedro Tammela "plugins": { 241*d227cc0bSPedro Tammela "requires": "nsPlugin" 242*d227cc0bSPedro Tammela }, 243652e3124SVlad Buslov "setup": [ 244652e3124SVlad Buslov [ 245652e3124SVlad Buslov "$TC actions flush action simple", 246652e3124SVlad Buslov 0, 247652e3124SVlad Buslov 1, 248652e3124SVlad Buslov 255 249652e3124SVlad Buslov ], 250652e3124SVlad Buslov [ 251652e3124SVlad Buslov "$TC actions change action simple sdata \"1\" index 1 action simple sdata \"2\" goto chain 42 index 2", 252652e3124SVlad Buslov 255 253652e3124SVlad Buslov ], 254652e3124SVlad Buslov "$TC actions flush action simple" 255652e3124SVlad Buslov ], 256652e3124SVlad Buslov "cmdUnderTest": "$TC actions add action simple sdata \"1\" index 1", 257652e3124SVlad Buslov "expExitCode": "0", 258652e3124SVlad Buslov "verifyCmd": "$TC actions list action simple", 259652e3124SVlad Buslov "matchPattern": "action order [0-9]*: Simple <1>.*index 1 ref", 260652e3124SVlad Buslov "matchCount": "1", 261652e3124SVlad Buslov "teardown": [ 262652e3124SVlad Buslov "$TC actions flush action simple" 263652e3124SVlad Buslov ] 2640923edf4SLucas Bates } 2650923edf4SLucas Bates] 266