Debian Codegraph @

mysql-test/suite/x/r/expect_noerror.result

raw
1 Test 1
2 send Mysqlx.Expect.Open {
3 cond {
4 condition_key: 1
5 }
6 }
7
8 Mysqlx.Ok {
9 }
10
11 send Mysqlx.Sql.StmtExecute {
12 stmt: "ping"
13 namespace: "mysqlx"
14 }
15
16
17 command ok
18 send Mysqlx.Sql.StmtExecute {
19 stmt: "bla"
20 namespace: "bla"
21 }
22
23 Mysqlx.Error {
24 severity: ERROR
25 code: 5162
26 msg: "Unknown namespace bla"
27 sql_state: "HY000"
28 }
29
30 send Mysqlx.Sql.StmtExecute {
31 stmt: "ping"
32 namespace: "mysqlx"
33 }
34
35 Mysqlx.Error {
36 severity: ERROR
37 code: 5159
38 msg: "Expectation failed: no_error"
39 sql_state: "HY000"
40 }
41
42 send Mysqlx.Expect.Close {
43 }
44
45 Mysqlx.Error {
46 severity: ERROR
47 code: 5159
48 msg: "Expectation failed: no_error"
49 sql_state: "HY000"
50 }
51
52 send Mysqlx.Sql.StmtExecute {
53 stmt: "ping"
54 namespace: "mysqlx"
55 }
56
57 Mysqlx.Sql.StmtExecuteOk {
58 }
59
60 Test 2
61 send Mysqlx.Expect.Open {
62 }
63
64 Mysqlx.Ok {
65 }
66
67 send Mysqlx.Sql.StmtExecute {
68 stmt: "ping"
69 namespace: "mysqlx"
70 }
71
72 Mysqlx.Sql.StmtExecuteOk {
73 }
74
75 send Mysqlx.Sql.StmtExecute {
76 stmt: "bla"
77 namespace: "bla"
78 }
79
80 Mysqlx.Error {
81 severity: ERROR
82 code: 5162
83 msg: "Unknown namespace bla"
84 sql_state: "HY000"
85 }
86
87 send Mysqlx.Sql.StmtExecute {
88 stmt: "ping"
89 namespace: "mysqlx"
90 }
91
92 Mysqlx.Sql.StmtExecuteOk {
93 }
94
95 send Mysqlx.Expect.Close {
96 }
97
98 Mysqlx.Ok {
99 }
100
101 Test 3
102 send Mysqlx.Expect.Open {
103 cond {
104 condition_key: 1
105 }
106 }
107
108 Mysqlx.Ok {
109 }
110
111 send Mysqlx.Expect.Open {
112 cond {
113 condition_key: 1
114 }
115 }
116
117 Mysqlx.Ok {
118 }
119
120 send Mysqlx.Sql.StmtExecute {
121 stmt: "ping"
122 namespace: "bogus"
123 }
124
125 Mysqlx.Error {
126 severity: ERROR
127 code: 5162
128 msg: "Unknown namespace bogus"
129 sql_state: "HY000"
130 }
131
132 send Mysqlx.Expect.Close {
133 }
134
135 Mysqlx.Error {
136 severity: ERROR
137 code: 5159
138 msg: "Expectation failed: no_error"
139 sql_state: "HY000"
140 }
141
142 send Mysqlx.Sql.StmtExecute {
143 stmt: "ping"
144 namespace: "mysqlx"
145 }
146
147 Mysqlx.Error {
148 severity: ERROR
149 code: 5159
150 msg: "Expectation failed: no_error"
151 sql_state: "HY000"
152 }
153
154 send Mysqlx.Expect.Close {
155 }
156
157 Mysqlx.Error {
158 severity: ERROR
159 code: 5159
160 msg: "Expectation failed: no_error"
161 sql_state: "HY000"
162 }
163
164 Test 4
165 send Mysqlx.Expect.Open {
166 }
167
168 Mysqlx.Ok {
169 }
170
171 send Mysqlx.Expect.Open {
172 cond {
173 condition_key: 1
174 }
175 }
176
177 Mysqlx.Ok {
178 }
179
180 send Mysqlx.Sql.StmtExecute {
181 stmt: "ping"
182 namespace: "bogus"
183 }
184
185 Mysqlx.Error {
186 severity: ERROR
187 code: 5162
188 msg: "Unknown namespace bogus"
189 sql_state: "HY000"
190 }
191
192 send Mysqlx.Sql.StmtExecute {
193 stmt: "ping"
194 namespace: "mysqlx"
195 }
196
197 Mysqlx.Error {
198 severity: ERROR
199 code: 5159
200 msg: "Expectation failed: no_error"
201 sql_state: "HY000"
202 }
203
204 send Mysqlx.Expect.Close {
205 }
206
207 Mysqlx.Error {
208 severity: ERROR
209 code: 5159
210 msg: "Expectation failed: no_error"
211 sql_state: "HY000"
212 }
213
214 send Mysqlx.Sql.StmtExecute {
215 stmt: "ping"
216 namespace: "bogus"
217 }
218
219 Mysqlx.Error {
220 severity: ERROR
221 code: 5162
222 msg: "Unknown namespace bogus"
223 sql_state: "HY000"
224 }
225
226 send Mysqlx.Sql.StmtExecute {
227 stmt: "ping"
228 namespace: "mysqlx"
229 }
230
231 Mysqlx.Sql.StmtExecuteOk {
232 }
233
234 send Mysqlx.Expect.Close {
235 }
236
237 Mysqlx.Ok {
238 }
239
240 Test 5
241 send Mysqlx.Expect.Open {
242 cond {
243 condition_key: 1
244 }
245 }
246
247 Mysqlx.Ok {
248 }
249
250 send Mysqlx.Expect.Open {
251 }
252
253 Mysqlx.Ok {
254 }
255
256 send Mysqlx.Sql.StmtExecute {
257 stmt: "ping"
258 namespace: "bogus"
259 }
260
261 Mysqlx.Error {
262 severity: ERROR
263 code: 5162
264 msg: "Unknown namespace bogus"
265 sql_state: "HY000"
266 }
267
268 send Mysqlx.Sql.StmtExecute {
269 stmt: "ping"
270 namespace: "mysqlx"
271 }
272
273 Mysqlx.Error {
274 severity: ERROR
275 code: 5159
276 msg: "Expectation failed: no_error"
277 sql_state: "HY000"
278 }
279
280 send Mysqlx.Expect.Close {
281 }
282
283 Mysqlx.Error {
284 severity: ERROR
285 code: 5159
286 msg: "Expectation failed: no_error"
287 sql_state: "HY000"
288 }
289
290 send Mysqlx.Sql.StmtExecute {
291 stmt: "ping"
292 namespace: "mysqlx"
293 }
294
295 Mysqlx.Error {
296 severity: ERROR
297 code: 5159
298 msg: "Expectation failed: no_error"
299 sql_state: "HY000"
300 }
301
302 send Mysqlx.Sql.StmtExecute {
303 stmt: "ping"
304 namespace: "bogus"
305 }
306
307 Mysqlx.Error {
308 severity: ERROR
309 code: 5159
310 msg: "Expectation failed: no_error"
311 sql_state: "HY000"
312 }
313
314 send Mysqlx.Sql.StmtExecute {
315 stmt: "ping"
316 namespace: "mysqlx"
317 }
318
319 Mysqlx.Error {
320 severity: ERROR
321 code: 5159
322 msg: "Expectation failed: no_error"
323 sql_state: "HY000"
324 }
325
326 send Mysqlx.Expect.Close {
327 }
328
329 Mysqlx.Error {
330 severity: ERROR
331 code: 5159
332 msg: "Expectation failed: no_error"
333 sql_state: "HY000"
334 }
335
336 Test 6 : Do not inherit parent condition by default
337 send Mysqlx.Expect.Open {
338 cond {
339 condition_key: 1
340 }
341 }
342
343 Mysqlx.Ok {
344 }
345
346 send Mysqlx.Expect.Open {
347 op: EXPECT_CTX_EMPTY
348 }
349
350 Mysqlx.Ok {
351 }
352
353 send Mysqlx.Sql.StmtExecute {
354 stmt: "ping"
355 namespace: "bogus"
356 }
357
358 Mysqlx.Error {
359 severity: ERROR
360 code: 5162
361 msg: "Unknown namespace bogus"
362 sql_state: "HY000"
363 }
364
365 send Mysqlx.Sql.StmtExecute {
366 stmt: "ping"
367 namespace: "mysqlx"
368 }
369
370 Mysqlx.Sql.StmtExecuteOk {
371 }
372
373 send Mysqlx.Expect.Close {
374 }
375
376 Mysqlx.Ok {
377 }
378
379 send Mysqlx.Sql.StmtExecute {
380 stmt: "ping"
381 namespace: "mysqlx"
382 }
383
384 Mysqlx.Sql.StmtExecuteOk {
385 }
386
387 send Mysqlx.Sql.StmtExecute {
388 stmt: "ping"
389 namespace: "bogus"
390 }
391
392 Mysqlx.Error {
393 severity: ERROR
394 code: 5162
395 msg: "Unknown namespace bogus"
396 sql_state: "HY000"
397 }
398
399 send Mysqlx.Sql.StmtExecute {
400 stmt: "ping"
401 namespace: "mysqlx"
402 }
403
404 Mysqlx.Error {
405 severity: ERROR
406 code: 5159
407 msg: "Expectation failed: no_error"
408 sql_state: "HY000"
409 }
410
411 send Mysqlx.Expect.Close {
412 }
413
414 Mysqlx.Error {
415 severity: ERROR
416 code: 5159
417 msg: "Expectation failed: no_error"
418 sql_state: "HY000"
419 }
420
421 Test 7 : Inherit condition
422 send Mysqlx.Expect.Open {
423 op: EXPECT_CTX_EMPTY
424 }
425
426 Mysqlx.Ok {
427 }
428
429 send Mysqlx.Expect.Close {
430 }
431
432 Mysqlx.Ok {
433 }
434
435 Test 8 : Inherit condition
436 send Mysqlx.Expect.Open {
437 op: EXPECT_CTX_COPY_PREV
438 cond {
439 condition_key: 1
440 }
441 }
442
443 Mysqlx.Ok {
444 }
445
446 send Mysqlx.Sql.StmtExecute {
447 stmt: "ping"
448 namespace: "mysqlx"
449 }
450
451 Mysqlx.Sql.StmtExecuteOk {
452 }
453
454 send Mysqlx.Sql.StmtExecute {
455 stmt: "ping"
456 namespace: "bogus"
457 }
458
459 Mysqlx.Error {
460 severity: ERROR
461 code: 5162
462 msg: "Unknown namespace bogus"
463 sql_state: "HY000"
464 }
465
466 send Mysqlx.Sql.StmtExecute {
467 stmt: "ping"
468 namespace: "mysqlx"
469 }
470
471 Mysqlx.Error {
472 severity: ERROR
473 code: 5159
474 msg: "Expectation failed: no_error"
475 sql_state: "HY000"
476 }
477
478 send Mysqlx.Expect.Close {
479 }
480
481 Mysqlx.Error {
482 severity: ERROR
483 code: 5159
484 msg: "Expectation failed: no_error"
485 sql_state: "HY000"
486 }
487
488 Test 9 : condition_key can take only value 1
489 send Mysqlx.Expect.Open {
490 cond {
491 condition_key: 0
492 }
493 }
494
495 Mysqlx.Error {
496 severity: ERROR
497 code: 5160
498 msg: "Unknown condition key: 0"
499 sql_state: "HY000"
500 }
501
502 send Mysqlx.Expect.Open {
503 cond {
504 condition_key: 1200
505 }
506 }
507
508 Mysqlx.Error {
509 severity: ERROR
510 code: 5160
511 msg: "Unknown condition key: 1200"
512 sql_state: "HY000"
513 }
514
515 send Mysqlx.Expect.Close {
516 }
517
518 Mysqlx.Error {
519 severity: ERROR
520 code: 5158
521 msg: "Expect block currently not open"
522 sql_state: "HY000"
523 }
524
525 Mysqlx.Ok {
526 msg: "bye!"
527 }
528 ok