Blame SOURCES/0105-curl-7.61.1-test-ports.patch

1a95c1
From e6507a9abbfd4ac93ea3053c8f3385a2405f19d8 Mon Sep 17 00:00:00 2001
1a95c1
From: Kamil Dudka <kdudka@redhat.com>
1a95c1
Date: Fri, 29 Jan 2021 11:34:49 +0100
1a95c1
Subject: [PATCH] tests: do not hard-wire ports of test servers
1a95c1
1a95c1
---
1a95c1
 tests/data/test1448 | 4 ++--
1a95c1
 tests/data/test651  | 2 +-
1a95c1
 tests/data/test653  | 4 ++--
1a95c1
 3 files changed, 5 insertions(+), 5 deletions(-)
1a95c1
1a95c1
diff --git a/tests/data/test1448 b/tests/data/test1448
1a95c1
index e04f47b..5022ef9 100644
1a95c1
--- a/tests/data/test1448
1a95c1
+++ b/tests/data/test1448
1a95c1
@@ -17,7 +17,7 @@ HTTP/1.1 302 OK swsbounce
1a95c1
 Date: Thu, 09 Nov 2010 14:49:00 GMT
1a95c1
 Content-Length: 9
1a95c1
 Content-Type: text/plain
1a95c1
-Location: http://åäö.se:8990/14480001
1a95c1
+Location: http://åäö.se:%HTTPPORT/14480001
1a95c1
 
1a95c1
 redirect
1a95c1
 </data>
1a95c1
@@ -52,7 +52,7 @@ Redirect following to UTF-8 IDN host name
1a95c1
  </name>
1a95c1
 
1a95c1
  <command>
1a95c1
-http://åäö.se:%HTTPPORT/1448 --resolve xn--4cab6c.se:%HTTPPORT:%HOSTIP -L --connect-to %HOSTIP:8990:%HOSTIP:%HTTPPORT
1a95c1
+http://åäö.se:%HTTPPORT/1448 --resolve xn--4cab6c.se:%HTTPPORT:%HOSTIP -L --connect-to %HOSTIP:%HTTPPORT:%HOSTIP:%HTTPPORT
1a95c1
 </command>
1a95c1
 </client>
1a95c1
 
1a95c1
diff --git a/tests/data/test651 b/tests/data/test651
1a95c1
index b00ca5d..8d47c9f 100644
1a95c1
--- a/tests/data/test651
1a95c1
+++ b/tests/data/test651
1a95c1
@@ -57,7 +57,7 @@ s/boundary=------------------------[a-z0-9]*/boundary=--------------------------
1a95c1
 # (5*12) == 60 bytes less
1a95c1
 <protocol>
1a95c1
 POST /651 HTTP/1.1
1a95c1
-Host: 127.0.0.1:8990
1a95c1
+Host: 127.0.0.1:%HTTPPORT
1a95c1
 Accept: */*
1a95c1
 Content-Length: 17139
1a95c1
 Content-Type: multipart/form-data; boundary=----------------------------
1a95c1
diff --git a/tests/data/test653 b/tests/data/test653
1a95c1
index d620b57..492d551 100644
1a95c1
--- a/tests/data/test653
1a95c1
+++ b/tests/data/test653
1a95c1
@@ -67,7 +67,7 @@ s/boundary=------------------------[a-z0-9]*/boundary=--------------------------
1a95c1
 # (5*12) == 60 bytes less
1a95c1
 <protocol>
1a95c1
 POST /653 HTTP/1.1
1a95c1
-Host: 127.0.0.1:8990
1a95c1
+Host: 127.0.0.1:%HTTPPORT
1a95c1
 Accept: */*
1a95c1
 Content-Length: 150
1a95c1
 Content-Type: multipart/form-data; boundary=----------------------------
1a95c1
@@ -78,7 +78,7 @@ Content-Disposition: form-data; name="name"
1a95c1
 short value
1a95c1
 --------------------------------
1a95c1
 POST /653 HTTP/1.1
1a95c1
-Host: 127.0.0.1:8990
1a95c1
+Host: 127.0.0.1:%HTTPPORT
1a95c1
 Accept: */*
1a95c1
 Content-Length: 167
1a95c1
 Content-Type: multipart/form-data; boundary=----------------------------
1a95c1
-- 
1a95c1
2.26.2
1a95c1