monitoring: stage e2e uses farmer shop templates + admin secret load

Map pays to jardin/fermes instances; load bank-admin via SSH
francpaysan-host; larger TESTPAYSAN credit/withdraw for shop ladder.
This commit is contained in:
Hernâni Marques 2026-07-17 19:09:37 +02:00
parent 5263060567
commit eac6098b9f
No known key found for this signature in database
GPG key ID: CB5738652768F7E9
2 changed files with 109 additions and 18 deletions

View file

@ -195,11 +195,22 @@ apply_taler_domain() {
CREDIT_AMT="${CREDIT_AMT:-${EXPECT_CURRENCY}:100}"
;;
TESTPAYSAN)
# Stage FrancPaysan: default instance + public templates (e2e-001/005/1)
MERCHANT_INSTANCE="${MERCHANT_INSTANCE:-default}"
WITHDRAW_AMT="${WITHDRAW_AMT:-TESTPAYSAN:20}"
PAY_AMT="${PAY_AMT:-TESTPAYSAN:0.01}"
CREDIT_AMT="${CREDIT_AMT:-TESTPAYSAN:100}"
# Stage FrancPaysan: farmer shops (override GOA default goa-demo-cp4zqk)
case "${MERCHANT_INSTANCE:-}" in
""|goa-demo*|goa-shop)
MERCHANT_INSTANCE=fermes-des-collines
;;
esac
WITHDRAW_AMT="${WITHDRAW_AMT:-TESTPAYSAN:50}"
PAY_AMT="${PAY_AMT:-TESTPAYSAN:5}"
# Cover oeufs(5)+fromage(8.5)+jus(6)+shop pick(~512) + fees
CREDIT_AMT="${CREDIT_AMT:-TESTPAYSAN:200}"
# Public template pays on by default (shops landings)
: "${E2E_USE_TEMPLATES:=1}"
# Map pay-ladder amounts → public shop templates (instance set in e2e)
: "${E2E_TEMPLATE_MAP:=5=oeufs-6 4.5=pain-seigle 6=jus-pomme 8.5=fromage-chevre 12=miel-printemps 25=panier-legumes}"
: "${E2E_PAY_VALUES:=5 8.5 6}"
: "${E2E_WITHDRAW_VALUES:=20 50}"
;;
CHF)
WITHDRAW_AMT="${WITHDRAW_AMT:-CHF:20}"