| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
## Table of testing |
| 5 |
# |
| 6 |
# 1. localhost bindings |
| 7 |
# 2. "skip-networking" bindings |
| 8 |
# 3. "not existing hosts" bindings |
| 9 |
# 4. skipped "*" binding |
| 10 |
# 5. skipped "::" binding |
| 11 |
# 6. skipped "empty address" binding |
| 12 |
# 7. skipped "empty network namespace" binding |
| 13 |
# 8. skipped "wildcard with namespace" binding |
| 14 |
# 9. skipped "wrong network namespace" binding |
| 15 |
# 10. skipped "distanthost" binding |
| 16 |
# 11. "ifconfig" bindings |
| 17 |
# 12. default bindings |
| 18 |
# |
| 19 |
|
| 20 |
# |
| 21 |
# 1. localhost bindings |
| 22 |
# restart: --mysqlx_bind_address=localhost,::1 |
| 23 |
include/assert.inc [There status variable must point to 127.0.0.1,::1] |
| 24 |
include/assert.inc [There variable must point to localhost,::1] |
| 25 |
|
| 26 |
# |
| 27 |
# 2. "skip-networking" bindings |
| 28 |
# restart: --skip-networking --mysqlx_bind_address=localhost,::1 |
| 29 |
include/assert.inc [There status variable must point to UNDEFINED] |
| 30 |
include/assert.inc [There variable must point to localhost,::1] |
| 31 |
|
| 32 |
# |
| 33 |
# 3. "not existing hosts" bindings |
| 34 |
call mtr.add_suppression("Plugin mysqlx reported: 'Value 'otherhost' set to `Mysqlx_bind_address`, X Plugin can't bind to it. Skipping this value.'"); |
| 35 |
call mtr.add_suppression("Plugin mysqlx reported: 'Setup of bind-address: 'otherhost' port: [0-9]* failed, can't resolve `hostname`'"); |
| 36 |
call mtr.add_suppression("Plugin mysqlx reported: 'Value 'anotherhost' set to `Mysqlx_bind_address`, X Plugin can't bind to it. Skipping this value.'"); |
| 37 |
call mtr.add_suppression("Plugin mysqlx reported: 'Setup of bind-address: 'anotherhost' port: [0-9]* failed, can't resolve `hostname`'"); |
| 38 |
# restart: --mysqlx_bind_address=otherhost,anotherhost |
| 39 |
include/assert.inc [There status variable must point to UNDEFINED] |
| 40 |
include/assert.inc [There variable must point to otherhost,anotherhost] |
| 41 |
|
| 42 |
# |
| 43 |
# 4. skipped "*" binding |
| 44 |
call mtr.add_suppression("Plugin mysqlx reported: 'Validation of value '\\*' set to `Mysqlx_bind_address` failed: wildcards are not allowed when there are more than one address. Skipping this value.'"); |
| 45 |
# restart: --mysqlx_bind_address=*,::1 |
| 46 |
include/assert.inc [There status variable must point to ::1] |
| 47 |
include/assert.inc [There variable must point to *,::1] |
| 48 |
|
| 49 |
# |
| 50 |
# 5. skipped "::" binding |
| 51 |
call mtr.add_suppression("Plugin mysqlx reported: 'Validation of value '::' set to `Mysqlx_bind_address` failed: wildcards are not allowed when there are more than one address. Skipping this value.'"); |
| 52 |
# restart: --mysqlx_bind_address=::,::1 |
| 53 |
include/assert.inc [There status variable must point to ::1] |
| 54 |
include/assert.inc [There variable must point to ::,::1] |
| 55 |
|
| 56 |
# |
| 57 |
# 6. skipped "empty address" binding |
| 58 |
call mtr.add_suppression("Plugin mysqlx reported: 'Validation of value '' set to `Mysqlx_bind_address` failed: wildcards are not allowed when there are more than one address. Skipping this value.'"); |
| 59 |
# restart: --mysqlx_bind_address=,::1 |
| 60 |
include/assert.inc [There status variable must point to ::1] |
| 61 |
include/assert.inc [There variable must point to ,::1] |
| 62 |
|
| 63 |
# |
| 64 |
# 7. skipped "empty network namespace" binding |
| 65 |
call mtr.add_suppression("Plugin mysqlx reported: 'Validation of value '::1/' set to `Mysqlx_bind_address` failed: can't be parsed as an address. Skipping this value.'"); |
| 66 |
# restart: --mysqlx_bind_address=::1/,::1 |
| 67 |
include/assert.inc [There status variable must point to ::1] |
| 68 |
include/assert.inc [There variable must point to ::1/,::1] |
| 69 |
|
| 70 |
# |
| 71 |
# 8. skipped "wildcard with namespace" binding |
| 72 |
call mtr.add_suppression("Plugin mysqlx reported: 'Validation of value '::/wrong' set to `Mysqlx_bind_address` failed: network namespace are not allowed for wildcards. Skipping this value.'"); |
| 73 |
# restart: --mysqlx_bind_address=::/wrong,::1 |
| 74 |
include/assert.inc [There status variable must point to ::1] |
| 75 |
include/assert.inc [There variable must point to ::/wrong,::1] |
| 76 |
|
| 77 |
# |
| 78 |
# 9. skipped "wrong network namespace" binding |
| 79 |
call mtr.add_suppression("Plugin mysqlx reported: 'Value '::1/wrong' set to `Mysqlx_bind_address`, X Plugin can't bind to it. Skipping this value.'"); |
| 80 |
call mtr.add_suppression("Plugin mysqlx reported: 'Setup of bind-address: '::1/wrong' port: [0-9]* failed, '"); |
| 81 |
call mtr.add_suppression("Unknown network namespace 'wrong'"); |
| 82 |
call mtr.add_suppression("Plugin mysqlx reported: 'Network Namespaces is not supported on this platform'"); |
| 83 |
# restart: --mysqlx_bind_address=::1/wrong,::1 |
| 84 |
include/assert.inc [There status variable must point to ::1] |
| 85 |
include/assert.inc [There variable must point to ::1/wrong,::1] |
| 86 |
|
| 87 |
# |
| 88 |
# 10. skipped "distanthost" binding |
| 89 |
call mtr.add_suppression("Plugin mysqlx reported: 'Value 'distanthost' set to `Mysqlx_bind_address`, X Plugin can't bind to it. Skipping this value.'"); |
| 90 |
call mtr.add_suppression("Plugin mysqlx reported: 'Setup of bind-address: 'distanthost' port: [0-9]* failed, can't resolve `hostname`'"); |
| 91 |
# restart: --mysqlx_bind_address=distanthost,::1 |
| 92 |
include/assert.inc [There status variable must point to ::1] |
| 93 |
include/assert.inc [There variable must point to distanthost,::1] |
| 94 |
|
| 95 |
# |
| 96 |
# 11. "ifconfig" bindings |
| 97 |
call mtr.add_suppression("Plugin mysqlx reported: 'Value '[0-9a-f,:]+' set to `Mysqlx_bind_address`, X Plugin can't bind to it. Skipping this value.'"); |
| 98 |
call mtr.add_suppression("Plugin mysqlx reported: 'Setup of bind-address: '[0-9a-f,:]+' port: [0-9]* failed, `bind\\(\\)` failed with error: .+ \\([0-9]+\\). Do you already have another mysqld server running with Mysqlx \\?'"); |
| 99 |
# restart: --mysqlx_bind_address=$IPs |
| 100 |
SELECT variable_value FROM performance_schema.global_status WHERE variable_name LIKE "Mysqlx_address" INTO @MYSQLX_ADDRESSES; |
| 101 |
include/assert.inc [There status variable must point some of $IPs] |
| 102 |
include/assert.inc [There variable must point to $IPs] |
| 103 |
|
| 104 |
# |
| 105 |
# 12. default bindings |
| 106 |
# restart: |
| 107 |
include/assert.inc [There status variable must point to ::] |
| 108 |
include/assert.inc [There variable must point to *] |
| 109 |
DROP TABLE test.ip; |