From 9914a9b301c5b3381ddbe8dba8c47be2366e3de4 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 21 Mar 2019 18:47:35 +0100 Subject: Adapt "/history" tests to the new policy of 'start' defaults. --- src/bank-lib/test_bank_api_new.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'src/bank-lib/test_bank_api_new.c') diff --git a/src/bank-lib/test_bank_api_new.c b/src/bank-lib/test_bank_api_new.c index 8513f5a53..38ac537f7 100644 --- a/src/bank-lib/test_bank_api_new.c +++ b/src/bank-lib/test_bank_api_new.c @@ -68,22 +68,14 @@ run (void *cls, struct TALER_TESTING_Command commands[] = { - /** - * NOTE: this command uses internally the _fakebank_ version - * of the add-incoming command. However, this does seem to - * work fine against the Python bank too! Some renaming is - * required.. - */ TALER_TESTING_cmd_bank_history ("history-0", bank_url, EXCHANGE_ACCOUNT_NUMBER, TALER_BANK_DIRECTION_BOTH, GNUNET_NO, - NULL, + NULL, /* start */ 5), - /* WARNING: old API has expected http response code among - * the parameters, although it was always set as '200 OK' */ TALER_TESTING_cmd_fakebank_transfer_with_subject ("deposit-1", "KUDOS:5.01", @@ -111,15 +103,15 @@ run (void *cls, bank_url, EXCHANGE_ACCOUNT_NUMBER, TALER_BANK_DIRECTION_CREDIT, - GNUNET_NO, + GNUNET_YES, NULL, - -5), + 5), TALER_TESTING_cmd_bank_history ("history-1d", bank_url, EXCHANGE_ACCOUNT_NUMBER, TALER_BANK_DIRECTION_DEBIT, - GNUNET_NO, + GNUNET_YES, NULL, 5), @@ -127,15 +119,15 @@ run (void *cls, bank_url, EXCHANGE_ACCOUNT_NUMBER, TALER_BANK_DIRECTION_DEBIT, - GNUNET_NO, + GNUNET_YES, NULL, - -5), + 5), TALER_TESTING_cmd_bank_history ("history-2fwd", bank_url, EXCHANGE_ACCOUNT_NUMBER, TALER_BANK_DIRECTION_DEBIT, - GNUNET_NO, + GNUNET_YES, "deposit-1", 5), -- cgit v1.2.3