diff options
Diffstat (limited to 'src/bank-lib/test_bank_interpreter.h')
-rw-r--r-- | src/bank-lib/test_bank_interpreter.h | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/src/bank-lib/test_bank_interpreter.h b/src/bank-lib/test_bank_interpreter.h index f54986973..329b51461 100644 --- a/src/bank-lib/test_bank_interpreter.h +++ b/src/bank-lib/test_bank_interpreter.h @@ -42,7 +42,17 @@ enum TBI_OpCode /** * Add funds to a reserve by (faking) incoming wire transfer. */ - TBI_OC_ADMIN_ADD_INCOMING + TBI_OC_ADMIN_ADD_INCOMING, + + /** + * Expect that we have received the specified transaction at fakebank. + */ + TBI_OC_EXPECT_TRANSACTION, + + /** + * Expect that we have exhaustively gone over all transactions at fakebank. + */ + TBI_OC_EXPECT_TRANSACTIONS_EMPTY }; @@ -63,11 +73,6 @@ struct TBI_Command const char *label; /** - * Which response code do we expect for this command? - */ - unsigned int expected_response_code; - - /** * Details about the command. */ union @@ -101,12 +106,31 @@ struct TBI_Command struct TALER_WireTransferIdentifierRawP wtid; /** + * Which response code do we expect for this command? + */ + unsigned int expected_response_code; + + /** * Set to the API's handle during the operation. */ struct TALER_BANK_AdminAddIncomingHandle *aih; } admin_add_incoming; + /** + * If @e opcode is #TBI_OC_EXPECT_TRANSACTION, this + * specifies which transaction we expected. + */ + struct { + + /** + * Label of the command of an /admin/add/incoming + * request that we should check was executed. + */ + const char *cmd_ref; + + } expect_transaction; + } details; }; |