def METHOD_NAME() -> dict:
    """Tests published port in swarm from host"""
    cfg = _test_env()
    cfg["host"] = "127.0.0.1"
    cfg["port"] = get_service_published_port(cli_cfg.get("host", DEFAULT_HOST))
    cfg.setdefault("database", DEFAULT_DB)
    return cfg