From 4702b156dc8130a842745035c936de8817c7c700 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 12 Oct 2022 22:16:40 +0200 Subject: -work on reserve control tests --- src/testing/test_exchange_p2p.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/testing/test_exchange_p2p.c') 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 () }; -- cgit v1.2.3