|
|
@ -53,7 +53,7 @@ load helpers
|
|
|
|
# Note: when failover is configured the cluster is named for the original
|
|
|
|
# Note: when failover is configured the cluster is named for the original
|
|
|
|
# service not any destination related to failover.
|
|
|
|
# service not any destination related to failover.
|
|
|
|
@test "s1 upstream should have healthy endpoints for s2 and s3 together" {
|
|
|
|
@test "s1 upstream should have healthy endpoints for s2 and s3 together" {
|
|
|
|
assert_upstream_has_endpoints_in_status 127.0.0.1:19000 failover-target~s2.default.primary HEALTHY 1
|
|
|
|
assert_upstream_has_endpoints_in_status 127.0.0.1:19000 s2.default.primary HEALTHY 2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@test "s1 upstream should be able to connect to s2 via upstream s2 to start" {
|
|
|
|
@test "s1 upstream should be able to connect to s2 via upstream s2 to start" {
|
|
|
@ -65,8 +65,8 @@ load helpers
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@test "s1 upstream should have healthy endpoints for s3-v1 and unhealthy endpoints for s2" {
|
|
|
|
@test "s1 upstream should have healthy endpoints for s3-v1 and unhealthy endpoints for s2" {
|
|
|
|
assert_upstream_has_endpoints_in_status 127.0.0.1:19000 failover-target~v1.s3.default.primary HEALTHY 1
|
|
|
|
assert_upstream_has_endpoints_in_status 127.0.0.1:19000 s2.default.primary HEALTHY 1
|
|
|
|
assert_upstream_has_endpoints_in_status 127.0.0.1:19000 failover-target~s2.default.primary UNHEALTHY 1
|
|
|
|
assert_upstream_has_endpoints_in_status 127.0.0.1:19000 s2.default.primary UNHEALTHY 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@test "s1 upstream should be able to connect to s3-v1 now" {
|
|
|
|
@test "s1 upstream should be able to connect to s3-v1 now" {
|
|
|
|