From 2b171d273f3dd7b4b059d15facb0ac86fb07ca9f Mon Sep 17 00:00:00 2001 From: Adam Misnyovszki Date: Fri, 4 Apr 2014 10:41:51 +0200 Subject: CA-less tests generate failure CA-less test suite always generate failures when installing revoked certificates. This is a known issue, described in https://fedorahosted.org/freeipa/ticket/4270 , this fix skips these tests, outputting a warning for the later ticket. https://fedorahosted.org/freeipa/ticket/4271 Reviewed-By: Martin Kosek --- ipatests/test_integration/test_caless.py | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'ipatests/test_integration') diff --git a/ipatests/test_integration/test_caless.py b/ipatests/test_integration/test_caless.py index 87c523a43..d20a8511c 100644 --- a/ipatests/test_integration/test_caless.py +++ b/ipatests/test_integration/test_caless.py @@ -23,6 +23,7 @@ import shutil import base64 import glob import contextlib +import nose from ipalib import x509 from ipapython import ipautil @@ -557,6 +558,12 @@ class TestServerInstall(CALessBase): result = self.install_server(http_pkcs12='http.p12', dirsrv_pkcs12='dirsrv.p12') + + if result.returncode == 0: + raise nose.SkipTest( + "Known CA-less installation defect, see " + + "https://fedorahosted.org/freeipa/ticket/4270") + assert result.returncode > 0 def test_revoked_ds(self): @@ -569,6 +576,12 @@ class TestServerInstall(CALessBase): result = self.install_server(http_pkcs12='http.p12', dirsrv_pkcs12='dirsrv.p12') + + if result.returncode == 0: + raise nose.SkipTest( + "Known CA-less installation defect, see " + + "https://fedorahosted.org/freeipa/ticket/4270") + assert result.returncode > 0 def test_http_intermediate_ca(self): @@ -917,6 +930,12 @@ class TestReplicaInstall(CALessBase): result = self.prepare_replica(http_pkcs12='http.p12', dirsrv_pkcs12='dirsrv.p12') + + if result.returncode == 0: + raise nose.SkipTest( + "Known CA-less installation defect, see " + + "https://fedorahosted.org/freeipa/ticket/4270") + assert result.returncode > 0 def test_revoked_ds(self): @@ -927,6 +946,12 @@ class TestReplicaInstall(CALessBase): result = self.prepare_replica(http_pkcs12='http.p12', dirsrv_pkcs12='dirsrv.p12') + + if result.returncode == 0: + raise nose.SkipTest( + "Known CA-less installation defect, see " + + "https://fedorahosted.org/freeipa/ticket/4270") + assert result.returncode > 0 def test_http_intermediate_ca(self): @@ -1336,12 +1361,24 @@ class TestCertinstall(CALessBase): "Install new revoked HTTP certificate" result = self.certinstall('w', 'ca1/server-revoked') + + if result.returncode == 0: + raise nose.SkipTest( + "Known CA-less installation defect, see " + + "https://fedorahosted.org/freeipa/ticket/4270") + assert result.returncode > 0 def test_revoked_ds(self): "Install new revoked DS certificate" result = self.certinstall('d', 'ca1/server-revoked') + + if result.returncode == 0: + raise nose.SkipTest( + "Known CA-less installation defect, see " + + "https://fedorahosted.org/freeipa/ticket/4270") + assert result.returncode > 0 def test_http_intermediate_ca(self): -- cgit