gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] 05/05: removing use of bank's admin interf


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 05/05: removing use of bank's admin interface from bank-lib testcases
Date: Wed, 10 May 2017 15:52:36 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository exchange.

commit 6bf006e6364e0f1ae5d3afa079260f851a321a4c
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed May 10 15:23:37 2017 +0200

    removing use of bank's admin interface from bank-lib testcases
---
 src/bank-lib/test_bank_api.c         | 38 ------------------------------------
 src/bank-lib/test_bank_interpreter.c |  2 +-
 2 files changed, 1 insertion(+), 39 deletions(-)

diff --git a/src/bank-lib/test_bank_api.c b/src/bank-lib/test_bank_api.c
index e249102..4a37852 100644
--- a/src/bank-lib/test_bank_api.c
+++ b/src/bank-lib/test_bank_api.c
@@ -111,7 +111,6 @@ main (int argc,
       char * const *argv)
 {
   struct GNUNET_OS_Process *bankd;
-  struct GNUNET_OS_Process *bankd_admin;
   unsigned int cnt;
   int result;
 
@@ -127,21 +126,6 @@ main (int argc,
   GNUNET_log_setup ("test-bank-api",
                     "WARNING",
                     NULL);
-  bankd_admin = GNUNET_OS_start_process (GNUNET_NO,
-                                         GNUNET_OS_INHERIT_STD_ALL,
-                                         NULL, NULL, NULL,
-                                         "taler-bank-manage",
-                                         "taler-bank-manage",
-                                         "--admin",
-                                         "serve-http",
-                                        "--port", "8081",
-                                         NULL);
-  if (NULL == bankd_admin)
-  {
-    fprintf (stderr,
-             "Failed to launch `taler-bank-manage' for admin, skipping 
test\n");
-    return 77; /* report 'skip' */
-  }
   bankd = GNUNET_OS_start_process (GNUNET_NO,
                                    GNUNET_OS_INHERIT_STD_ALL,
                                    NULL, NULL, NULL,
@@ -155,10 +139,6 @@ main (int argc,
   {
     fprintf (stderr,
              "Failed to launch taler-bank-manage, skipping test\n");
-    GNUNET_OS_process_kill (bankd_admin,
-                           SIGTERM);
-    GNUNET_OS_process_wait (bankd_admin);
-    GNUNET_OS_process_destroy (bankd_admin);
     return 77; /* report 'skip' */
   }
   /* give child time to start and bind against the socket */
@@ -175,20 +155,6 @@ main (int argc,
     }
   while (0 != system ("wget -q -t 1 -T 1 http://127.0.0.1:8080/ -o /dev/null 
-O /dev/null"));
 
-  do
-    {
-      fprintf (stderr, ",");
-      sleep (1);
-      cnt++;
-      if (cnt > 30)
-        break;
-      result = system ("wget -q -t 1 -T 1 
http://127.0.0.1:8081/admin/add/incoming -o /dev/null -O /dev/null");
-    }
-  while (! ( (WIFEXITED (result)) &&
-             (8 == WEXITSTATUS (result)) ) );
-  /* Note: we are using "GET", so /admin/add/incoming will yield a 405, which 
causes wget to return
-     a status code of 8. */
-
 
   fprintf (stderr, "\n");
   result = GNUNET_SYSERR;
@@ -200,12 +166,8 @@ main (int argc,
   }
   GNUNET_OS_process_kill (bankd,
                           SIGTERM);
-  GNUNET_OS_process_kill (bankd_admin,
-                          SIGTERM);
   GNUNET_OS_process_wait (bankd);
   GNUNET_OS_process_destroy (bankd);
-  GNUNET_OS_process_wait (bankd_admin);
-  GNUNET_OS_process_destroy (bankd_admin);
   if (cnt > 30)
   {
     fprintf (stderr,
diff --git a/src/bank-lib/test_bank_interpreter.c 
b/src/bank-lib/test_bank_interpreter.c
index 7918169..b1eb477 100644
--- a/src/bank-lib/test_bank_interpreter.c
+++ b/src/bank-lib/test_bank_interpreter.c
@@ -590,7 +590,7 @@ interpreter_run (void *cls)
                                 sizeof (cmd->details.admin_add_incoming.wtid));
     cmd->details.admin_add_incoming.aih
       = TALER_BANK_admin_add_incoming (is->ctx,
-                                       "http://localhost:8081";,
+                                       "http://localhost:8080";,
                                        &auth,
                                        
cmd->details.admin_add_incoming.exchange_base_url,
                                        &cmd->details.admin_add_incoming.wtid,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]