Skip to content

Commit

Permalink
external-replication: stop&start fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
suetin committed Sep 18, 2023
1 parent f6645db commit 664a17b
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion tests/features/external_replication.feature
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,30 @@ Y2AirKuDzA5GErKOfQ==
"Channel_Name": "external"
}]
"""
When I run SQL on mysql host "mysql1"
"""
UPDATE mysql.replication_settings SET replication_status = 'running' WHERE channel_name = 'external'
"""
And I wait for "70" seconds
And I run SQL on mysql host "mysql1"
"""
SHOW REPLICA STATUS FOR CHANNEL 'external'
"""
Then SQL result should match json
"""
[{
"Replica_IO_State": "Connecting",
"Source_Host": "test_source",
"Source_Port": "1111",
"Source_User": "test_user",
"Replica_IO_Running": "Yes",
"Replica_SQL_Running": "Yes",
"Source_SSL_CA_File": "",
"Relay_Source_Log_File": "",
"Exec_Source_Log_Pos": "0",
"Channel_Name": "external"
}]
"""

Scenario: external replication stop/start by user
Given cluster is up and running
Expand Down Expand Up @@ -551,7 +575,6 @@ Y2AirKuDzA5GErKOfQ==
"Source_SSL_CA_File": ""
}]
"""

When host "mysql1" is started
Then mysql host "mysql1" should become available within "20" seconds
And mysql host "mysql1" should become replica of "mysql2" within "10" seconds
Expand Down

0 comments on commit 664a17b

Please sign in to comment.