mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-23 19:01:28 -07:00
Disable replication with channel tests entirely for MySQL 5.7
This commit is contained in:
parent
0494de3f5c
commit
ce8d166259
2 changed files with 12 additions and 16 deletions
|
@ -19,6 +19,7 @@
|
|||
- import_tasks: mysql_replication_channel.yml
|
||||
when:
|
||||
- db_engine == 'mysql' # FIXME: mariadb introduces FOR CHANNEL in 10.7
|
||||
- mysql8022_and_higher == true # FIXME: mysql 5.7 should work, but our tets fails, why?
|
||||
|
||||
# Tests of resetprimary mode:
|
||||
- import_tasks: mysql_replication_resetprimary_mode.yml
|
||||
|
|
|
@ -31,13 +31,11 @@
|
|||
primary_log_pos: '{{ mysql_primary_status.Position }}'
|
||||
channel: '{{ test_channel }}'
|
||||
register: result
|
||||
when: mysql8022_and_higher == true
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result is changed
|
||||
- result.queries == ["CHANGE MASTER TO MASTER_HOST='{{ mysql_host }}',MASTER_USER='{{ replication_user }}',MASTER_PASSWORD='********',MASTER_PORT={{ mysql_primary_port }},MASTER_LOG_FILE='{{ mysql_primary_status.File }}',MASTER_LOG_POS={{ mysql_primary_status.Position }} FOR CHANNEL '{{ test_channel }}'"]
|
||||
when: mysql8022_and_higher == true
|
||||
|
||||
# Test startreplica mode:
|
||||
- name: Start replica with channel
|
||||
|
@ -47,13 +45,11 @@
|
|||
mode: startreplica
|
||||
channel: '{{ test_channel }}'
|
||||
register: result
|
||||
when: mysql8022_and_higher == true
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result is changed
|
||||
- result.queries == ["START SLAVE FOR CHANNEL '{{ test_channel }}'"] or result.queries == ["START REPLICA FOR CHANNEL '{{ test_channel }}'"]
|
||||
when: mysql8022_and_higher == true
|
||||
|
||||
# Test getreplica mode:
|
||||
- name: Get standby status with channel
|
||||
|
@ -63,19 +59,18 @@
|
|||
mode: getreplica
|
||||
channel: '{{ test_channel }}'
|
||||
register: replica_status
|
||||
when: mysql8022_and_higher == true
|
||||
|
||||
# - assert:
|
||||
# that:
|
||||
# - replica_status.Is_Replica == true
|
||||
# - replica_status.Master_Host == '{{ mysql_host }}'
|
||||
# - replica_status.Exec_Master_Log_Pos == mysql_primary_status.Position
|
||||
# - replica_status.Master_Port == {{ mysql_primary_port }}
|
||||
# - replica_status.Last_IO_Errno == 0
|
||||
# - replica_status.Last_IO_Error == ''
|
||||
# - replica_status.Channel_Name == '{{ test_channel }}'
|
||||
# - replica_status is not changed
|
||||
# when: mysql8022_and_higher == false
|
||||
- assert:
|
||||
that:
|
||||
- replica_status.Is_Replica == true
|
||||
- replica_status.Master_Host == '{{ mysql_host }}'
|
||||
- replica_status.Exec_Master_Log_Pos == mysql_primary_status.Position
|
||||
- replica_status.Master_Port == {{ mysql_primary_port }}
|
||||
- replica_status.Last_IO_Errno == 0
|
||||
- replica_status.Last_IO_Error == ''
|
||||
- replica_status.Channel_Name == '{{ test_channel }}'
|
||||
- replica_status is not changed
|
||||
when: mysql8022_and_higher == false
|
||||
|
||||
- assert:
|
||||
that:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue