summaryrefslogtreecommitdiff
path: root/src/bank-lib/test_bank_api_with_fakebank_new.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-12-14 00:34:35 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-12-14 19:25:42 +0100
commit15c1a877c617fd29ff61e2ebd1f6fac72e54afce (patch)
tree2781d327ca51bce8c172f0907bb93c86cc13d579 /src/bank-lib/test_bank_api_with_fakebank_new.c
parentc2b6a1065474df88df8d501d7a83b67032bd121d (diff)
downloadexchange-15c1a877c617fd29ff61e2ebd1f6fac72e54afce.tar.gz
exchange-15c1a877c617fd29ff61e2ebd1f6fac72e54afce.tar.bz2
exchange-15c1a877c617fd29ff61e2ebd1f6fac72e54afce.zip
/history API semantics extended.
That API has now a new 'ordering' flag that lets the client choose what ordering the results should have: ascending or descending. In particular, this change adapted the fakebank and tests logic to such introduction.
Diffstat (limited to 'src/bank-lib/test_bank_api_with_fakebank_new.c')
-rw-r--r--src/bank-lib/test_bank_api_with_fakebank_new.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/bank-lib/test_bank_api_with_fakebank_new.c b/src/bank-lib/test_bank_api_with_fakebank_new.c
index 22ed30a5..cf7c0918 100644
--- a/src/bank-lib/test_bank_api_with_fakebank_new.c
+++ b/src/bank-lib/test_bank_api_with_fakebank_new.c
@@ -73,6 +73,7 @@ run (void *cls,
fakebank_url,
BANK_ACCOUNT_NUMBER,
TALER_BANK_DIRECTION_BOTH,
+ GNUNET_NO,
NULL,
1),
@@ -94,6 +95,7 @@ run (void *cls,
fakebank_url,
BANK_ACCOUNT_NUMBER,
TALER_BANK_DIRECTION_CREDIT,
+ GNUNET_NO,
NULL,
5),
@@ -101,6 +103,7 @@ run (void *cls,
fakebank_url,
BANK_ACCOUNT_NUMBER,
TALER_BANK_DIRECTION_DEBIT,
+ GNUNET_NO,
NULL,
5),
@@ -130,13 +133,15 @@ run (void *cls,
fakebank_url,
EXCHANGE_ACCOUNT_NUMBER,
TALER_BANK_DIRECTION_BOTH,
+ GNUNET_NO,
NULL,
- 5),
+ -5),
TALER_TESTING_cmd_bank_history ("history-2bi",
fakebank_url,
EXCHANGE_ACCOUNT_NUMBER,
TALER_BANK_DIRECTION_BOTH,
+ GNUNET_YES,
"debit-1",
5),
@@ -170,16 +175,18 @@ run (void *cls,
fakebank_url,
BANK_ACCOUNT_NUMBER,
TALER_BANK_DIRECTION_BOTH,
+ GNUNET_NO,
NULL,
- 5),
+ -5),
TALER_TESTING_cmd_bank_history ("history-r1c",
fakebank_url,
BANK_ACCOUNT_NUMBER,
TALER_BANK_DIRECTION_BOTH |
TALER_BANK_DIRECTION_CANCEL,
+ GNUNET_NO,
NULL,
- 5),
+ -5),
TALER_TESTING_cmd_check_bank_transfer_with_ref
("expect-credit-reject-1",