From 7236294ffbe7b5a5b3d56a27c1685ac75cdfd76b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 15 Jan 2020 21:27:58 +0100 Subject: fix check commands in test_auditor_api --- src/lib/test_auditor_api.c | 49 +++++++++++++++++++++---------------------- src/lib/test_auditor_api.conf | 4 ++-- 2 files changed, 26 insertions(+), 27 deletions(-) (limited to 'src/lib') diff --git a/src/lib/test_auditor_api.c b/src/lib/test_auditor_api.c index 4909a183b..422468f1a 100644 --- a/src/lib/test_auditor_api.c +++ b/src/lib/test_auditor_api.c @@ -122,11 +122,14 @@ run (void *cls, */ CMD_TRANSFER_TO_EXCHANGE ("create-reserve-1", "EUR:5.01"), + TALER_TESTING_cmd_check_bank_admin_transfer + ("check-create-reserve-1", + "EUR:5.01", bc.user42_payto, bc.exchange_payto, + "create-reserve-1"), /** * Make a reserve exist, according to the previous transfer. */ CMD_EXEC_WIREWATCH ("wirewatch-1"), - /** * Withdraw EUR:5. */ @@ -153,13 +156,16 @@ run (void *cls, }; struct TALER_TESTING_Command refresh[] = { - /** - * Fill reserve with EUR:5, 1ct is for fees. NOTE: the old + /* Fill reserve with EUR:5, 1ct is for fees. NOTE: the old * test-suite gave a account number of _424_ to the user at * this step; to type less, here the _42_ number is reused. - * Does this change the tests semantics? - */CMD_TRANSFER_TO_EXCHANGE ("refresh-create-reserve-1", + * Does this change the tests semantics? */// + CMD_TRANSFER_TO_EXCHANGE ("refresh-create-reserve-1", "EUR:5.01"), + TALER_TESTING_cmd_check_bank_admin_transfer + ("check-refresh-create-reserve-1", + "EUR:5.01", bc.user42_payto, bc.exchange_payto, + "refresh-create-reserve-1"), /** * Make previous command effective. */ @@ -216,8 +222,8 @@ run (void *cls, * happen here, as each deposit operation is run with a * fresh merchant public key! NOTE: this comment comes * "verbatim" from the old test-suite, and IMO does not explain - * a lot! - */CMD_EXEC_AGGREGATOR ("run-aggregator"), + * a lot!*/// + CMD_EXEC_AGGREGATOR ("run-aggregator"), /** * Check all the transfers took place. @@ -231,22 +237,9 @@ run (void *cls, TALER_TESTING_cmd_check_bank_transfer ("check_bank_transfer-99c", ec.exchange_url, "EUR:0.08", bc.exchange_payto, bc.user43_payto), - TALER_TESTING_cmd_check_bank_admin_transfer - ("check_bank_transfer-aai-1", - "EUR:5.01", bc.user42_payto, bc.exchange_payto, - "FIXME"), - TALER_TESTING_cmd_check_bank_transfer - ("check_bank_transfer-aai-2", - "EUR:5.01", bc.user42_payto, bc.exchange_payto, - "FIXME"), /* The following transactions got originated within * the "massive deposit confirms" batch. */ - TALER_TESTING_cmd_check_bank_transfer - ("check-massive-transfer", - ec.exchange_url, - "EUR:10.10", - bc.user42_payto, bc.exchange_payto), TALER_TESTING_cmd_check_bank_transfer ("check-massive-transfer-1", ec.exchange_url, @@ -311,11 +304,12 @@ run (void *cls, "EUR:5.01"), CMD_EXEC_WIREWATCH ("wirewatch-unaggregated"), /* "consume" reserve creation transfer. */ - TALER_TESTING_cmd_check_bank_transfer ("check_bank_transfer-unaggregated", - ec.exchange_url, - "EUR:5.01", - bc.user42_payto, - bc.exchange_payto), + TALER_TESTING_cmd_check_bank_admin_transfer ( + "check_bank_transfer-unaggregated", + "EUR:5.01", + bc.user42_payto, + bc.exchange_payto, + "create-reserve-unaggregated"), TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-unaggregated", "create-reserve-unaggregated", "EUR:5", @@ -488,6 +482,11 @@ run (void *cls, */ CMD_TRANSFER_TO_EXCHANGE ("massive-reserve", "EUR:10.10"), + TALER_TESTING_cmd_check_bank_admin_transfer + ("check-massive-transfer", + "EUR:10.10", + bc.user42_payto, bc.exchange_payto, + "massive-reserve"), CMD_EXEC_WIREWATCH ("massive-wirewatch"), TALER_TESTING_cmd_withdraw_amount ("massive-withdraw-1", "massive-reserve", diff --git a/src/lib/test_auditor_api.conf b/src/lib/test_auditor_api.conf index b3a2039e3..5c6ee031f 100644 --- a/src/lib/test_auditor_api.conf +++ b/src/lib/test_auditor_api.conf @@ -64,7 +64,7 @@ URL = "payto://x-taler-bank/localhost:8082/42" # wallets with the bank information for transfers to the exchange. WIRE_RESPONSE = ${TALER_CONFIG_HOME}/account-1.json # Which wire plugin should we used to access the account? -PLUGIN = taler_bank +METHOD = x-taler-bank # ENABLE_CREDIT = YES @@ -77,7 +77,7 @@ URL = "payto://x-taler-bank/localhost:8082/2" WIRE_RESPONSE = ${TALER_CONFIG_HOME}/account-2.json # Which wire plugin should we used to access the account? -PLUGIN = taler_bank +METHOD = x-taler-bank # Authentication information for basic authentication TALER_BANK_AUTH_METHOD = "basic" -- cgit v1.2.3