Skip to content

Commit

Permalink
Add testing binlog loading to repl_mon.feature testing
Browse files Browse the repository at this point in the history
  • Loading branch information
WithSoull committed Dec 24, 2024
1 parent a073537 commit 754d448
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 31 deletions.
31 changes: 0 additions & 31 deletions tests/features/binlog_loading.feature

This file was deleted.

37 changes: 37 additions & 0 deletions tests/features/repl_mon.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@ Feature: repl_mon tests
[{"res":1}]
"""

And mysql host "mysql2" should be replica of "mysql1"

Then zookeeper node "/test/health/mysql2" should match json within "20" seconds
"""
{
"is_loading_binlog": true
}
"""

And mysql host "mysql3" should be replica of "mysql1"

Then zookeeper node "/test/health/mysql3" should match json within "20" seconds
"""
{
"is_loading_binlog": true
}
"""


Scenario: repl_mon disabled
Given cluster environment is
"""
Expand All @@ -51,3 +70,21 @@ Feature: repl_mon tests
"""
SELECT ts FROM mysql.mysync_repl_mon
"""

And mysql host "mysql2" should be replica of "mysql1"

Then zookeeper node "/test/health/mysql2" should match json within "20" seconds
"""
{
"is_loading_binlog": false
}
"""

And mysql host "mysql3" should be replica of "mysql1"

Then zookeeper node "/test/health/mysql3" should match json within "20" seconds
"""
{
"is_loading_binlog": false
}
"""

0 comments on commit 754d448

Please sign in to comment.