diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-28 20:45:53 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-28 20:45:53 +0100 |
commit | d5351641f8124040c02ced06690fda36535bedcf (patch) | |
tree | 7dc39087a5a74fc29e255b7cc4e871a32d441d9e /src/testing/test_exchange_api_revocation.c | |
parent | 9d9b0e0e571a7c6791cf83235f92d1a5d9369637 (diff) | |
download | exchange-d5351641f8124040c02ced06690fda36535bedcf.tar.xz |
implement #6049
Diffstat (limited to 'src/testing/test_exchange_api_revocation.c')
-rw-r--r-- | src/testing/test_exchange_api_revocation.c | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/src/testing/test_exchange_api_revocation.c b/src/testing/test_exchange_api_revocation.c index f91d8b548..0f3a8910b 100644 --- a/src/testing/test_exchange_api_revocation.c +++ b/src/testing/test_exchange_api_revocation.c @@ -126,7 +126,8 @@ run (void *cls, TALER_TESTING_cmd_recoup ("recoup-not-allowed", MHD_HTTP_NOT_FOUND, "refresh-reveal-1#0", - "refresh-melt-1"), + "refresh-melt-1", + NULL), /* Make refreshed coin invalid */ TALER_TESTING_cmd_revoke ("revoke-2-EUR:5", MHD_HTTP_OK, @@ -141,37 +142,45 @@ run (void *cls, TALER_TESTING_cmd_recoup ("recoup-fully-spent", MHD_HTTP_CONFLICT, "withdraw-revocation-coin-2", + NULL, NULL), /* Refund coin to original coin */ TALER_TESTING_cmd_recoup ("recoup-1a", MHD_HTTP_OK, "refresh-reveal-1#0", - "refresh-melt-1"), + "refresh-melt-1", + NULL), TALER_TESTING_cmd_recoup ("recoup-1b", MHD_HTTP_OK, "refresh-reveal-1#1", - "refresh-melt-1"), + "refresh-melt-1", + NULL), TALER_TESTING_cmd_recoup ("recoup-1c", MHD_HTTP_OK, "refresh-reveal-1#2", - "refresh-melt-1"), + "refresh-melt-1", + NULL), /* Repeat recoup to test idempotency */ TALER_TESTING_cmd_recoup ("recoup-1c", MHD_HTTP_OK, "refresh-reveal-1#2", - "refresh-melt-1"), + "refresh-melt-1", + NULL), TALER_TESTING_cmd_recoup ("recoup-1c", MHD_HTTP_OK, "refresh-reveal-1#2", - "refresh-melt-1"), + "refresh-melt-1", + NULL), TALER_TESTING_cmd_recoup ("recoup-1c", MHD_HTTP_OK, "refresh-reveal-1#2", - "refresh-melt-1"), + "refresh-melt-1", + NULL), TALER_TESTING_cmd_recoup ("recoup-1c", MHD_HTTP_OK, "refresh-reveal-1#2", - "refresh-melt-1"), + "refresh-melt-1", + NULL), /* Now we have EUR:3.83 EUR back after 3x EUR:1 in recoups */ /* Melt original coin AGAIN, but only create one 0.1 EUR coin; This costs EUR:0.03 in refresh and EUR:01 in withdraw fees, @@ -201,13 +210,15 @@ run (void *cls, TALER_TESTING_cmd_recoup ("recoup-2", MHD_HTTP_OK, "refresh-reveal-2", - "refresh-melt-2"), + "refresh-melt-2", + NULL), /* Due to recoup, original coin is now at EUR:3.79 */ /* Refund original (now zombie) coin to reserve */ TALER_TESTING_cmd_recoup ("recoup-3", MHD_HTTP_OK, "withdraw-revocation-coin-1", - NULL), + NULL, + "EUR:3.79"), /* Check the money is back with the reserve */ TALER_TESTING_cmd_status ("recoup-reserve-status-1", "create-reserve-1", |