Following the instructions at https://www.freeipa.org/page/Testing#Run_the_tests to run an individual xmlrpc test it fails due to lack of rpc connection.
$ ./make-test ipatests/test_xmlrpc/test_user_plugin.py +++ dirname ./make-test ++ cd . ++ pwd + SCRIPTDIR=/home/rcrit/redhat/freeipa + PYTHONPATH=/home/rcrit/redhat/freeipa: + py.test-3 --confcutdir=/home/rcrit/redhat/freeipa ipatests/test_xmlrpc/test_user_plugin.py ============================= test session starts ============================== platform linux -- Python 3.7.6, pytest-3.10.1, py-1.7.0, pluggy-0.8.1 rootdir: /home/rcrit/redhat/freeipa/ipatests, inifile: plugins: sourceorder-0.5, multihost-3.0 collected 0 items / 2 errors ==================================== ERRORS ==================================== _______________ ERROR collecting test_xmlrpc/test_user_plugin.py _______________ ipatests/test_xmlrpc/test_user_plugin.py:39: in <module> from ipatests.test_xmlrpc.xmlrpc_test import ( ipatests/test_xmlrpc/xmlrpc_test.py:151: in <module> adtrust_is_enabled = api.Command['adtrust_is_enabled']()['result'] ipalib/frontend.py:450: in __call__ return self.__do_call(*args, **options) ipalib/frontend.py:478: in __do_call ret = self.run(*args, **options) ipalib/frontend.py:801: in run return self.forward(*args, **options) ipalib/frontend.py:824: in forward *args, **kw) ipalib/rpc.py:1139: in forward command = getattr(self.conn, name) ipalib/backend.py:108: in __get_conn threading.currentThread().getName() E AttributeError: rpcclient is not connected (rpcclient_139858673356112 in MainThread) _______________ ERROR collecting test_xmlrpc/test_user_plugin.py _______________ ipatests/test_xmlrpc/test_user_plugin.py:39: in <module> from ipatests.test_xmlrpc.xmlrpc_test import ( ipatests/test_xmlrpc/xmlrpc_test.py:151: in <module> adtrust_is_enabled = api.Command['adtrust_is_enabled']()['result'] ipalib/frontend.py:450: in __call__ return self.__do_call(*args, **options) ipalib/frontend.py:478: in __do_call ret = self.run(*args, **options) ipalib/frontend.py:801: in run return self.forward(*args, **options) ipalib/frontend.py:824: in forward *args, **kw) ipalib/rpc.py:1139: in forward command = getattr(self.conn, name) ipalib/backend.py:108: in __get_conn threading.currentThread().getName() E AttributeError: rpcclient is not connected (rpcclient_139858673356112 in MainThread) !!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!! =========================== 2 error in 0.28 seconds ============================
master branch at 916120eda3664f811c8af179bf282525ab683a8c
Note that commenting out these api.Command calls resolves the problem:
diff --git a/ipatests/test_xmlrpc/xmlrpc_test.py b/ipatests/test_xmlrpc/xmlrp c_test.py index de2357237..d570cd669 100644 --- a/ipatests/test_xmlrpc/xmlrpc_test.py +++ b/ipatests/test_xmlrpc/xmlrpc_test.py @@ -148,8 +148,8 @@ except IOError: except errors.NotFound: server_available = True -adtrust_is_enabled = api.Command['adtrust_is_enabled']()['result'] -sidgen_was_run = api.Command['sidgen_was_run']()['result'] +#adtrust_is_enabled = api.Command['adtrust_is_enabled']()['result'] +#sidgen_was_run = api.Command['sidgen_was_run']()['result']
I think this was a local configuration issue. I often test with lite-server and it can generate confusing results if things aren't setup correctly.
Marking as invalid.
Metadata Update from @rcritten: - Issue close_status updated to: invalid - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.