Skip to content

Commit

Permalink
Add test for setting proxy via config files
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaesse committed Jul 12, 2021
1 parent adcb7be commit 7b17e66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tests/test_InfluxDBClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 7b17e66

Please sign in to comment.