diff --git a/tests/config.ini b/tests/config.ini index 32fc6d0c..779bee0b 100644 --- a/tests/config.ini +++ b/tests/config.ini @@ -6,6 +6,7 @@ timeout=6000 connection_pool_maxsize=55 auth_basic=false profilers=query, operator +proxy=http://proxy.domain.org:8080 [tags] id = 132-987-655 diff --git a/tests/config.toml b/tests/config.toml index d0fc7cba..44dd507f 100644 --- a/tests/config.toml +++ b/tests/config.toml @@ -7,6 +7,7 @@ connection_pool_maxsize = 55 auth_basic = False profilers = "query, operator" + proxy = "http://proxy.domain.org:8080" [tags] id = "132-987-655" diff --git a/tests/test_InfluxDBClient.py b/tests/test_InfluxDBClient.py index faae6fef..76016f6c 100644 --- a/tests/test_InfluxDBClient.py +++ b/tests/test_InfluxDBClient.py @@ -74,6 +74,7 @@ def assertConfig(self): self.assertEqual(55, self.client.api_client.configuration.connection_pool_maxsize) self.assertEqual(False, self.client.api_client.configuration.auth_basic) self.assertEqual(["query", "operator"], self.client.profilers) + self.assertEqual("http://proxy.domain.org:8080", self.client.api_client.configuration.proxy) def test_init_from_file_ssl_default(self): self.client = InfluxDBClient.from_config_file(f'{os.path.dirname(__file__)}/config.ini')