gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: fix test: use valid base32-enco


From: gnunet
Subject: [taler-anastasis] branch master updated: fix test: use valid base32-encoded challenges
Date: Sat, 10 Apr 2021 16:35:04 +0200

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

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new ca29708  fix test: use valid base32-encoded challenges
ca29708 is described below

commit ca297086a7d59f9259b63bf0e6b95113cc931224
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Apr 10 16:35:02 2021 +0200

    fix test: use valid base32-encoded challenges
---
 src/cli/test_anastasis_reducer_add_authentication.sh | 6 +++---
 src/reducer/anastasis_api_backup_redux.c             | 4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/cli/test_anastasis_reducer_add_authentication.sh 
b/src/cli/test_anastasis_reducer_add_authentication.sh
index 9c97983..2dee364 100755
--- a/src/cli/test_anastasis_reducer_add_authentication.sh
+++ b/src/cli/test_anastasis_reducer_add_authentication.sh
@@ -47,7 +47,7 @@ anastasis-reducer -a \
   '{"authentication_method": {
     "type": "question",
     "instructions": "Whats your name?",
-    "challenge": "Hans"
+    "challenge": "91GPWWR"
     } }' \
   add_authentication resources/03-backup.json $TFILE
 
@@ -69,7 +69,7 @@ anastasis-reducer -a \
   '{"authentication_method": {
     "type": "question",
     "instructions": "How old are you?",
-    "challenge": "123"
+    "challenge": "64S36"
     }}' \
   add_authentication $TFILE $SFILE
 
@@ -92,7 +92,7 @@ anastasis-reducer -a \
   '{"authentication_method": {
     "type": "question",
     "instructions": "Where do you live?",
-    "challenge": "Mars"
+    "challenge": "9NGQ4WR"
     }}' \
   add_authentication $SFILE $TFILE
 
diff --git a/src/reducer/anastasis_api_backup_redux.c 
b/src/reducer/anastasis_api_backup_redux.c
index d771cd4..cf78978 100644
--- a/src/reducer/anastasis_api_backup_redux.c
+++ b/src/reducer/anastasis_api_backup_redux.c
@@ -155,6 +155,7 @@ add_authentication (json_t *state,
                                     "authentication_providers");
   if (NULL == auth_providers)
   {
+    GNUNET_break (0);
     ANASTASIS_redux_fail_ (cb,
                            cb_cls,
                            TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,
@@ -166,6 +167,7 @@ add_authentication (json_t *state,
                             "authentication_method");
   if (NULL == method)
   {
+    GNUNET_break (0);
     ANASTASIS_redux_fail_ (cb,
                            cb_cls,
                            TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID,
@@ -177,6 +179,7 @@ add_authentication (json_t *state,
                          spec,
                          NULL, NULL))
   {
+    GNUNET_break (0);
     ANASTASIS_redux_fail_ (cb,
                            cb_cls,
                            TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID,
@@ -277,6 +280,7 @@ add_authentication (json_t *state,
     }
     if (! json_is_array (auth_method_arr))
     {
+      GNUNET_break (0);
       ANASTASIS_redux_fail_ (cb,
                              cb_cls,
                              TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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