mirror of https://github.com/status-im/consul.git
Change where the envoy snapshots get put when a test fails (#7298)
This will allow us to capture them in CI
This commit is contained in:
parent
ebb0ecf5a8
commit
0041102e29
|
@ -74,6 +74,6 @@ load helpers
|
|||
assert_expected_fortio_name s2-secondary
|
||||
}
|
||||
|
||||
@test "s1 upstream made 1 connection" {
|
||||
@test "s1 upstream made 1 connection again" {
|
||||
assert_envoy_metric_at_least 127.0.0.1:19000 "cluster.s2.default.primary.*cx_total" 1
|
||||
}
|
||||
|
|
|
@ -179,11 +179,12 @@ function snapshot_envoy_admin {
|
|||
local HOSTPORT=$1
|
||||
local ENVOY_NAME=$2
|
||||
local DC=${3:-primary}
|
||||
|
||||
|
||||
docker_wget "$DC" "http://${HOSTPORT}/config_dump" -q -O - > "./workdir/${DC}/envoy/${ENVOY_NAME}-config_dump.json"
|
||||
docker_wget "$DC" "http://${HOSTPORT}/clusters?format=json" -q -O - > "./workdir/${DC}/envoy/${ENVOY_NAME}-clusters.json"
|
||||
docker_wget "$DC" "http://${HOSTPORT}/stats" -q -O - > "./workdir/${DC}/envoy/${ENVOY_NAME}-stats.txt"
|
||||
local OUTDIR="${LOG_DIR}/envoy-snapshots/${DC}/${ENVOY_NAME}"
|
||||
|
||||
mkdir -p "${OUTDIR}"
|
||||
docker_wget "$DC" "http://${HOSTPORT}/config_dump" -q -O - > "${OUTDIR}/config_dump.json"
|
||||
docker_wget "$DC" "http://${HOSTPORT}/clusters?format=json" -q -O - > "${OUTDIR}/clusters.json"
|
||||
docker_wget "$DC" "http://${HOSTPORT}/stats" -q -O - > "${OUTDIR}/stats.txt"
|
||||
}
|
||||
|
||||
function reset_envoy_metrics {
|
||||
|
|
Loading…
Reference in New Issue