diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-07-23 21:18:32 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-07-23 21:18:32 +0200 |
commit | 5bf90c3505130bb92d518e8ae489d55095cb1cf3 (patch) | |
tree | 27bd1a47fd29043c4472e26505d213dbc103e284 /src/testing | |
parent | e230eaad76f4488dc1b5dbc0aba6ab26b9423e75 (diff) | |
download | exchange-5bf90c3505130bb92d518e8ae489d55095cb1cf3.tar.gz exchange-5bf90c3505130bb92d518e8ae489d55095cb1cf3.tar.bz2 exchange-5bf90c3505130bb92d518e8ae489d55095cb1cf3.zip |
kyc logic with birthdate setting test added
1. Added age-requirement check in withdraw-handler (like in batch-withdraw)
2. In test_exchange_api_age_restriction:
- kyc-oauth2 started, with static birthdate in answers
- withdraw triggers kyc
- second withdraw fails due to age restriction requirements
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/test_exchange_api_age_restriction-cs.conf | 2 | ||||
-rw-r--r-- | src/testing/test_exchange_api_age_restriction.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/test_exchange_api_age_restriction-cs.conf b/src/testing/test_exchange_api_age_restriction-cs.conf index b80696fb2..12195f9ba 100644 --- a/src/testing/test_exchange_api_age_restriction-cs.conf +++ b/src/testing/test_exchange_api_age_restriction-cs.conf @@ -1,4 +1,4 @@ # This file is in the public domain. # +@INLINE@ test_exchange_api_age_restriction.conf @INLINE@ coins-cs.conf -@INLINE@ test_exchange_api.conf diff --git a/src/testing/test_exchange_api_age_restriction.c b/src/testing/test_exchange_api_age_restriction.c index 0aaa7bbf9..93bd28bf9 100644 --- a/src/testing/test_exchange_api_age_restriction.c +++ b/src/testing/test_exchange_api_age_restriction.c @@ -302,7 +302,7 @@ run (void *cls, true, true), TALER_TESTING_cmd_oauth_with_birthdate ("oauth-service-with-birthdate", - "2022-00-00", /* enough for a while */ + "2015-00-00", /* enough for a while */ 6666), TALER_TESTING_cmd_batch ("withdraw-age", withdraw_age), |