#6192 Regression found by test: ipa.test_ipalib.test_rpc.test_xmlclient.test_forward
Closed: Fixed None Opened 7 years ago by mbasti.

ipa.test_ipalib.test_rpc.test_xmlclient.test_forward:

    def test_forward(self):
        """
            Test the `ipalib.rpc.xmlclient.forward` method.
            """
        class user_add(Command):
            pass

        # Test that ValueError is raised when forwarding a command that is not
        # in api.Command:
        (o, api, home) = self.instance('Backend', in_server=False)
>       e = raises(ValueError, o.forward, 'user_add')

ipatests/test_ipalib/test_rpc.py:215: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
ipatests/util.py:379: in raises
    callback(*args, **kw)
ipalib/rpc.py:983: in forward
    command = getattr(self.conn, name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = ipalib.rpc.xmlclient()

    def __get_conn(self):
        """
            Return thread-local connection.
            """
        if not hasattr(context, self.id):
            raise AttributeError(
                "{0} is not connected ({1} in {2})".format(
                    self.name,
                    self.id,
>                   threading.currentThread().getName()
                )
            )
E           AttributeError: xmlclient is not connected (xmlclient_140017685402960 in MainThread)

fixed in bunch
master:

  • 3c32af5 Tests: Failing test_ipalib/test_rpc
  • 774e4e4 Tests: Failing test_ipaserver/test_ldap test
  • ec0a58e Tests: Failing tests in test_ipalib/test_plugable

Metadata Update from @mbasti:
- Issue assigned to lryznaro
- Issue set to the milestone: FreeIPA 4.4.1

6 years ago

Login to comment on this ticket.

Metadata