[CI] get_db_host returns localhost
https://gitlab.esrf.fr/bliss/bliss/-/jobs/120936
_____________________________ test_tangodb_getters _____________________________
beacon = <bliss.config.static.Config object at 0x7f3e2ebd15d0>
dummy_tango_server = ('tango://localhost:56166/id00/tango/dummy', <DeviceProxy at 0x7f3e2cef2140 wrapping Dummy(id00/tango/dummy) at 0x7f3e...vice_proxy at 0x7f3ee2b6ddd0>, green_mode=tango._tango.GreenMode.Gevent), 'tango://localhost:56166/id00/tango/dummy')>)
def test_tangodb_getters(beacon, dummy_tango_server):
device_fqdn, dev_proxy = dummy_tango_server
db = Database()
# Dummy device info
domain = "id00"
family = "tango"
name = "dummy"
class_name = "Dummy"
server = "dummy_tg_server"
server_instance = "dummy"
dev_name = f"{domain}.{family}.{name}"
obj_name = f"{domain}/{family}/{name}"
alias = "dummy_alias"
serv_name = f"{server}/{server_instance}"
dserver_name = f"dserver/{serv_name}"
properties = {"dummy_property1": "dummy_value1", "dummy_property2": "dummy_value2"}
hosts = dbdatum_to_list(db.get_host_list())
assert len(hosts) == 1
host = hosts[0]
result = db.get_db_host()
> assert (
result.lower() == host.lower()
) # for some reason, it happened to have some upper case characters here!
E AssertionError: assert 'localhost' == 'runner-z8zz4...-concurrent-0'
E - localhost
E + runner-z8zz4fek-project-325-concurrent-0
bliss.tango.db_access.beacon.beacon.get_host_list
exists (gets the host names from Redis) but bliss.tango.db_access.beacon.beacon.get_db_host
does not. What implements the later?
Edited by Wout De Nolf