diff --git a/fix-tests-for-tornado-6.5.patch b/fix-tests-for-tornado-6.5.patch new file mode 100644 index 0000000000000000000000000000000000000000..4c2a1df6214b770f90dd6f2f2f025474619ed98c --- /dev/null +++ b/fix-tests-for-tornado-6.5.patch @@ -0,0 +1,25 @@ +From 330a7cd9f57109440f4bb7593a7738274a8aa5f5 Mon Sep 17 00:00:00 2001 +From: Miroslav Lisik +Date: Fri, 16 May 2025 13:30:04 +0200 +Subject: [PATCH] fix tests for tornado-6.5 + +* since tornado-6.5, the host value for HTTPServerRequest should come + from http header 'Host' +* https://www.tornadoweb.org/en/stable/releases/v6.5.0.html#tornado-httputil +* https://github.com/tornadoweb/tornado/commit/4ce700affdd23631a0514d1a0460c0854b0687fe +--- + pcs_test/tier0/daemon/test_ruby_pcsd.py | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/pcs_test/tier0/daemon/test_ruby_pcsd.py b/pcs_test/tier0/daemon/test_ruby_pcsd.py +index 604a33d85..a8559cd55 100644 +--- a/pcs_test/tier0/daemon/test_ruby_pcsd.py ++++ b/pcs_test/tier0/daemon/test_ruby_pcsd.py +@@ -37,7 +37,6 @@ def create_http_request(): + uri="/pcsd/uri", + headers=HTTPHeaders({"Cookie": "cookie1=first;cookie2=second"}), + body=str.encode(urlencode({"post-key": "post-value"})), +- host="pcsd-host:2224", + ) + + diff --git a/pcs.spec b/pcs.spec index 07c4225ef2ce880f43e70db69938442cae620942..95d06c11eb6505a087063688c6e8b6ba4c9d23a1 100644 --- a/pcs.spec +++ b/pcs.spec @@ -1,6 +1,6 @@ Name: pcs Version: 0.11.7 -Release: 15 +Release: 16 License: GPL-2.0-only AND Apache-2.0 AND MIT AND BSD-3-Clause AND (BSD-2-Clause OR Ruby) AND (BSD-2-Clause OR GPL-2.0-or-later) URL: https://github.com/ClusterLabs/pcs Group: System Environment/Base @@ -52,6 +52,9 @@ Patch12: backport-fix-booth-destroy-for-arbitrators.patch # ui patches: >200 # Patch201: bzNUMBER-01-name.patch +# fix tests for tornado-6.5 +Patch13: fix-tests-for-tornado-6.5.patch + BuildRequires: make # printf from coreutils is used in makefile, head is used in spec BuildRequires: coreutils @@ -409,6 +412,9 @@ run_all_tests %license pyagentx_LICENSE.txt %changelog +* Wed May 21 2025 fengxueyan - 0.11.7-16 +- fix tests for tornado-6.5 + * Mon Sep 02 2024 zouzhimin - 0.11.7-15 - fix booth destroy for arbitrators