def external_consul_proxy(consul_no_acl): proxy = TraefikConsulProxy( public_url="http://127.0.0.1:8000", traefik_api_password="******", traefik_api_username="******", should_start=False, ) traefik_process = configure_and_launch_traefik(kv_store="consul") yield proxy traefik_process.kill() traefik_process.wait()
async def no_auth_consul_proxy(): """ Function returning a configured TraefikEtcdProxy. No etcd authentication. """ proxy = TraefikConsulProxy( public_url="http://127.0.0.1:8000", traefik_api_password="******", traefik_api_username="******", should_start=True, ) await proxy.start() return proxy
async def no_auth_consul_proxy(consul_no_acl): """ Fixture returning a configured TraefikConsulProxy. Consul acl disabled. """ proxy = TraefikConsulProxy( public_url="http://127.0.0.1:8000", traefik_api_password="******", traefik_api_username="******", should_start=True, ) await proxy.start() yield proxy await proxy.stop()
def auth_external_consul_proxy(consul_acl): proxy = TraefikConsulProxy( public_url="http://127.0.0.1:8000", traefik_api_password="******", traefik_api_username="******", kv_password="******", check_route_timeout=45, should_start=False, ) traefik_process = configure_and_launch_traefik(kv_store="consul", password="******") yield proxy traefik_process.kill() traefik_process.wait()
async def auth_consul_proxy(consul_acl): """ Fixture returning a configured TraefikConsulProxy. Consul acl enabled. """ proxy = TraefikConsulProxy( public_url="http://127.0.0.1:8000", traefik_api_password="******", traefik_api_username="******", kv_password="******", check_route_timeout=45, should_start=True, ) await proxy.start() yield proxy await proxy.stop()