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

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

This is GnuTLS

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

Connected as user 'jsmith'.

b35f73
-

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

b35f73
-

Your HTTP header was:

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

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

Session ID:.*//

b35f73
+s/^

Connected as user 'jsmith'.*/FINE/

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