Failed
OmeroPy.test.integration.gatewaytest.test_connection.TestConnectionMethods.testHost (from pytest)
Error Message
Exception: hosts localhost and myserver.com do not match
Stacktrace
self = <test.integration.gatewaytest.test_connection.TestConnectionMethods object at 0x7fe603641850> gatewaywrapper = <omero.gateway.pytest_fixtures.GatewayWrapper object at 0x7fe595dce730> def testHost(self, gatewaywrapper): gatewaywrapper.loginAsUser() client = gatewaywrapper.gateway pytest.raises(Exception, > BlitzGateway(client_obj=client, host="myserver.com")) test/integration/gatewaytest/test_connection.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <omero.gateway._BlitzGateway object at 0x7fe4c861caf0>, username = None passwd = None client_obj = <omero.gateway._BlitzGateway object at 0x7fe5b3cdba60> group = None, clone = False, try_super = False, host = 'myserver.com' port = None, extra_config = [], secure = False, anonymous = True useragent = None, userip = None def __init__(self, username=None, passwd=None, client_obj=None, group=None, clone=False, try_super=False, host=None, port=None, extra_config=None, secure=False, anonymous=True, useragent=None, userip=None): """ Create the connection wrapper. Does not attempt to connect at this stage Initialises the omero.client :param username: User name. :type username: String :param passwd: Password. :type passwd: String :param client_obj: omero.client :param group: name of group to try to connect to :type group: String :param clone: If True, overwrite anonymous with False :type clone: Boolean :param try_super: Try to log on as super user ('system' group) :type try_super: Boolean :param host: Omero server host. :type host: String :param port: Omero server port. :type port: Integer :param extra_config: Dictionary of extra configuration :type extra_config: Dict :param secure: Initial underlying omero.client connection type (True=SSL/False=insecure) :type secure: Boolean :param anonymous: :type anonymous: Boolean :param useragent: Log which python clients use this connection. E.g. 'OMERO.webadmin' :param userip: Log client ip. :type useragent: String """ if extra_config is None: extra_config = [] super(_BlitzGateway, self).__init__() self.CONFIG = GatewayConfig() self.c = client_obj if not type(extra_config) in (type(()), type([])): extra_config = [extra_config] self.extra_config = extra_config self.ice_config = [self.ICE_CONFIG] self.ice_config.extend(extra_config) self.ice_config = [os.path.abspath(str(x)) for x in [_f for _f in self.ice_config if _f]] self.host = host if self.c is not None: hc = self.c.getProperty("omero.host") if self.host is None: self.host = hc elif hc != self.host: > raise Exception("hosts %s and %s do not match" % (hc, self.host)) E Exception: hosts localhost and myserver.com do not match ../../../../.venv3/lib64/python3.9/site-packages/omero/gateway/__init__.py:1533: Exception