summaryrefslogtreecommitdiff
path: root/src/bank-lib/test_bank_api_twisted.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-03-03 01:05:12 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-03-17 02:05:47 +0100
commitc4770643e319a140876251b5a31ae6eee3d1868d (patch)
tree8c4dedf1f280069cdf3f54bcfa2d54d0961d472a /src/bank-lib/test_bank_api_twisted.c
parent53cf576e62b016a96084cab4bca6dd3e78dda1e1 (diff)
downloadexchange-c4770643e319a140876251b5a31ae6eee3d1868d.tar.gz
exchange-c4770643e319a140876251b5a31ae6eee3d1868d.tar.bz2
exchange-c4770643e319a140876251b5a31ae6eee3d1868d.zip
bank-lib twisted tests scaffold done.
Diffstat (limited to 'src/bank-lib/test_bank_api_twisted.c')
-rw-r--r--src/bank-lib/test_bank_api_twisted.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/bank-lib/test_bank_api_twisted.c b/src/bank-lib/test_bank_api_twisted.c
index 717f3d4a9..2561a7447 100644
--- a/src/bank-lib/test_bank_api_twisted.c
+++ b/src/bank-lib/test_bank_api_twisted.c
@@ -36,13 +36,14 @@
#include <taler/taler_fakebank_lib.h>
#include <taler/taler_testing_lib.h>
#include <taler/taler_twister_testing_lib.h>
+#include <taler/taler_testing_bank_lib.h>
#include <taler/taler_twister_service.h>
/**
* Configuration file we use. One (big) configuration is used
* for the various components for this test.
*/
-#define CONFIG_FILE "test_bank_api_twisted.conf"
+#define CONFIG_FILE "bank_twisted.conf"
/**
* (real) Twister URL. Used at startup time to check if it runs.
@@ -50,11 +51,22 @@
static char *twister_url;
/**
+ * URL of the twister where all the connections to the
+ * bank that have to be proxied should be addressed to.
+ */
+#define TWISTED_BANK_URL twister_url
+
+/**
* URL of the bank.
*/
static char *bank_url;
/**
+ * Bank process.
+ */
+static struct GNUNET_OS_Process *bankd;
+
+/**
* Twister process.
*/
static struct GNUNET_OS_Process *twisterd;
@@ -79,7 +91,7 @@ run (void *cls,
TALER_TESTING_cmd_end ()
};
- TALER_TESTING_run_with_fakebank (is, commands);
+ TALER_TESTING_run (is, commands);
}
/**
@@ -115,7 +127,7 @@ main (int argc,
if (NULL == (twister_url = TALER_TESTING_prepare_twister
(CONFIG_FILE)))
return 77;
-
+
if (NULL == (twisterd = TALER_TESTING_run_twister (CONFIG_FILE)))
return 77;