diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-14 00:34:35 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-14 19:25:42 +0100 |
commit | 15c1a877c617fd29ff61e2ebd1f6fac72e54afce (patch) | |
tree | 2781d327ca51bce8c172f0907bb93c86cc13d579 /src/bank-lib/test_bank_api_with_fakebank.c | |
parent | c2b6a1065474df88df8d501d7a83b67032bd121d (diff) | |
download | exchange-15c1a877c617fd29ff61e2ebd1f6fac72e54afce.tar.xz |
/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.c')
-rw-r--r-- | src/bank-lib/test_bank_api_with_fakebank.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bank-lib/test_bank_api_with_fakebank.c b/src/bank-lib/test_bank_api_with_fakebank.c index b860669ce..429784696 100644 --- a/src/bank-lib/test_bank_api_with_fakebank.c +++ b/src/bank-lib/test_bank_api_with_fakebank.c @@ -88,13 +88,14 @@ run (void *cls) .details.history.account_number = 2, .details.history.direction = TALER_BANK_DIRECTION_BOTH, .details.history.start_row_ref = NULL, - .details.history.num_results = 5 }, + .details.history.num_results = -5 }, { .oc = TBI_OC_HISTORY, .label = "history-2bi", .details.history.account_number = 2, .details.history.direction = TALER_BANK_DIRECTION_BOTH, .details.history.start_row_ref = "debit-1", - .details.history.num_results = 5 }, + .details.history.num_results = 5, + .details.history.ascending = GNUNET_YES}, /* check transfers arrived at fakebank */ { .oc = TBI_OC_EXPECT_TRANSFER, .label = "expect-2d", @@ -129,13 +130,13 @@ run (void *cls) in the history. So to see the rejected transfer, we need to start looking after "credit-2" */ .details.history.start_row_ref = NULL, - .details.history.num_results = 5 }, + .details.history.num_results = -5 }, { .oc = TBI_OC_HISTORY, .label = "history-r1c", .details.history.account_number = 1, .details.history.direction = TALER_BANK_DIRECTION_BOTH | TALER_BANK_DIRECTION_CANCEL, .details.history.start_row_ref = NULL, - .details.history.num_results = 5 }, + .details.history.num_results = -5 }, { .oc = TBI_OC_EXPECT_TRANSFER, .label = "expect-credit-reject-1", .details.expect_transfer.cmd_ref = "credit-for-reject-1" }, |