Debian Codegraph @

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

raw
1
2
3 ## I. Verify CapabilitySet
4 #
5 # 1. Check that server allows only valid algorithm names, other
6 # are rejected
7 # 2. Check that when compression is enabled on server side,
8 # and client didn't enabled compression then an error
9 # is returned by client when it received compressed message
10 # 3. Check if server verifies the "compression" object in CapabilitySet
11 # a. Send compression capability without any configuration
12 # b. Send compression capability with invalid type (not object)
13 # c. Send algorithm capability with invalid type (not scalar)
14 # d. Send server_max_combine_messages capability with invalid type (not scalar)
15 # e. Send server_combine_mixed_messages capability with invalid type (not scalar)
16 # f. Send level capability with invalid type (not integer)
17
18 #
19 # I.1
20 ##########################################################
21 ## Scenario: algorithm=deflate_stream
22 Mysqlx.Ok {
23 }
24
25 ##########################################################
26 ## Scenario: algorithm=lz4_message
27 Mysqlx.Ok {
28 }
29
30 ##########################################################
31 ## Scenario: algorithm=zstd_stream
32 Mysqlx.Ok {
33 }
34
35 ##########################################################
36 ## Scenario: algorithm=wrong
37 Mysqlx.Error {
38 severity: ERROR
39 code: 5175
40 msg: "Invalid or unsupported value for \'compression.algorithm\'"
41 sql_state: "HY000"
42 }
43
44 ##########################################################
45 ## Scenario: wrong=deflate_stream
46 Mysqlx.Error {
47 severity: ERROR
48 code: 5178
49 msg: "Invalid or unsupported option \'compression.wrong\'"
50 sql_state: "HY000"
51 }
52
53 ok
54
55 #
56 # I.2
57 Mysqlx.Ok {
58 }
59
60 Login OK
61 While executing SELECT 1:
62 Got expected error: Compression is disabled or required compression style was not selected (code 2512)
63 ok
64
65 #
66 # I.3
67
68 #
69 # I.3.a
70 Mysqlx.Error {
71 severity: ERROR
72 code: 5179
73 msg: "The algorithm is required for \'compression\'"
74 sql_state: "HY000"
75 }
76
77
78 #
79 # I.3.b
80 Mysqlx.Error {
81 severity: ERROR
82 code: 5001
83 msg: "Capability prepare failed for \'compression\'"
84 sql_state: "HY000"
85 }
86
87
88 #
89 # I.3.c
90 Mysqlx.Error {
91 severity: ERROR
92 code: 5001
93 msg: "Capability prepare failed for \'compression\'"
94 sql_state: "HY000"
95 }
96
97
98 #
99 # I.3.d
100 Mysqlx.Error {
101 severity: ERROR
102 code: 5001
103 msg: "Capability prepare failed for \'compression\'"
104 sql_state: "HY000"
105 }
106
107
108 #
109 # I.3.e
110 Mysqlx.Error {
111 severity: ERROR
112 code: 5001
113 msg: "Capability prepare failed for \'compression\'"
114 sql_state: "HY000"
115 }
116
117
118 #
119 # I.3.f
120 Mysqlx.Error {
121 severity: ERROR
122 code: 5001
123 msg: "Capability prepare failed for \'compression\'"
124 sql_state: "HY000"
125 }
126
127 ok