Skip to content

Commit 7b17e66

Browse files
committed
Add test for setting proxy via config files
1 parent adcb7be commit 7b17e66

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/config.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ timeout=6000
66
connection_pool_maxsize=55
77
auth_basic=false
88
profilers=query, operator
9+
proxy=http://proxy.domain.org:8080
910

1011
[tags]
1112
id = 132-987-655

tests/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
connection_pool_maxsize = 55
88
auth_basic = False
99
profilers = "query, operator"
10+
proxy = "http://proxy.domain.org:8080"
1011

1112
[tags]
1213
id = "132-987-655"

tests/test_InfluxDBClient.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def assertConfig(self):
7474
self.assertEqual(55, self.client.api_client.configuration.connection_pool_maxsize)
7575
self.assertEqual(False, self.client.api_client.configuration.auth_basic)
7676
self.assertEqual(["query", "operator"], self.client.profilers)
77+
self.assertEqual("http://proxy.domain.org:8080", self.client.api_client.configuration.proxy)
7778

7879
def test_init_from_file_ssl_default(self):
7980
self.client = InfluxDBClient.from_config_file(f'{os.path.dirname(__file__)}/config.ini')

0 commit comments

Comments
 (0)