0001 [
0002 {
0003 "id": "b078",
0004 "name": "Add simple action",
0005 "category": [
0006 "actions",
0007 "simple"
0008 ],
0009 "setup": [
0010 [
0011 "$TC actions flush action simple",
0012 0,
0013 1,
0014 255
0015 ]
0016 ],
0017 "cmdUnderTest": "$TC actions add action simple sdata \"A triumph\" index 60",
0018 "expExitCode": "0",
0019 "verifyCmd": "$TC actions list action simple",
0020 "matchPattern": "action order [0-9]*: Simple <A triumph>.*index 60 ref",
0021 "matchCount": "1",
0022 "teardown": [
0023 "$TC actions flush action simple"
0024 ]
0025 },
0026 {
0027 "id": "4297",
0028 "name": "Add simple action with change command",
0029 "category": [
0030 "actions",
0031 "simple"
0032 ],
0033 "setup": [
0034 [
0035 "$TC actions flush action simple",
0036 0,
0037 1,
0038 255
0039 ]
0040 ],
0041 "cmdUnderTest": "$TC actions change action simple sdata \"Not changed\" index 60",
0042 "expExitCode": "0",
0043 "verifyCmd": "$TC actions list action simple",
0044 "matchPattern": "action order [0-9]*: Simple <Not changed>.*index 60 ref",
0045 "matchCount": "1",
0046 "teardown": [
0047 "$TC actions flush action simple"
0048 ]
0049 },
0050 {
0051 "id": "6d4c",
0052 "name": "Add simple action with duplicate index",
0053 "category": [
0054 "actions",
0055 "simple"
0056 ],
0057 "setup": [
0058 [
0059 "$TC actions flush action simple",
0060 0,
0061 1,
0062 255
0063 ],
0064 "$TC actions add action simple sdata \"Aruba\" index 4"
0065 ],
0066 "cmdUnderTest": "$TC actions add action simple sdata \"Jamaica\" index 4",
0067 "expExitCode": "255",
0068 "verifyCmd": "$TC actions list action simple",
0069 "matchPattern": "action order [0-9]*: Simple <Jamaica>.*ref",
0070 "matchCount": "0",
0071 "teardown": [
0072 "$TC actions flush action simple"
0073 ]
0074 },
0075 {
0076 "id": "2542",
0077 "name": "List simple actions",
0078 "category": [
0079 "actions",
0080 "simple"
0081 ],
0082 "setup": [
0083 [
0084 "$TC actions flush action simple",
0085 0,
0086 1,
0087 255
0088 ],
0089 "$TC actions add action simple sdata \"Rock\"",
0090 "$TC actions add action simple sdata \"Paper\"",
0091 "$TC actions add action simple sdata \"Scissors\" index 98"
0092 ],
0093 "cmdUnderTest": "$TC actions list action simple",
0094 "expExitCode": "0",
0095 "verifyCmd": "$TC actions list action simple",
0096 "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
0097 "matchCount": "3",
0098 "teardown": [
0099 "$TC actions flush action simple"
0100 ]
0101 },
0102 {
0103 "id": "ea67",
0104 "name": "Delete simple action",
0105 "category": [
0106 "actions",
0107 "simple"
0108 ],
0109 "setup": [
0110 [
0111 "$TC actions flush action simple",
0112 0,
0113 1,
0114 255
0115 ],
0116 "$TC actions add action simple sdata \"Blinkenlights\" index 1"
0117 ],
0118 "cmdUnderTest": "$TC actions delete action simple index 1",
0119 "expExitCode": "0",
0120 "verifyCmd": "$TC actions list action simple",
0121 "matchPattern": "action order [0-9]*: Simple <Blinkenlights>.*index 1 ref",
0122 "matchCount": "0",
0123 "teardown": [
0124 "$TC actions flush action simple"
0125 ]
0126 },
0127 {
0128 "id": "8ff1",
0129 "name": "Flush simple actions",
0130 "category": [
0131 "actions",
0132 "simple"
0133 ],
0134 "setup": [
0135 [
0136 "$TC actions flush action simple",
0137 0,
0138 1,
0139 255
0140 ],
0141 "$TC actions add action simple sdata \"Kirk\"",
0142 "$TC actions add action simple sdata \"Spock\" index 50",
0143 "$TC actions add action simple sdata \"McCoy\" index 9"
0144 ],
0145 "cmdUnderTest": "$TC actions flush action simple",
0146 "expExitCode": "0",
0147 "verifyCmd": "$TC actions list action simple",
0148 "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
0149 "matchCount": "0",
0150 "teardown": [
0151 ""
0152 ]
0153 },
0154 {
0155 "id": "b776",
0156 "name": "Replace simple action with invalid goto chain control",
0157 "category": [
0158 "actions",
0159 "simple"
0160 ],
0161 "setup": [
0162 [
0163 "$TC actions flush action simple",
0164 0,
0165 1,
0166 255
0167 ],
0168 "$TC actions add action simple sdata \"hello\" pass index 90"
0169 ],
0170 "cmdUnderTest": "$TC actions replace action simple sdata \"world\" goto chain 42 index 90 cookie c1a0c1a0",
0171 "expExitCode": "255",
0172 "verifyCmd": "$TC actions list action simple",
0173 "matchPattern": "action order [0-9]*: Simple <hello>.*index 90 ref",
0174 "matchCount": "1",
0175 "teardown": [
0176 "$TC actions flush action simple"
0177 ]
0178 },
0179 {
0180 "id": "8d07",
0181 "name": "Verify cleanup of failed actions batch add",
0182 "category": [
0183 "actions",
0184 "simple"
0185 ],
0186 "setup": [
0187 [
0188 "$TC actions flush action simple",
0189 0,
0190 1,
0191 255
0192 ],
0193 "$TC actions add action simple sdata \"2\" index 2",
0194 [
0195 "$TC actions add action simple sdata \"1\" index 1 action simple sdata \"2\" index 2",
0196 255
0197 ],
0198 "$TC actions flush action simple"
0199 ],
0200 "cmdUnderTest": "$TC actions add action simple sdata \"2\" index 2",
0201 "expExitCode": "0",
0202 "verifyCmd": "$TC actions list action simple",
0203 "matchPattern": "action order [0-9]*: Simple <2>.*index 2 ref",
0204 "matchCount": "1",
0205 "teardown": [
0206 "$TC actions flush action simple"
0207 ]
0208 },
0209 {
0210 "id": "a68a",
0211 "name": "Verify cleanup of failed actions batch change",
0212 "category": [
0213 "actions",
0214 "simple"
0215 ],
0216 "setup": [
0217 [
0218 "$TC actions flush action simple",
0219 0,
0220 1,
0221 255
0222 ],
0223 [
0224 "$TC actions change action simple sdata \"1\" index 1 action simple sdata \"2\" goto chain 42 index 2",
0225 255
0226 ],
0227 "$TC actions flush action simple"
0228 ],
0229 "cmdUnderTest": "$TC actions add action simple sdata \"1\" index 1",
0230 "expExitCode": "0",
0231 "verifyCmd": "$TC actions list action simple",
0232 "matchPattern": "action order [0-9]*: Simple <1>.*index 1 ref",
0233 "matchCount": "1",
0234 "teardown": [
0235 "$TC actions flush action simple"
0236 ]
0237 }
0238 ]