gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-twister] branch master updated: Resolve #5726


From: gnunet
Subject: [GNUnet-SVN] [taler-twister] branch master updated: Resolve #5726
Date: Mon, 20 May 2019 18:43:07 +0200

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

marcello pushed a commit to branch master
in repository twister.

The following commit(s) were added to refs/heads/master by this push:
     new 7d9642f  Resolve #5726
7d9642f is described below

commit 7d9642f7995d8e2d1f0fb08eeb235e4b6139da46
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon May 20 18:42:59 2019 +0200

    Resolve #5726
---
 src/test/body.json         |   1 +
 src/test/body.json.deflate | Bin 0 -> 19 bytes
 src/test/test_twister.sh   |  11 ++++++++---
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/test/body.json b/src/test/body.json
new file mode 100644
index 0000000..c7cd8f0
--- /dev/null
+++ b/src/test/body.json
@@ -0,0 +1 @@
+{"bo":"dy"}
\ No newline at end of file
diff --git a/src/test/body.json.deflate b/src/test/body.json.deflate
new file mode 100644
index 0000000..ef6d0e9
Binary files /dev/null and b/src/test/body.json.deflate differ
diff --git a/src/test/test_twister.sh b/src/test/test_twister.sh
index 65d4600..14b15ca 100755
--- a/src/test/test_twister.sh
+++ b/src/test/test_twister.sh
@@ -145,12 +145,17 @@ if ! test '{"hello":"world"}' = $cum_mods; then
 fi
 
 # check if Twister does compression.
-status_code=$(curl -s "${TWISTER_URL}deflate-test" \
-  --compressed -o /dev/null -w "%{http_code}")
+status_code=$(curl \
+  -s "${TWISTER_URL}deflate-test" \
+  -o /dev/null \
+  -H "Content-Encoding: deflate" \
+  -H "Content-Type: application/json" \
+  --data-binary @body.json.deflate \
+  -w "%{http_code}")
 
 # check status code is okay.
 if ! test 200 = $status_code; then
-  echo "Compression failed."
+  echo "Compression failed (status == ${status_code})."
   kill $web_server_pid
   kill $twister_service_pid
   exit 1

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



reply via email to

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