You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/test/integration/connect/envoy/case-wanfed-gw/primary/verify.bats

20 lines
540 B

#!/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
}