Split kind tests into component-owned probes
This commit is contained in:
parent
b3c0f6d58a
commit
691ad92e30
1 changed files with 4269 additions and 3108 deletions
16
tests/kind/fixture/coordination.sh
Normal file
16
tests/kind/fixture/coordination.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
reset_lane_coordination_store() {
|
||||
local provider="$1"
|
||||
local lane="$2"
|
||||
local database=$((10#$lane))
|
||||
kube --namespace "$FIXTURE_NAMESPACE" exec "deployment/$provider" -- \
|
||||
redis-cli --raw --no-auth-warning -n "$database" FLUSHDB >/dev/null || return
|
||||
printf '%s\n' "$database"
|
||||
}
|
||||
|
||||
cleanup_lane_coordination_store() {
|
||||
local provider="$1"
|
||||
local lane="$2"
|
||||
local database=$((10#$lane))
|
||||
kube --namespace "$FIXTURE_NAMESPACE" exec "deployment/$provider" -- \
|
||||
redis-cli --raw --no-auth-warning -n "$database" FLUSHDB >/dev/null
|
||||
}
|
||||
Loading…
Reference in a new issue