-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use 'primary' instead of 'master' in Sentinel tcl testing. #724
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #724 +/- ##
============================================
+ Coverage 70.23% 70.26% +0.02%
============================================
Files 111 111
Lines 60203 60305 +102
============================================
+ Hits 42286 42371 +85
- Misses 17917 17934 +17 |
@@ -64,7 +64,7 @@ test "SDOWN is triggered by crashed instance" { | |||
ensure_master_up | |||
} | |||
|
|||
test "SDOWN is triggered by masters advertising as slaves" { | |||
test "SDOWN is triggered by primarys advertising as slaves" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test "SDOWN is triggered by primarys advertising as slaves" { | |
test "SDOWN is triggered by primaries advertising as slaves" { |
tests/sentinel/tests/00-base.tcl
Outdated
@@ -56,7 +56,7 @@ test "SENTINEL PENDING-SCRIPTS returns the information about pending scripts" { | |||
assert_morethan_equal [llength [S 0 SENTINEL PENDING-SCRIPTS]] 0 | |||
} | |||
|
|||
test "SENTINEL MASTERS returns a list of monitored masters" { | |||
test "SENTINEL PRIMARYS returns a list of monitored primarys" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test "SENTINEL PRIMARYS returns a list of monitored primarys" { | |
test "SENTINEL PRIMARIES returns a list of monitored primaries" { |
tests/sentinel/tests/00-base.tcl
Outdated
assert {[RI $master_id role] eq {master}} | ||
} | ||
|
||
test "SENTINEL RESET can resets the master" { | ||
test "SENTINEL RESET can resets the primary" { | ||
# After SENTINEL RESET, sometimes the sentinel can sense the master again, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# After SENTINEL RESET, sometimes the sentinel can sense the master again, | |
# After SENTINEL RESET, sometimes the sentinel can sense the primary again, |
@@ -63,7 +63,7 @@ proc wait_for_sentinels_connect_servers { {is_connect 1} } { | |||
} | |||
} | |||
|
|||
test "Sentinels (re)connection following SENTINEL SET mymaster auth-pass" { | |||
test "Sentinels (re)connection following SENTINEL SET myprimary auth-pass" { | |||
# 3 types of sentinels to test: | |||
# (re)started while master changed pwd. Manage to connect only after setting pwd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# (re)started while master changed pwd. Manage to connect only after setting pwd | |
# (re)started while primary changed pwd. Manage to connect only after setting pwd |
Signed-off-by: z00808363 <[email protected]>
Signed-off-by: z00808363 <[email protected]>
Signed-off-by: z00808363 <[email protected]>
Use 'primary' instead of 'master' in Sentinel tcl testing.