diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/merchant-tools/taler-merchant-benchmark.c | 66 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_get_transfers.c | 4 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_post_transfers.c | 1 |
3 files changed, 7 insertions, 64 deletions
diff --git a/src/merchant-tools/taler-merchant-benchmark.c b/src/merchant-tools/taler-merchant-benchmark.c index 09c2ba6a..ec3319cf 100644 --- a/src/merchant-tools/taler-merchant-benchmark.c +++ b/src/merchant-tools/taler-merchant-benchmark.c @@ -24,15 +24,7 @@ */ #include "platform.h" #include <taler/taler_util.h> -#include <taler/taler_signatures.h> -#include <taler/taler_exchange_service.h> -#include <taler/taler_json_lib.h> -#include <gnunet/gnunet_util_lib.h> -#include <microhttpd.h> -#include <taler/taler_bank_service.h> -#include <taler/taler_fakebank_lib.h> #include <taler/taler_testing_lib.h> -#include <taler/taler_error_codes.h> #include "taler_merchant_testing_lib.h" @@ -90,11 +82,6 @@ static unsigned int twocoins_number = 1; static unsigned int payments_number = 1; /** - * How many /tracks operation we want to perform. - */ -static unsigned int tracks_number = 1; - -/** * Config filename to give to commands (like wirewatch). */ static char *cfg_filename; @@ -198,6 +185,7 @@ run (void *cls, cred.user42_payto, currency, MHD_HTTP_NO_CONTENT), + TALER_TESTING_cmd_admin_add_incoming ( "create-reserve-1", CURRENCY_10_02, @@ -241,55 +229,13 @@ run (void *cls, "rewind-payments", "create-reserve-1", payments_number), - /* Next proposal-pay cycle will be used by /track CMDs - * and so it will not have to be looped over, only /track - * CMDs will have to. */ - TALER_TESTING_cmd_merchant_post_orders ( - "create-proposal-2", - cred.cfg, - merchant_url, - MHD_HTTP_OK, - NULL, /* random order ID */ - GNUNET_TIME_UNIT_ZERO_TS, - GNUNET_TIME_UNIT_FOREVER_TS, - CURRENCY_5), - TALER_TESTING_cmd_merchant_pay_order ( - "deposit-simple-2", - merchant_url, - MHD_HTTP_OK, - "create-proposal-2", - "withdraw-coin-2", - CURRENCY_5, - CURRENCY_4_99, - NULL), - /* /track/transaction over deposit-simple-2 */ - TALER_TESTING_cmd_exec_aggregator ( - "aggregate-1", + "aggregate-1x", cfg_filename), TALER_TESTING_cmd_exec_transfer ( "transfer-1", cfg_filename), - TALER_TESTING_cmd_merchant_post_transfer ( - "post-transfer-1", - &cred.ba, - cred.user42_payto, - merchant_url, - CURRENCY_4_98, - MHD_HTTP_OK, - "deposit-simple-2", - NULL), - TALER_TESTING_cmd_merchant_get_transfers ( - "track-transfer-1", - merchant_url, - cred.user42_payto, - MHD_HTTP_OK, - "post-transfer-1", - NULL), - TALER_TESTING_cmd_rewind_ip ( - "rewind-tracks", - "track-transfer-1", - tracks_number), + TALER_TESTING_cmd_end () }; @@ -538,12 +484,6 @@ main (int argc, "PN", "will generate PN payments, defaults to 1", &payments_number), - GNUNET_GETOPT_option_uint ( - 't', - "tracks-number", - "TN", - "will perform TN /track operations, defaults to 1", - &tracks_number), GNUNET_GETOPT_option_version (PACKAGE_VERSION "-" VCS_VERSION), GNUNET_GETOPT_OPTION_END }; diff --git a/src/testing/testing_api_cmd_get_transfers.c b/src/testing/testing_api_cmd_get_transfers.c index e9a38730..b8548229 100644 --- a/src/testing/testing_api_cmd_get_transfers.c +++ b/src/testing/testing_api_cmd_get_transfers.c @@ -109,7 +109,9 @@ get_transfers_cb ( if (gtr->details.ok.transfers_length != gts->transfers_length) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Transfers length does not match\n"); + "Transfers length does not match (%u/%u)\n", + gtr->details.ok.transfers_length, + gts->transfers_length); TALER_TESTING_interpreter_fail (gts->is); return; } diff --git a/src/testing/testing_api_cmd_post_transfers.c b/src/testing/testing_api_cmd_post_transfers.c index 8e4356e7..c194bd1e 100644 --- a/src/testing/testing_api_cmd_post_transfers.c +++ b/src/testing/testing_api_cmd_post_transfers.c @@ -133,6 +133,7 @@ transfers_cb (void *cls, ptr->hr.http_status, (int) ptr->hr.ec, TALER_TESTING_interpreter_get_current_label (pts->is)); + GNUNET_break (0); TALER_TESTING_interpreter_fail (pts->is); return; } |