mirror of https://github.com/status-im/consul.git
add namespace waiting function to envoy integration tests (#9051)
This commit is contained in:
parent
b72e11aa9c
commit
cfa5908c8d
|
@ -574,6 +574,10 @@ function read_config_entry {
|
||||||
docker_consul "$DC" config read -kind $KIND -name $NAME
|
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 {
|
function wait_for_config_entry {
|
||||||
retry_default read_config_entry "$@" >/dev/null
|
retry_default read_config_entry "$@" >/dev/null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue