diff options
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/test_exchange_api_age_restriction.c | 20 | ||||
-rw-r--r-- | src/testing/test_exchange_api_age_restriction.conf | 19 | ||||
-rw-r--r-- | src/testing/test_kyc_api.conf | 2 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_withdraw.c | 7 |
4 files changed, 30 insertions, 18 deletions
diff --git a/src/testing/test_exchange_api_age_restriction.c b/src/testing/test_exchange_api_age_restriction.c index 2e62b7c7..0aaa7bbf 100644 --- a/src/testing/test_exchange_api_age_restriction.c +++ b/src/testing/test_exchange_api_age_restriction.c @@ -257,18 +257,18 @@ run (void *cls, * Test with age-withdraw, after kyc process has set a birthdate */ struct TALER_TESTING_Command age_withdraw[] = { - CMD_TRANSFER_TO_EXCHANGE ("create-reserve-1", + CMD_TRANSFER_TO_EXCHANGE ("create-reserve-kyc-1", "EUR:20.02"), TALER_TESTING_cmd_check_bank_admin_transfer ( "check-create-reserve-1", "EUR:20.02", cred.user42_payto, cred.exchange_payto, - "create-reserve-1"), + "create-reserve-kyc-1"), CMD_EXEC_WIREWATCH ("wirewatch-age-withdraw-1"), TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-1-lacking-kyc", - "create-reserve-1", - "EUR:5", + "create-reserve-kyc-1", + "EUR:10", 0, /* age restriction off */ MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS), TALER_TESTING_cmd_check_kyc_get ("check-kyc-withdraw", @@ -280,16 +280,10 @@ run (void *cls, "pass", MHD_HTTP_SEE_OTHER), TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-1-with-kyc", - "create-reserve-1", - "EUR:5", + "create-reserve-kyc-1", + "EUR:10", 0, /* age restriction off */ - MHD_HTTP_OK), - /* Attestations above are bound to the originating *bank* account, - not to the reserve (!). Hence, they are NOT found here! */ - TALER_TESTING_cmd_reserve_get_attestable ("reserve-get-attestable", - "create-reserve-1", - MHD_HTTP_NOT_FOUND, - NULL), + MHD_HTTP_CONFLICT), TALER_TESTING_cmd_end (), }; diff --git a/src/testing/test_exchange_api_age_restriction.conf b/src/testing/test_exchange_api_age_restriction.conf index 37e7fc30..12bf45c3 100644 --- a/src/testing/test_exchange_api_age_restriction.conf +++ b/src/testing/test_exchange_api_age_restriction.conf @@ -23,7 +23,7 @@ HTTP_PORT = 8082 [exchange] TERMS_ETAG = tos PRIVACY_ETAG = 0 -AML_THRESHOLD = EUR:1000000 +AML_THRESHOLD = EUR:10 PORT = 8081 MASTER_PUBLIC_KEY = 98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG DB = postgres @@ -80,12 +80,29 @@ KYC_OAUTH2_CLIENT_SECRET = exchange-secret KYC_OAUTH2_POST_URL = http://example.com/ KYC_OAUTH2_ATTRIBUTE_TEMPLATE = "{"full_name":"{{last_name}}, {{first_name}}","birthdate":"{{birthdate}}"}" +[kyc-legitimization-balance-high] +OPERATION_TYPE = BALANCE +REQUIRED_CHECKS = DUMMY +THRESHOLD = EUR:20 + +[kyc-legitimization-deposit-any] +OPERATION_TYPE = DEPOSIT +REQUIRED_CHECKS = DUMMY +THRESHOLD = EUR:10 +TIMEFRAME = 1d + [kyc-legitimization-withdraw] OPERATION_TYPE = WITHDRAW REQUIRED_CHECKS = DUMMY THRESHOLD = EUR:15 TIMEFRAME = 1d +[kyc-legitimization-merge] +OPERATION_TYPE = MERGE +REQUIRED_CHECKS = DUMMY +THRESHOLD = EUR:15 +TIMEFRAME = 1d + [exchange-extension-age_restriction] ENABLED = YES diff --git a/src/testing/test_kyc_api.conf b/src/testing/test_kyc_api.conf index 90343990..7a212623 100644 --- a/src/testing/test_kyc_api.conf +++ b/src/testing/test_kyc_api.conf @@ -31,7 +31,7 @@ TIMEFRAME = 1d [kyc-legitimization-withdraw] OPERATION_TYPE = WITHDRAW REQUIRED_CHECKS = DUMMY -THRESHOLD = EUR:8 +THRESHOLD = EUR:10 TIMEFRAME = 1d [kyc-legitimization-merge] diff --git a/src/testing/testing_api_cmd_withdraw.c b/src/testing/testing_api_cmd_withdraw.c index cf0b4998..8873c240 100644 --- a/src/testing/testing_api_cmd_withdraw.c +++ b/src/testing/testing_api_cmd_withdraw.c @@ -283,9 +283,10 @@ reserve_withdraw_cb (void *cls, return; } } - TALER_TESTING_unexpected_status (is, - wr->hr.http_status, - ws->expected_response_code); + TALER_TESTING_unexpected_status_with_body (is, + wr->hr.http_status, + ws->expected_response_code, + wr->hr.reply); return; } switch (wr->hr.http_status) |