diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-01-11 15:47:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-01-11 15:47:58 +0100 |
commit | 4dc7775ec4300c58bc6a0f637387659e1f8c4dfb (patch) | |
tree | 7a99a4ad0bc48a928e27a4e7b59ade9cee7e304e /src | |
parent | 973c6716793f498725bcd92f498532d0a51c97cb (diff) |
-remove pybank remenants
Diffstat (limited to 'src')
-rw-r--r-- | src/testing/test_bank_api.c | 54 | ||||
-rw-r--r-- | src/testing/test_bank_api_twisted.c | 29 | ||||
-rw-r--r-- | src/testing/testing_api_helpers_bank.c | 2 |
3 files changed, 12 insertions, 73 deletions
diff --git a/src/testing/test_bank_api.c b/src/testing/test_bank_api.c index ca794d270..619fb30b0 100644 --- a/src/testing/test_bank_api.c +++ b/src/testing/test_bank_api.c @@ -34,7 +34,6 @@ #include "taler_testing_lib.h" #define CONFIG_FILE_FAKEBANK "test_bank_api_fakebank.conf" -#define CONFIG_FILE_PYBANK "test_bank_api_pybank.conf" #define CONFIG_FILE_NEXUS "test_bank_api_nexus.conf" @@ -207,29 +206,6 @@ main (int argc, } } else if (GNUNET_YES == TALER_TESTING_has_in_name (argv[0], - "_with_pybank")) - { - TALER_LOG_DEBUG ("Running against the Pybank.\n"); - cfgfile = CONFIG_FILE_PYBANK; - if (GNUNET_OK != - TALER_TESTING_prepare_bank (CONFIG_FILE_PYBANK, - GNUNET_YES, - "exchange-account-2", - &bc)) - { - GNUNET_break (0); - return 77; - } - - if (NULL == (bankd = TALER_TESTING_run_bank ( - CONFIG_FILE_PYBANK, - bc.exchange_auth.wire_gateway_url))) - { - GNUNET_break (0); - return 77; - } - } - else if (GNUNET_YES == TALER_TESTING_has_in_name (argv[0], "_with_nexus")) { TALER_LOG_DEBUG ("Running with Nexus.\n"); @@ -263,29 +239,17 @@ main (int argc, else rv = 0; - if (GNUNET_NO == with_fakebank) + if (with_libeufin) { - // -> pybank - if (GNUNET_NO == with_libeufin) - { + GNUNET_OS_process_kill (libeufin_services.nexus, + SIGKILL); + GNUNET_OS_process_wait (libeufin_services.nexus); + GNUNET_OS_process_destroy (libeufin_services.nexus); - GNUNET_OS_process_kill (bankd, - SIGKILL); - GNUNET_OS_process_wait (bankd); - GNUNET_OS_process_destroy (bankd); - } - else // -> libeufin - { - GNUNET_OS_process_kill (libeufin_services.nexus, - SIGKILL); - GNUNET_OS_process_wait (libeufin_services.nexus); - GNUNET_OS_process_destroy (libeufin_services.nexus); - - GNUNET_OS_process_kill (libeufin_services.sandbox, - SIGKILL); - GNUNET_OS_process_wait (libeufin_services.sandbox); - GNUNET_OS_process_destroy (libeufin_services.sandbox); - } + GNUNET_OS_process_kill (libeufin_services.sandbox, + SIGKILL); + GNUNET_OS_process_wait (libeufin_services.sandbox); + GNUNET_OS_process_destroy (libeufin_services.sandbox); } return rv; diff --git a/src/testing/test_bank_api_twisted.c b/src/testing/test_bank_api_twisted.c index 70ad102f4..80629b6f9 100644 --- a/src/testing/test_bank_api_twisted.c +++ b/src/testing/test_bank_api_twisted.c @@ -42,11 +42,6 @@ #define CONFIG_FILE_FAKEBANK "test_bank_api_fakebank_twisted.conf" /** - * Separate config file for running with the pybank. - */ -#define CONFIG_FILE_PYBANK "test_bank_api_pybank_twisted.conf" - -/** * True when the test runs against Fakebank. */ static int with_fakebank; @@ -180,8 +175,7 @@ main (int argc, if (with_fakebank) cfgfilename = CONFIG_FILE_FAKEBANK; else - cfgfilename = CONFIG_FILE_PYBANK; - + GNUNET_assert (0); if (NULL == (twister_url = TALER_TWISTER_prepare_twister ( cfgfilename))) { @@ -212,26 +206,7 @@ main (int argc, } else { - TALER_LOG_DEBUG ("Running against the Pybank.\n"); - if (GNUNET_OK != - TALER_TESTING_prepare_bank (cfgfilename, - GNUNET_YES, - "exchange-account-2", - &bc)) - { - GNUNET_break (0); - GNUNET_free (twister_url); - return 77; - } - - if (NULL == (bankd = TALER_TESTING_run_bank ( - cfgfilename, - bc.exchange_auth.wire_gateway_url))) - { - GNUNET_break (0); - GNUNET_free (twister_url); - return 77; - } + GNUNET_assert (0); } sleep (5); diff --git a/src/testing/testing_api_helpers_bank.c b/src/testing/testing_api_helpers_bank.c index eccd45723..df6d631ed 100644 --- a/src/testing/testing_api_helpers_bank.c +++ b/src/testing/testing_api_helpers_bank.c @@ -582,7 +582,7 @@ TALER_TESTING_prepare_bank (const char *config_filename, bc->user42_payto = "payto://x-taler-bank/localhost/42?receiver-name=42"; bc->user43_payto = "payto://x-taler-bank/localhost/43?receiver-name=43"; GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Using pybank %s on port %u\n", + "Using bank %s on port %u\n", bc->exchange_auth.wire_gateway_url, (unsigned int) port); GNUNET_log (GNUNET_ERROR_TYPE_INFO, |