From 3f88ba8903ab9dea1be9714ff77f2ce72b839e0c Mon Sep 17 00:00:00 2001 From: Thomas LEVEIL Date: Sat, 11 Feb 2017 00:12:55 +0100 Subject: [PATCH] TESTS: refactor conftest.py --- test2/conftest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test2/conftest.py b/test2/conftest.py index bb039d1..d40b857 100644 --- a/test2/conftest.py +++ b/test2/conftest.py @@ -30,10 +30,11 @@ docker_client = docker.from_env() ############################################################################### -class requests_retry_on_error_502(object): +class requests_for_docker(object): """ Proxy for calling methods of the requests module. - When a HTTP response failed due to HTTP Error 404 or 502, retry up to 30 times. + When a HTTP response failed due to HTTP Error 404 or 502, retry a few times. + Provides method `get_conf` to extract the nginx-proxy configuration content. """ def __init__(self): self.session = requests.Session() @@ -318,7 +319,7 @@ def nginxproxy(): is under test. """ network = connect_to_nginxproxy_network() - yield requests_retry_on_error_502() + yield requests_for_docker() disconnect_from_network(network)