This patch fixes the assertions in negative test cases of
'test_forced_client_reenrollment' CI test suite.
On ipa-4-2 it fixes https://fedorahosted.org/freeipa/ticket/5511 and
makes all 8 tests in this suite green, shiny and happy again.
It also fixes negative test cases on master branch, but the positive
cases are broken there due to https://fedorahosted.org/freeipa/ticket/5528
--
Martin^3 Babinsky
From eb152f6996a8b653d8676ade826e806898fdf556 Mon Sep 17 00:00:00 2001
From: Martin Babinsky <mbabi...@redhat.com>
Date: Tue, 8 Dec 2015 17:00:11 +0100
Subject: [PATCH] fix error message assertion in negative forced client
reenrollment tests
https://fedorahosted.org/freeipa/ticket/5511
---
ipatests/test_integration/test_forced_client_reenrollment.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ipatests/test_integration/test_forced_client_reenrollment.py b/ipatests/test_integration/test_forced_client_reenrollment.py
index e1edff9b7f2d535a341d1e8ca55917012943818e..df0e90526c5c8dd78d3af9d7ddb7c9bdbf5a2268 100644
--- a/ipatests/test_integration/test_forced_client_reenrollment.py
+++ b/ipatests/test_integration/test_forced_client_reenrollment.py
@@ -198,7 +198,7 @@ class TestForcedClientReenrollment(IntegrationTest):
assert 'IPA Server: %s' % server.hostname in result.stderr_text
if expect_fail:
- err_msg = 'Kerberos authentication failed using keytab'
+ err_msg = "Kerberos authentication failed: "
assert result.returncode == 1
assert err_msg in result.stderr_text
elif force_join and keytab:
--
2.5.0
--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code