Don't use the expired certificate the tarball provides for tests

Resolves: #1705700 - lasso FTBFS because an expired certificate is used in the tests
This commit is contained in:
Jakub Hrozek 2019-06-03 13:55:20 +02:00
parent 0337d8ecff
commit f20072a011
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From 690947183fb7621b2f16df493819b771b7b29431 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@redhat.com>
Date: Mon, 3 Jun 2019 13:30:27 +0200
Subject: [PATCH] tests: Remove the use of an expired cert in tests as a
workaround
The test used to verify the signature of the IDP metadata in
test13_test_lasso_server_load_metadata() expired at "Mar 23 09:51:37
2019 GMT"
This patch just removes the certificate usage from
lasso_server_load_metadata() which means we don't validate the metadata,
but we can keep the rest of the test at least.
---
tests/basic_tests.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/basic_tests.c b/tests/basic_tests.c
index c08cab69..212f37ef 100644
--- a/tests/basic_tests.c
+++ b/tests/basic_tests.c
@@ -1983,7 +1983,7 @@ START_TEST(test13_test_lasso_server_load_metadata)
block_lasso_logs;
check_good_rc(lasso_server_load_metadata(server, LASSO_PROVIDER_ROLE_IDP,
TESTSDATADIR "/metadata/renater-metadata.xml",
- TESTSDATADIR "/metadata/metadata-federation-renater.crt",
+ NULL,
&blacklisted_1, &loaded_entity_ids,
LASSO_SERVER_LOAD_METADATA_FLAG_DEFAULT));
unblock_lasso_logs;
--
2.20.1

View File

@ -58,7 +58,7 @@
Summary: Liberty Alliance Single Sign On Summary: Liberty Alliance Single Sign On
Name: lasso Name: lasso
Version: 2.6.0 Version: 2.6.0
Release: 12%{?dist} Release: 13%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://lasso.entrouvert.org/ URL: http://lasso.entrouvert.org/
Source: http://dev.entrouvert.org/lasso/lasso-%{version}.tar.gz Source: http://dev.entrouvert.org/lasso/lasso-%{version}.tar.gz
@ -67,6 +67,7 @@ Patch1: use-specified-python-interpreter.patch
Patch2: build-scripts-py3-compatible.patch Patch2: build-scripts-py3-compatible.patch
Patch3: duplicate-python-LogoutTestCase.patch Patch3: duplicate-python-LogoutTestCase.patch
Patch4: versioned-python-configure.patch Patch4: versioned-python-configure.patch
Patch5: 0005-tests-Remove-the-use-of-an-expired-cert-in-tests-as-.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
@ -317,6 +318,11 @@ rm -fr %{buildroot}%{_defaultdocdir}/%{name}
%endif %endif
%changelog %changelog
* Mon Jun 3 2019 Jakub Hrozek <jhrozek@redhat.com> - 2.6.0-13
- Don't use the expired certificate the tarball provides for tests
- Resolves: #1705700 - lasso FTBFS because an expired certificate is
used in the tests
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.6.0-12 * Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.6.0-12
- Perl 5.30 rebuild - Perl 5.30 rebuild