From 836bb53d70b9a79452c3fe2d5860c1e43f11e917 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 28 Jul 2024 12:16:06 +0200 Subject: fix SQL, fix test configurations --- .../taler-exchange-helper-measure-test-oauth | 44 ++++++++++++++++++++-- 1 file changed, 41 insertions(+), 3 deletions(-) (limited to 'src/kyclogic') diff --git a/src/kyclogic/taler-exchange-helper-measure-test-oauth b/src/kyclogic/taler-exchange-helper-measure-test-oauth index 1249e4959..554a179b6 100755 --- a/src/kyclogic/taler-exchange-helper-measure-test-oauth +++ b/src/kyclogic/taler-exchange-helper-measure-test-oauth @@ -22,7 +22,7 @@ echo "Running $0" 1>&2 # This is a KYC measure program that checks the output # of an OAuth2 authentication, and if it passed, -# increases the reserve CLOSE limit to EUR:1000. +# increases all limits to EUR:1000. # (and doesn't impose any other limits) if [ "${1:-no}" = "--required-context" ] @@ -69,7 +69,44 @@ jq -n \ "new_rules" : { "new_check" : "info-oauth-test-passed", "expiration_time" : { "t_s": $expiration }, - "rules" : [ { + "rules" : [ + { + "operation_type": "WITHDRAW", + "threshold" : "EUR:1000", + "timeframe" : { "d_us" : 3600000000 }, + "measures" : [ "verboten" ], + "display_priority" : 1, + "exposed" : true, + "is_and_combinator" : true + }, + { + "operation_type": "DEPOSIT", + "threshold" : "EUR:1000", + "timeframe" : { "d_us" : 3600000000 }, + "measures" : [ "verboten" ], + "display_priority" : 1, + "exposed" : true, + "is_and_combinator" : true + }, + { + "operation_type": "MERGE", + "threshold" : "EUR:1000", + "timeframe" : { "d_us" : 3600000000 }, + "measures" : [ "verboten" ], + "display_priority" : 1, + "exposed" : true, + "is_and_combinator" : true + }, + { + "operation_type": "BALANCE", + "threshold" : "EUR:1000", + "timeframe" : { "d_us" : 3600000000 }, + "measures" : [ "verboten" ], + "display_priority" : 1, + "exposed" : true, + "is_and_combinator" : true + }, + { "operation_type": "CLOSE", "threshold" : "EUR:1000", "timeframe" : { "d_us" : 3600000000 }, @@ -77,7 +114,8 @@ jq -n \ "display_priority" : 1, "exposed" : true, "is_and_combinator" : true - } ] + } + ] } }' < /dev/null -- cgit v1.2.3