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

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