37771ad847
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.
27 lines
580 B
Bash
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
|