diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-11 23:35:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-11 23:35:33 +0200 |
commit | 1009084e94b8e8cf19e3b5568c3cccaba2bd2209 (patch) | |
tree | a346997dedd05f685ba7addc59e288dfa550ad0e /src/exchangedb/test_exchangedb.c | |
parent | b061ea85c84facfc78c34edface367c5f040bc9c (diff) | |
download | exchange-1009084e94b8e8cf19e3b5568c3cccaba2bd2209.tar.xz |
major rework of the KYC logic, making it more configurable, not complete, but tests pass again
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index db46aeae8..1cd081652 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -1399,7 +1399,6 @@ run (void *cls) bool found; bool nonce_ok; bool balance_ok; - struct TALER_EXCHANGEDB_KycStatus kyc; uint64_t ruuid; FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != @@ -1410,12 +1409,10 @@ run (void *cls) &found, &balance_ok, &nonce_ok, - &kyc, &ruuid)); GNUNET_assert (found); GNUNET_assert (nonce_ok); GNUNET_assert (balance_ok); - GNUNET_assert (! kyc.ok); } FAILIF (GNUNET_OK != check_reserve (&reserve_pub, @@ -2159,7 +2156,6 @@ run (void *cls) plugin->get_ready_deposit (plugin->cls, 0, INT32_MAX, - true, &merchant_pub2, &payto_uri2)); FAILIF (0 != GNUNET_memcmp (&merchant_pub2, @@ -2205,6 +2201,7 @@ run (void *cls) FAILIF (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != plugin->select_aggregation_transient (plugin->cls, &wire_target_h_payto, + &deposit.merchant_pub, "x-bank", &wtid2, &total2)); @@ -2212,11 +2209,13 @@ run (void *cls) plugin->create_aggregation_transient (plugin->cls, &wire_target_h_payto, "x-bank", + &deposit.merchant_pub, &wtid, &total)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != plugin->select_aggregation_transient (plugin->cls, &wire_target_h_payto, + &deposit.merchant_pub, "x-bank", &wtid2, &total2)); @@ -2237,6 +2236,7 @@ run (void *cls) FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != plugin->select_aggregation_transient (plugin->cls, &wire_target_h_payto, + &deposit.merchant_pub, "x-bank", &wtid2, &total2)); @@ -2253,6 +2253,7 @@ run (void *cls) FAILIF (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != plugin->select_aggregation_transient (plugin->cls, &wire_target_h_payto, + &deposit.merchant_pub, "x-bank", &wtid2, &total2)); |