gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] 01/04: fix bank-lib test.


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 01/04: fix bank-lib test.
Date: Wed, 11 Sep 2019 00:52:00 +0200

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

marcello pushed a commit to branch master
in repository exchange.

commit ef98a68ffaa9117aac8b12ef3663e284a01217b8
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Sep 11 00:08:07 2019 +0200

    fix bank-lib test.
---
 src/bank-lib/test_bank_api_NEW.c     | 25 +++----------------------
 src/include/taler_testing_bank_lib.h |  4 ++--
 2 files changed, 5 insertions(+), 24 deletions(-)

diff --git a/src/bank-lib/test_bank_api_NEW.c b/src/bank-lib/test_bank_api_NEW.c
index a2f77623..5c7920b7 100644
--- a/src/bank-lib/test_bank_api_NEW.c
+++ b/src/bank-lib/test_bank_api_NEW.c
@@ -81,7 +81,6 @@ run (void *cls,
                                     NULL,
                                     1),
 
-
     /* WARNING: old API has expected http response code among
      * the parameters, although it was always set as '200 OK' */
     TALER_TESTING_cmd_fakebank_transfer_with_subject
@@ -149,20 +148,9 @@ run (void *cls,
                                     "debit-1",
                                     5),
 
-    TALER_TESTING_cmd_check_bank_transfer_with_ref ("expect-2d",
-                                                    "credit-2"),
-
-    TALER_TESTING_cmd_check_bank_transfer_with_ref ("expect-2c",
-                                                    "debit-2"),
-
-    TALER_TESTING_cmd_check_bank_transfer_with_ref ("expect-1",
-                                                    "debit-1"),
-
-    TALER_TESTING_cmd_check_bank_empty ("expect-empty"),
-
     TALER_TESTING_cmd_fakebank_transfer_with_subject
       ("credit-for-reject-1",
-       "KUDOS:5.01",
+       "KUDOS:1.01",
        bank_url,
        BANK_ACCOUNT_NUMBER,
        EXCHANGE_ACCOUNT_NUMBER,
@@ -192,12 +180,6 @@ run (void *cls,
                                     NULL,
                                     5),
 
-    TALER_TESTING_cmd_check_bank_transfer_with_ref
-      ("expect-credit-reject-1",
-       "credit-for-reject-1"),
-
-    TALER_TESTING_cmd_check_bank_empty ("expect-empty-2"),
-
     /**
      * End the suite.  Fixme: better to have a label for this
      * too, as it shows a "(null)" token on logs.
@@ -219,17 +201,15 @@ main (int argc,
       char *const *argv)
 {
   int rv;
-
   /* These environment variables get in the way... */
   unsetenv ("XDG_DATA_HOME");
   unsetenv ("XDG_CONFIG_HOME");
-  GNUNET_log_setup ("test-bank-api-with-fakebank-new",
+  GNUNET_log_setup ("test-bank-api-with-(fake)bank-new",
                     "DEBUG",
                     NULL);
 
   WITH_FAKEBANK = TALER_TESTING_has_in_name (argv[0],
                                              "_with_fakebank");
-
   if (GNUNET_YES == WITH_FAKEBANK)
   {
     TALER_LOG_DEBUG ("Running against the Fakebank.\n");
@@ -243,6 +223,7 @@ main (int argc,
   }
   else
   {
+    TALER_LOG_DEBUG ("Running against the Pybank.\n");
     if (NULL == (bank_url = TALER_TESTING_prepare_bank
         (CONFIG_FILE)))
     {
diff --git a/src/include/taler_testing_bank_lib.h 
b/src/include/taler_testing_bank_lib.h
index 72176d44..535fd2e9 100644
--- a/src/include/taler_testing_bank_lib.h
+++ b/src/include/taler_testing_bank_lib.h
@@ -42,8 +42,8 @@
 #define EXCHANGE_USERNAME "Exchange"
 #define EXCHANGE_PASSWORD "x"
 #define USER_ACCOUNT_NUMBER 3
-#define USER_USERNAME "user3"
-#define USER_PASSWORD "pass3"
+#define USER_USERNAME "Tor"
+#define USER_PASSWORD "x"
 
 
 /* ********************* Helper functions ********************* */

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



reply via email to

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