mirror of https://github.com/status-im/consul.git
add namespace waiting function to envoy integration tests (#9051)
This commit is contained in:
parent
7b9ee25956
commit
b724e096c2
|
@ -684,6 +684,10 @@ function read_config_entry {
|
|||
docker_consul "$DC" config read -kind $KIND -name $NAME
|
||||
}
|
||||
|
||||
function wait_for_namespace {
|
||||
retry_default curl -sL -f "http://127.0.0.1:8500/v1/namespace/${1}" >/dev/null
|
||||
}
|
||||
|
||||
function wait_for_config_entry {
|
||||
retry_default read_config_entry "$@" >/dev/null
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue