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

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