| 1 |
# |
| 2 |
## Expectation block |
| 3 |
## open([+docid_generated]) / close() |
| 4 |
# |
| 5 |
send Mysqlx.Expect.Open { |
| 6 |
cond { |
| 7 |
condition_key: 3 |
| 8 |
} |
| 9 |
} |
| 10 |
|
| 11 |
RUN recvok |
| 12 |
Got expected error (code 0) |
| 13 |
|
| 14 |
send Mysqlx.Expect.Close { |
| 15 |
} |
| 16 |
|
| 17 |
RUN recvok |
| 18 |
Got expected error (code 0) |
| 19 |
|
| 20 |
# |
| 21 |
## Expectation block |
| 22 |
## open([+docid_generated]) / query() / close() |
| 23 |
# |
| 24 |
send Mysqlx.Expect.Open { |
| 25 |
cond { |
| 26 |
condition_key: 3 |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
RUN recvok |
| 31 |
Got expected error (code 0) |
| 32 |
|
| 33 |
RUN select "Yes" as 'Is_ok'; |
| 34 |
Is_ok |
| 35 |
Yes |
| 36 |
0 rows affected |
| 37 |
Got expected error (code 0) |
| 38 |
send Mysqlx.Expect.Close { |
| 39 |
} |
| 40 |
|
| 41 |
RUN recvok |
| 42 |
Got expected error (code 0) |
| 43 |
|
| 44 |
# |
| 45 |
## Expectation block |
| 46 |
## open([+docid_generated, +docid_generated]) / query() / close() |
| 47 |
# |
| 48 |
send Mysqlx.Expect.Open { |
| 49 |
cond { |
| 50 |
condition_key: 3 |
| 51 |
} |
| 52 |
cond { |
| 53 |
condition_key: 3 |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
RUN recvok |
| 58 |
Got expected error (code 0) |
| 59 |
|
| 60 |
RUN select "Yes" as 'Is_ok'; |
| 61 |
Is_ok |
| 62 |
Yes |
| 63 |
0 rows affected |
| 64 |
Got expected error (code 0) |
| 65 |
send Mysqlx.Expect.Close { |
| 66 |
} |
| 67 |
|
| 68 |
RUN recvok |
| 69 |
Got expected error (code 0) |
| 70 |
|
| 71 |
# |
| 72 |
## Expectation block |
| 73 |
## open([+docid_generated]) / query():NOK / query() / close() |
| 74 |
# |
| 75 |
send Mysqlx.Expect.Open { |
| 76 |
cond { |
| 77 |
condition_key: 3 |
| 78 |
} |
| 79 |
} |
| 80 |
|
| 81 |
RUN recvok |
| 82 |
Got expected error (code 0) |
| 83 |
|
| 84 |
RUN select `invalid_column_name`; |
| 85 |
Got expected error: Unknown column 'invalid_column_name' in 'field list' (code 1054) |
| 86 |
RUN select "Yes" as 'Is_ok'; |
| 87 |
Is_ok |
| 88 |
Yes |
| 89 |
0 rows affected |
| 90 |
Got expected error (code 0) |
| 91 |
send Mysqlx.Expect.Close { |
| 92 |
} |
| 93 |
|
| 94 |
RUN recvok |
| 95 |
Got expected error (code 0) |
| 96 |
|
| 97 |
# |
| 98 |
## Expectation block |
| 99 |
## open([+docid_generated, +no_error]):OK/ |
| 100 |
## query():OK / query(error):NOK / query():NOK |
| 101 |
## close():NOK |
| 102 |
# |
| 103 |
send Mysqlx.Expect.Open { |
| 104 |
cond { |
| 105 |
condition_key: 3 |
| 106 |
} |
| 107 |
cond { |
| 108 |
condition_key: 1 |
| 109 |
} |
| 110 |
} |
| 111 |
|
| 112 |
RUN recvok |
| 113 |
Got expected error (code 0) |
| 114 |
|
| 115 |
RUN select "Yes" as 'Is_ok'; |
| 116 |
Is_ok |
| 117 |
Yes |
| 118 |
0 rows affected |
| 119 |
Got expected error (code 0) |
| 120 |
RUN select `invalid_column_name`; |
| 121 |
Got expected error: Unknown column 'invalid_column_name' in 'field list' (code 1054) |
| 122 |
RUN select "No" as 'Is_ok'; |
| 123 |
Got expected error: Expectation failed: no_error (code 5159) |
| 124 |
send Mysqlx.Expect.Close { |
| 125 |
} |
| 126 |
|
| 127 |
RUN recvok |
| 128 |
Got expected error: Expectation failed: no_error (code 5159) |
| 129 |
|
| 130 |
# |
| 131 |
## Nested expectation block |
| 132 |
## open([+docid_generated]):OK/ |
| 133 |
## open([+no_error]):OK/ |
| 134 |
## query():OK / query(error):NOK / query():NOK |
| 135 |
## close():NOK |
| 136 |
## query():OK |
| 137 |
## close():OK |
| 138 |
# |
| 139 |
send Mysqlx.Expect.Open { |
| 140 |
cond { |
| 141 |
condition_key: 3 |
| 142 |
} |
| 143 |
} |
| 144 |
|
| 145 |
RUN recvok |
| 146 |
Got expected error (code 0) |
| 147 |
|
| 148 |
send Mysqlx.Expect.Open { |
| 149 |
cond { |
| 150 |
condition_key: 1 |
| 151 |
} |
| 152 |
} |
| 153 |
|
| 154 |
RUN recvok |
| 155 |
Got expected error (code 0) |
| 156 |
|
| 157 |
RUN select "Yes" as 'Is_ok'; |
| 158 |
Is_ok |
| 159 |
Yes |
| 160 |
0 rows affected |
| 161 |
Got expected error (code 0) |
| 162 |
RUN select `invalid_column_name`; |
| 163 |
Got expected error: Unknown column 'invalid_column_name' in 'field list' (code 1054) |
| 164 |
RUN select "No" as 'Is_ok'; |
| 165 |
Got expected error: Expectation failed: no_error (code 5159) |
| 166 |
send Mysqlx.Expect.Close { |
| 167 |
} |
| 168 |
|
| 169 |
RUN recvok |
| 170 |
Got expected error: Expectation failed: no_error (code 5159) |
| 171 |
|
| 172 |
RUN select "Yes" as 'Is_ok'; |
| 173 |
Is_ok |
| 174 |
Yes |
| 175 |
0 rows affected |
| 176 |
Got expected error (code 0) |
| 177 |
send Mysqlx.Expect.Close { |
| 178 |
} |
| 179 |
|
| 180 |
RUN recvok |
| 181 |
Got expected error (code 0) |
| 182 |
|
| 183 |
# |
| 184 |
## Nested expectation block |
| 185 |
## open([+no_error]):OK/ |
| 186 |
## open([+docid_generated]):OK/ |
| 187 |
## query(error):NOK |
| 188 |
## close():NOK |
| 189 |
## query():NOK |
| 190 |
## close():NOK |
| 191 |
# |
| 192 |
send Mysqlx.Expect.Open { |
| 193 |
cond { |
| 194 |
condition_key: 1 |
| 195 |
} |
| 196 |
} |
| 197 |
|
| 198 |
RUN recvok |
| 199 |
Got expected error (code 0) |
| 200 |
|
| 201 |
send Mysqlx.Expect.Open { |
| 202 |
cond { |
| 203 |
condition_key: 3 |
| 204 |
} |
| 205 |
} |
| 206 |
|
| 207 |
RUN recvok |
| 208 |
Got expected error (code 0) |
| 209 |
|
| 210 |
RUN select `invalid_column_name`; |
| 211 |
Got expected error: Unknown column 'invalid_column_name' in 'field list' (code 1054) |
| 212 |
send Mysqlx.Expect.Close { |
| 213 |
} |
| 214 |
|
| 215 |
RUN recvok |
| 216 |
Got expected error: Expectation failed: no_error (code 5159) |
| 217 |
|
| 218 |
RUN select "No" as 'Is_ok'; |
| 219 |
Got expected error: Expectation failed: no_error (code 5159) |
| 220 |
send Mysqlx.Expect.Close { |
| 221 |
} |
| 222 |
|
| 223 |
RUN recvok |
| 224 |
Got expected error: Expectation failed: no_error (code 5159) |
| 225 |
|
| 226 |
# |
| 227 |
## Nested expectation block |
| 228 |
## open([+no_error]):OK/ |
| 229 |
## open([+docid_generated], new_context):OK/ |
| 230 |
## query():NOK |
| 231 |
## close():OK |
| 232 |
## query():OK |
| 233 |
## close():OK |
| 234 |
# |
| 235 |
send Mysqlx.Expect.Open { |
| 236 |
cond { |
| 237 |
condition_key: 1 |
| 238 |
} |
| 239 |
} |
| 240 |
|
| 241 |
RUN recvok |
| 242 |
Got expected error (code 0) |
| 243 |
|
| 244 |
send Mysqlx.Expect.Open { |
| 245 |
op: EXPECT_CTX_EMPTY |
| 246 |
cond { |
| 247 |
condition_key: 3 |
| 248 |
} |
| 249 |
} |
| 250 |
|
| 251 |
RUN recvok |
| 252 |
Got expected error (code 0) |
| 253 |
|
| 254 |
RUN select `invalid_column_name`; |
| 255 |
Got expected error: Unknown column 'invalid_column_name' in 'field list' (code 1054) |
| 256 |
send Mysqlx.Expect.Close { |
| 257 |
} |
| 258 |
|
| 259 |
RUN recvok |
| 260 |
Got expected error (code 0) |
| 261 |
|
| 262 |
RUN select "Yes" as 'Is_ok'; |
| 263 |
Is_ok |
| 264 |
Yes |
| 265 |
0 rows affected |
| 266 |
Got expected error (code 0) |
| 267 |
send Mysqlx.Expect.Close { |
| 268 |
} |
| 269 |
|
| 270 |
RUN recvok |
| 271 |
Got expected error (code 0) |
| 272 |
|
| 273 |
Mysqlx.Ok { |
| 274 |
msg: "bye!" |
| 275 |
} |
| 276 |
ok |