open-consul/test/integration/connect/envoy/case-mesh-to-lambda/setup.sh
R.B. Boyer 37771ad847
test: fix envoy integration tests to explicitly create config entries (#15269)
This is instead of the current behavior where we feed the config entries in using the config_entries.bootstrap configuration which oddly races against other setup code in some circumstances.

I converted ALL tests to explicitly create config entries.
2022-11-07 10:02:04 -06:00

27 lines
580 B
Bash

#!/bin/bash
set -eEuo pipefail
# Copy lambda config files into the register dir
find ${CASE_DIR} -maxdepth 1 -name '*_l*.json' -type f -exec cp -f {} workdir/${CLUSTER}/register \;
upsert_config_entry primary '
kind = "terminating-gateway"
name = "terminating-gateway"
services = [
{
name = "l2"
}
]
'
register_services primary
register_lambdas primary
# wait for Lambda config entries
wait_for_config_entry service-defaults l1
wait_for_config_entry service-defaults l2
gen_envoy_bootstrap s1 19000 primary
gen_envoy_bootstrap terminating-gateway 20000 primary true