20 lines
540 B
Plaintext
20 lines
540 B
Plaintext
|
#!/usr/bin/env bats
|
||
|
|
||
|
load helpers
|
||
|
|
||
|
@test "gateway-primary proxy admin is up on :19000" {
|
||
|
retry_default curl -f -s localhost:19000/stats -o /dev/null
|
||
|
}
|
||
|
|
||
|
@test "gateway-primary should have healthy endpoints for secondary" {
|
||
|
assert_upstream_has_endpoints_in_status 127.0.0.1:19000 secondary HEALTHY 1
|
||
|
}
|
||
|
|
||
|
@test "primary should be able to rpc to the secondary" {
|
||
|
retry_default curl -sL -f -XPUT localhost:8500/v1/kv/foo?dc=secondary -d'{"Value":"bar"}'
|
||
|
}
|
||
|
|
||
|
@test "wan pool should show 2 healthy nodes" {
|
||
|
assert_alive_wan_member_count 2
|
||
|
}
|