From 69fa9b41d1896d2d2beeee086308f62b4f1e35c4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 4 May 2017 23:52:54 +0200 Subject: start to add /history testing support to tests, fix some minor issues --- src/bank-lib/test_bank_interpreter.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'src/bank-lib/test_bank_interpreter.h') diff --git a/src/bank-lib/test_bank_interpreter.h b/src/bank-lib/test_bank_interpreter.h index 1f2772ca..06b4e2d7 100644 --- a/src/bank-lib/test_bank_interpreter.h +++ b/src/bank-lib/test_bank_interpreter.h @@ -44,6 +44,11 @@ enum TBI_OpCode */ TBI_OC_ADMIN_ADD_INCOMING, + /** + * Request wire transfer history. + */ + TBI_OC_HISTORY, + /** * Expect that we have received the specified transfer at fakebank. */ @@ -122,6 +127,36 @@ struct TBI_Command } admin_add_incoming; + struct { + + /** + * For which account do we query the history. + */ + uint64_t account_number; + + /** + * Which types of transactions should be listed? + */ + enum TALER_BANK_Direction direction; + + /** + * At which offset do we start? + * Use UINT64_MAX or 0 for the extremes. + */ + uint64_t start_row; + + /** + * How many results should be returned (if available)? + */ + int64_t num_results; + + /** + * Set to the API's handle during the operation. + */ + struct TALER_BANK_HistoryHandle *hh; + + } history; + /** * If @e opcode is #TBI_OC_EXPECT_TRANSFER, this * specifies which transfer we expected. -- cgit v1.2.3