bank twister test case

This commit is contained in:
Florian Dold 2020-01-17 18:22:26 +01:00
parent ac8bf9dd8c
commit 0463f19ece
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -61,12 +61,6 @@ static struct TALER_TESTING_BankConfiguration bc;
*/ */
static char *twister_url; static char *twister_url;
/**
* Account URL of the twister where all the connections to the
* bank that have to be proxied should be addressed to.
*/
static char *twisted_account_url;
/** /**
* Twister process. * Twister process.
*/ */
@ -89,11 +83,6 @@ run (void *cls,
struct TALER_TESTING_Interpreter *is) struct TALER_TESTING_Interpreter *is)
{ {
GNUNET_asprintf (&twisted_account_url,
"%s%s/",
twister_url,
"42");
struct TALER_TESTING_Command commands[] = { struct TALER_TESTING_Command commands[] = {
/** /**
* Can't use the "wait service" CMD here because the * Can't use the "wait service" CMD here because the
@ -102,7 +91,7 @@ run (void *cls,
TALER_TESTING_cmd_wait_service ("wait-service", TALER_TESTING_cmd_wait_service ("wait-service",
twister_url), twister_url),
TALER_TESTING_cmd_bank_credits ("history-0", TALER_TESTING_cmd_bank_credits ("history-0",
twisted_account_url, bc.exchange_auth.wire_gateway_url,
&bc.exchange_auth, &bc.exchange_auth,
NULL, NULL,
5), 5),
@ -161,6 +150,9 @@ main (int argc,
GNUNET_break (0); GNUNET_break (0);
return 77; return 77;
} }
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"twister_url is %s\n",
twister_url);
if (NULL == (twisterd = TALER_TESTING_run_twister (cfgfilename))) if (NULL == (twisterd = TALER_TESTING_run_twister (cfgfilename)))
{ {
GNUNET_break (0); GNUNET_break (0);
@ -173,7 +165,7 @@ main (int argc,
TALER_LOG_DEBUG ("Running against the Fakebank.\n"); TALER_LOG_DEBUG ("Running against the Fakebank.\n");
if (GNUNET_OK != if (GNUNET_OK !=
TALER_TESTING_prepare_fakebank (cfgfilename, TALER_TESTING_prepare_fakebank (cfgfilename,
"account-1", "account-2",
&bc)) &bc))
{ {
GNUNET_break (0); GNUNET_break (0);