aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_kyc_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/test_kyc_api.c')
-rw-r--r--src/testing/test_kyc_api.c41
1 files changed, 29 insertions, 12 deletions
diff --git a/src/testing/test_kyc_api.c b/src/testing/test_kyc_api.c
index 6ef40b45..a9d79715 100644
--- a/src/testing/test_kyc_api.c
+++ b/src/testing/test_kyc_api.c
@@ -101,8 +101,9 @@ static char *merchant_url_i1a;
* @param label label to use for the command.
*/
#define CMD_EXEC_AGGREGATOR(label) \
- TALER_TESTING_cmd_exec_aggregator_with_kyc (label "-aggregator", CONFIG_FILE), \
- TALER_TESTING_cmd_exec_transfer (label "-transfer", CONFIG_FILE)
+ TALER_TESTING_cmd_exec_aggregator_with_kyc (label "-aggregator", \
+ CONFIG_FILE), \
+ TALER_TESTING_cmd_exec_transfer (label "-transfer", CONFIG_FILE)
/**
@@ -228,7 +229,7 @@ run (void *cls,
NULL,
EXCHANGE_URL,
MHD_HTTP_NO_CONTENT,
- TALER_AML_NORMAL),
+ false),
/* now we get the legi UUID by running taler-merchant-depositcheck */
TALER_TESTING_cmd_depositcheck (
"deposit-check",
@@ -241,7 +242,7 @@ run (void *cls,
NULL,
EXCHANGE_URL,
MHD_HTTP_ACCEPTED,
- TALER_AML_NORMAL),
+ true),
TALER_TESTING_cmd_proof_kyc_oauth2 (
"kyc-do",
"kyc-pending",
@@ -295,10 +296,18 @@ run (void *cls,
"freeze",
"aml-officer",
"post-transfer-1",
- "EUR:1",
+ true /* keep investigating */,
+ GNUNET_TIME_UNIT_HOURS /* expiration */,
+ NULL /* successor measure: default */,
+ "{\"rules\":["
+ "{\"timeframe\":{\"d_us\":3600000000},"
+ " \"threshold\":\"EUR:1\","
+ " \"operation_type\":\"WITHDRAW\","
+ " \"verboten\":true"
+ "}"
+ "]}" /* new rules */,
+ "{}" /* properties */,
"suspicious",
- TALER_AML_FROZEN,
- NULL,
MHD_HTTP_NO_CONTENT),
TALER_TESTING_cmd_check_bank_admin_transfer (
"check_bank_transfer-big",
@@ -361,7 +370,7 @@ run (void *cls,
NULL, /* no wire ref */
EXCHANGE_URL,
MHD_HTTP_ACCEPTED,
- TALER_AML_FROZEN),
+ true),
TALER_TESTING_cmd_sleep (
"sleep to de-collide AML timestamps",
1),
@@ -369,10 +378,18 @@ run (void *cls,
"unfreeze",
"aml-officer",
"post-transfer-1",
- "EUR:100",
+ true /* keep investigating */,
+ GNUNET_TIME_UNIT_HOURS /* expiration */,
+ NULL /* successor measure: default */,
+ "{\"rules\":["
+ "{\"timeframe\":{\"d_us\":3600000000},"
+ " \"threshold\":\"EUR:100\","
+ " \"operation_type\":\"WITHDRAW\","
+ " \"verboten\":true"
+ "}"
+ "]}" /* new rules */,
+ "{}" /* properties */,
"fine",
- TALER_AML_NORMAL,
- NULL,
MHD_HTTP_NO_CONTENT),
TALER_TESTING_cmd_merchant_kyc_get (
"aml-unfrozen",
@@ -381,7 +398,7 @@ run (void *cls,
NULL, /* no wire ref */
EXCHANGE_URL,
MHD_HTTP_NO_CONTENT,
- TALER_AML_NORMAL),
+ false),
CMD_EXEC_AGGREGATOR ("run-aggregator-aml-normal"),
TALER_TESTING_cmd_check_bank_transfer (
"check_bank_transfer-498c-post-unfreeze",