https://fedorahosted.org/freeipa/ticket/5688
-- Martin^3 Babinsky
From bd93563703f9638cb720041eb6b6b1740bf7cd25 Mon Sep 17 00:00:00 2001 From: Martin Babinsky <mbabi...@redhat.com> Date: Tue, 8 Mar 2016 16:56:38 +0100 Subject: [PATCH] test_cert_plugin: use only first part of the hostname to construct short name The short hostname construction for the negative test case in test_cert_plugin::test_cert_find suite could not work when domain name was different as hostname of the test runner, leading to test failure. A more naive approach works better in this case. https://fedorahosted.org/freeipa/ticket/5688 --- ipatests/test_xmlrpc/test_cert_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipatests/test_xmlrpc/test_cert_plugin.py b/ipatests/test_xmlrpc/test_cert_plugin.py index ba8dd4636648a0d95da4c2564166b94dbe2bcd32..1276e9cf9de3ea3a57f49043fdb3a8f74adc138e 100644 --- a/ipatests/test_xmlrpc/test_cert_plugin.py +++ b/ipatests/test_xmlrpc/test_cert_plugin.py @@ -224,7 +224,7 @@ class test_cert_find(XMLRPC_test): """ Test the `cert-find` command. """ - short = api.env.host.replace('.' + api.env.domain, '') + short = api.env.host.split('.')[0] def test_0001_find_all(self): """ -- 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