gnunet-svn
[Top][All Lists]
Advanced

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

[taler-challenger] branch master updated: explicitly request html in tes


From: gnunet
Subject: [taler-challenger] branch master updated: explicitly request html in test
Date: Sun, 12 Jan 2025 10:32:12 +0100

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

grothoff pushed a commit to branch master
in repository challenger.

The following commit(s) were added to refs/heads/master by this push:
     new 477be7d  explicitly request html in test
477be7d is described below

commit 477be7d5285342fcf86e8fa94c836b3ce300cb63
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jan 12 10:32:09 2025 +0100

    explicitly request html in test
---
 src/challenger/test-challenger-pkce.sh | 1 +
 src/challenger/test-challenger.sh      | 7 ++-----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/challenger/test-challenger-pkce.sh 
b/src/challenger/test-challenger-pkce.sh
index a0d4a66..6dd9d53 100755
--- a/src/challenger/test-challenger-pkce.sh
+++ b/src/challenger/test-challenger-pkce.sh
@@ -139,6 +139,7 @@ PIN=$(cat ${FILENAME} | awk '{print $2}')
 echo -n "Initiating PIN ${PIN} submission..."
 RESULT=$(curl "${BURL}/solve/${NONCE}" \
     -X POST \
+    -H "Accept: text/html" \
     --data-urlencode "pin=${PIN}" \
     -w "%{http_code} %{redirect_url}" -s -o $LAST_RESPONSE)
 STATUS=$(echo "$RESULT" | awk '{print $1}')
diff --git a/src/challenger/test-challenger.sh 
b/src/challenger/test-challenger.sh
index 45e8800..db0df49 100755
--- a/src/challenger/test-challenger.sh
+++ b/src/challenger/test-challenger.sh
@@ -133,6 +133,7 @@ PIN=$(cat ${FILENAME} | awk '{print $2}')
 echo -n "Initiating PIN ${PIN} submission..."
 RESULT=$(curl "${BURL}/solve/${NONCE}" \
     -X POST \
+    -H "Accept: text/html" \
     --data-urlencode "pin=${PIN}" \
     -w "%{http_code} %{redirect_url}" -s -o $LAST_RESPONSE)
 STATUS=$(echo "$RESULT" | awk '{print $1}')
@@ -140,10 +141,6 @@ TARGET=$(echo "$RESULT" | awk '{print $2}')
 
 if [ "$STATUS" != "302" ]
 then
-    curl -v "${BURL}/solve/${NONCE}" \
-      -X POST \
-      --data-urlencode "pin=${PIN}"
-    cat httpd.log
     exit_fail "Expected 302. Got: $STATUS" $(cat $LAST_RESPONSE)
 fi
 
@@ -193,7 +190,7 @@ then
     exit_fail "Expected 200 OK. Got: $STATUS" $(cat $LAST_RESPONSE)
 fi
 
-cat $LAST_RESPONSE | jq
+# cat $LAST_RESPONSE | jq
 
 TADDRESS=$(cat "$LAST_RESPONSE" | jq -r .address.filename)
 TADDRESS_TYPE=$(cat "$LAST_RESPONSE" | jq -r .address_type)

-- 
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]