From 33d4369dcf89e8868177e38e1a485002ce975005 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 16 Nov 2021 13:38:55 +0100 Subject: -more work on KYC test --- src/include/taler_merchant_testing_lib.h | 12 ++++++------ src/testing/test_merchant_api.c | 12 ++++++++++-- src/testing/testing_api_cmd_kyc_get.c | 12 ++++++------ 3 files changed, 22 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/include/taler_merchant_testing_lib.h b/src/include/taler_merchant_testing_lib.h index cb92d0f3..38149d25 100644 --- a/src/include/taler_merchant_testing_lib.h +++ b/src/include/taler_merchant_testing_lib.h @@ -1481,12 +1481,12 @@ TALER_TESTING_cmd_tip_pickup (const char *label, * @return the command */ struct TALER_TESTING_Command -TALER_TESTING_cmd_kyc_get (const char *label, - const char *merchant_url, - const char *instance_id, - const char *h_wire_ref, - const char *exchange_url, - unsigned int expected_http_status); +TALER_TESTING_cmd_merchant_kyc_get (const char *label, + const char *merchant_url, + const char *instance_id, + const char *h_wire_ref, + const char *exchange_url, + unsigned int expected_http_status); /* ****** Specific traits supported by this component ******* */ diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c index c5f8702e..93c3af55 100644 --- a/src/testing/test_merchant_api.c +++ b/src/testing/test_merchant_api.c @@ -206,6 +206,14 @@ run (void *cls, PAYTO_I1, "EUR", MHD_HTTP_NO_CONTENT), +#if FIXME + TALER_TESTING_cmd_merchant_kyc_get ("instance-create-kyc-0", + merchant_url, + NULL, + NULL, + EXCHANGE_URL, + MHD_HTTP_OK), +#endif TALER_TESTING_cmd_merchant_post_orders_no_claim ("create-proposal-4", merchant_url, MHD_HTTP_OK, @@ -668,7 +676,7 @@ run (void *cls, "EUR:10.02"), /** * Make a reserve exist, according to the previous transfer. - */// + */ cmd_exec_wirewatch ("wirewatch-1r"), TALER_TESTING_cmd_check_bank_admin_transfer ("check_bank_transfer-2r", "EUR:10.02", @@ -820,7 +828,7 @@ run (void *cls, it, and finally (4) attempt to pick up a refund from it without any increasing taking place in the first place. - */// + */ cmd_transfer_to_exchange ("create-reserve-unincreased-refund", "EUR:5.01"), cmd_exec_wirewatch ("wirewatch-unincreased-refund"), diff --git a/src/testing/testing_api_cmd_kyc_get.c b/src/testing/testing_api_cmd_kyc_get.c index de4e4689..32378177 100644 --- a/src/testing/testing_api_cmd_kyc_get.c +++ b/src/testing/testing_api_cmd_kyc_get.c @@ -178,12 +178,12 @@ kyc_get_run (void *cls, struct TALER_TESTING_Command -TALER_TESTING_cmd_kyc_get (const char *label, - const char *merchant_url, - const char *instance_id, - const char *h_wire_ref, - const char *exchange_url, - unsigned int expected_http_status) +TALER_TESTING_cmd_merchant_kyc_get (const char *label, + const char *merchant_url, + const char *instance_id, + const char *h_wire_ref, + const char *exchange_url, + unsigned int expected_http_status) { struct KycGetState *cs; -- cgit v1.2.3