diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-07-28 12:16:06 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-07-29 12:18:49 +0200 |
commit | 836bb53d70b9a79452c3fe2d5860c1e43f11e917 (patch) | |
tree | ba31ff7f189fea6d5ac32ea8ed858b694663e817 /src/kyclogic/taler-exchange-helper-measure-test-oauth | |
parent | 412952ddbdf2c0b10e6271f26e0a3b6fed39f374 (diff) |
fix SQL, fix test configurations
Diffstat (limited to 'src/kyclogic/taler-exchange-helper-measure-test-oauth')
-rwxr-xr-x | src/kyclogic/taler-exchange-helper-measure-test-oauth | 44 |
1 files changed, 41 insertions, 3 deletions
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 |