diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-10-12 22:16:40 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-10-12 22:16:40 +0200 |
commit | 4702b156dc8130a842745035c936de8817c7c700 (patch) | |
tree | f1c2d6c9013d2fa904c82b6cbc2b1effb9c6e16a /src/testing/test_exchange_p2p.c | |
parent | 3b34acdb72cd450974a3bbde6169f1bf9644a302 (diff) | |
download | exchange-4702b156dc8130a842745035c936de8817c7c700.tar.xz |
-work on reserve control tests
Diffstat (limited to 'src/testing/test_exchange_p2p.c')
-rw-r--r-- | src/testing/test_exchange_p2p.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/testing/test_exchange_p2p.c b/src/testing/test_exchange_p2p.c index d0a0a9898..693391c6c 100644 --- a/src/testing/test_exchange_p2p.c +++ b/src/testing/test_exchange_p2p.c @@ -382,7 +382,7 @@ run (void *cls, MHD_HTTP_PAYMENT_REQUIRED, // FIXME: or CONFLICT? NULL, NULL), - TALER_TESTING_cmd_reserve_open ("reserve-open-101-ok", + TALER_TESTING_cmd_reserve_open ("reserve-open-101-ok-a", "create-reserve-101", "EUR:0.01", GNUNET_TIME_UNIT_MONTHS, @@ -394,30 +394,32 @@ run (void *cls, "create-reserve-101", "EUR:1.03", MHD_HTTP_OK), - TALER_TESTING_cmd_reserve_open ("reserve-open-101-ok", + TALER_TESTING_cmd_reserve_open ("reserve-open-101-ok-b", "create-reserve-101", "EUR:0", GNUNET_TIME_UNIT_MONTHS, 2, /* min purses */ MHD_HTTP_OK, "withdraw-coin-100", - "EUR:0.02", + "EUR:0.03", /* 0.02 for the reserve open, 0.01 for deposit fee */ NULL, NULL), - /* FIXME: use purse quota here */ + /* FIXME: use purse creation with purse quota here */ TALER_TESTING_cmd_reserve_get_attestable ("reserve-101-attestable", "create-reserve-101", - MHD_HTTP_OK, + MHD_HTTP_NOT_FOUND, NULL), TALER_TESTING_cmd_reserve_get_attestable ("reserve-101-attest", "create-reserve-101", - MHD_HTTP_CONFLICT, + MHD_HTTP_NOT_FOUND, "nx-attribute-name", NULL), +#if 0 TALER_TESTING_cmd_reserve_close ("reserve-101-close", "create-reserve-101", NULL, /* to origin */ MHD_HTTP_OK), +#endif TALER_TESTING_cmd_end () }; |