Blame SOURCES/0001-curl-7.61.1-test320-gnutls.patch

b91d92
From 3cd5b375e31fb98e4782dc3a77e7316ad9eb26cf Mon Sep 17 00:00:00 2001
b91d92
From: Daniel Stenberg <daniel@haxx.se>
b91d92
Date: Thu, 4 Oct 2018 15:34:13 +0200
b91d92
Subject: [PATCH] test320: strip out more HTML when comparing
b91d92
b91d92
To make the test case work with different gnutls-serv versions better.
b91d92
b91d92
Reported-by: Kamil Dudka
b91d92
Fixes #3093
b91d92
Closes #3094
b91d92
b91d92
Upstream-commit: 94ad57b0246b5658c2a9139dbe6a80efa4c4e2f3
b91d92
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
b91d92
---
b91d92
 tests/data/test320 | 24 ++++--------------------
b91d92
 1 file changed, 4 insertions(+), 20 deletions(-)
b91d92
b91d92
diff --git a/tests/data/test320 b/tests/data/test320
b91d92
index 457a11eb2..87311d4f2 100644
b91d92
--- a/tests/data/test320
b91d92
+++ b/tests/data/test320
b91d92
@@ -62,34 +62,18 @@ simple TLS-SRP HTTPS GET, check user in response
b91d92
 HTTP/1.0 200 OK
b91d92
 Content-type: text/html
b91d92
 
b91d92
-
b91d92
-<HTML><BODY>
b91d92
-<CENTER>

This is GnuTLS

</CENTER>
b91d92
-
b91d92
-
b91d92
-
b91d92
-
If your browser supports session resuming, then you should see the same session ID, when you press the reload button.
b91d92
-

Connected as user 'jsmith'.

b91d92
-

b91d92
-
b91d92
-Key Exchange:SRP
b91d92
-CompressionNULL
b91d92
-CipherAES-NNN-CBC
b91d92
-MACSHA1
b91d92
-CiphersuiteSRP_SHA_AES_NNN_CBC_SHA1

b91d92
-

Your HTTP header was:

Host: %HOSTIP:%HTTPTLSPORT
b91d92
+FINE
b91d92
 User-Agent: curl-test-suite
b91d92
 Accept: */*
b91d92
 
b91d92
-

b91d92
-</BODY></HTML>
b91d92
-
b91d92
 </file>
b91d92
 <stripfile>
b91d92
-s/^

Session ID:.*//

b91d92
+s/^

Connected as user 'jsmith'.*/FINE/

b91d92
 s/Protocol version:.*[0-9]//
b91d92
 s/GNUTLS/GnuTLS/
b91d92
 s/(AES[-_])\d\d\d([-_]CBC)/$1NNN$2/
b91d92
+s/^<.*\n//
b91d92
+s/^\n//
b91d92
 </stripfile>
b91d92
 </verify>
b91d92
 
b91d92
-- 
b91d92
2.17.1
b91d92