[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: nexus test: create the admin use
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: nexus test: create the admin user |
Date: |
Wed, 27 May 2020 15:04:04 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 58a956d8 nexus test: create the admin user
58a956d8 is described below
commit 58a956d889d57b20cd0113bd407e4e68973ef6b3
Author: MS <address@hidden>
AuthorDate: Wed May 27 15:03:19 2020 +0200
nexus test: create the admin user
---
src/testing/testing_api_helpers_bank.c | 34 ++++------------------------------
1 file changed, 4 insertions(+), 30 deletions(-)
diff --git a/src/testing/testing_api_helpers_bank.c
b/src/testing/testing_api_helpers_bank.c
index e6f99f1a..b0d736fe 100644
--- a/src/testing/testing_api_helpers_bank.c
+++ b/src/testing/testing_api_helpers_bank.c
@@ -116,9 +116,10 @@ TALER_TESTING_run_nexus (const struct
TALER_TESTING_BankConfiguration *bc)
struct GNUNET_OS_Process *bank_proc;
unsigned int iter;
char *curl_check_cmd;
- char *curl_cmd;
- char *post_body;
- char *register_url;
+
+ /* make the 'admin' user at nexus; note: this is the user
+ under which the exchange will request the services. */
+ system ("nexus superuser admin --password x");
bank_proc = GNUNET_OS_start_process
(GNUNET_NO,
@@ -160,35 +161,8 @@ TALER_TESTING_run_nexus (const struct
TALER_TESTING_BankConfiguration *bc)
}
while (0 != system (curl_check_cmd));
- GNUNET_asprintf (&post_body,
- "{ \
- \"ebicsURL\": \"http://mock\", \
- \"userID\": \"mock\", \
- \"partnerID\": \"mock\", \
- \"hostID\": \"mock\", \
- \"password\": \"%s\"}",
- bc->exchange_auth.details.basic.password);
- GNUNET_asprintf (®ister_url,
- "http://localhost:5001/ebics/%s/subscribers",
- bc->exchange_auth.details.basic.username);
- GNUNET_asprintf (&curl_cmd,
- "curl -d'%s' -H'Content-Type: application/json' %s",
- post_body,
- register_url);
-
- if (0 != system (curl_cmd))
- {
- GNUNET_free (curl_check_cmd);
- GNUNET_free (curl_cmd);
- GNUNET_free (post_body);
- GNUNET_free (register_url);
- BANK_FAIL (); // includes logging and return (!)
- }
GNUNET_free (curl_check_cmd);
- GNUNET_free (curl_cmd);
- GNUNET_free (post_body);
- GNUNET_free (register_url);
fprintf (stderr, "\n");
return bank_proc;
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: nexus test: create the admin user,
gnunet <=