aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-04 17:07:04 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-04 17:07:04 +0200
commit7d5e5978add17a6ba280d1e9998f1ee9f2cd4ede (patch)
tree56828a40ccf85bf819708ff9b7d30b1ed798e948 /src/testing
parentba29af74ce7f39185316be05541596bce4bb73d3 (diff)
fix misc bugs
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/test_kyc_api.c5
-rw-r--r--src/testing/testing_api_cmd_take_aml_decision.c8
2 files changed, 6 insertions, 7 deletions
diff --git a/src/testing/test_kyc_api.c b/src/testing/test_kyc_api.c
index 2b19e33f0..423198433 100644
--- a/src/testing/test_kyc_api.c
+++ b/src/testing/test_kyc_api.c
@@ -699,11 +699,12 @@ run (void *cls,
" \"timeframe\":{\"d_us\":3600000000}"
" ,\"threshold\":\"EUR:0\""
" ,\"operation_type\":\"BALANCE\""
+ " ,\"display_priority\":65536"
" ,\"measures\":[\"form-measure\"]"
" ,\"verboten\":false"
" }"
" ]" /* end new rules */
- ",\"new_check\":\"form-check\"" // FIXME: do we need this?
+ ",\"new_measure\":\"form-measure\""
",\"custom_measures\":"
" {"
" \"form-measure\":"
@@ -726,7 +727,6 @@ run (void *cls,
"get-kyc-info-form",
"check-kyc-form",
MHD_HTTP_OK),
-#if FIXME
TALER_TESTING_cmd_post_kyc_form (
"wallet-post-kyc-form",
"get-kyc-info-form",
@@ -740,7 +740,6 @@ run (void *cls,
"wallet-trigger-kyc-for-form-aml",
"EUR:500",
MHD_HTTP_NO_CONTENT),
-#endif
TALER_TESTING_cmd_end ()
};
diff --git a/src/testing/testing_api_cmd_take_aml_decision.c b/src/testing/testing_api_cmd_take_aml_decision.c
index f0eca3e39..e61c03efa 100644
--- a/src/testing/testing_api_cmd_take_aml_decision.c
+++ b/src/testing/testing_api_cmd_take_aml_decision.c
@@ -149,7 +149,7 @@ take_aml_decision_run (void *cls,
const json_t *jmeasures = NULL;
struct GNUNET_TIME_Timestamp expiration_time
= GNUNET_TIME_relative_to_timestamp (ds->expiration_delay);
- const char *new_check = NULL;
+ const char *new_measure = NULL;
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_array_const ("rules",
&jrules),
@@ -158,8 +158,8 @@ take_aml_decision_run (void *cls,
&jmeasures),
NULL),
GNUNET_JSON_spec_mark_optional (
- GNUNET_JSON_spec_string ("new_check",
- &new_check),
+ GNUNET_JSON_spec_string ("new_measure",
+ &new_measure),
NULL),
GNUNET_JSON_spec_end ()
};
@@ -356,7 +356,7 @@ take_aml_decision_run (void *cls,
h_payto,
now,
ds->successor_measure,
- new_check,
+ new_measure,
expiration_time,
num_rules,
rules,