Skip to content

Commit 317497b

Browse files
author
aviau
committed
Added 'test_dsn_mixed_scheme_case'
1 parent 79e4fb2 commit 317497b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/influxdb/client_test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,3 +732,13 @@ def test_dsn_password_caps(self):
732732
cli = InfluxDBClusterClient.from_DSN(
733733
'https+influxdb://usr:pWd@host:8086/db')
734734
self.assertEqual('pWd', cli.clients[0]._password)
735+
736+
def test_dsn_mixed_scheme_case(self):
737+
cli = InfluxDBClusterClient.from_DSN(
738+
'hTTps+inFLUxdb://usr:pWd@host:8086/db')
739+
self.assertEqual('pWd', cli.clients[0]._password)
740+
self.assertEqual('https://host:8086', cli.clients[0]._baseurl)
741+
742+
cli = InfluxDBClusterClient.from_DSN(
743+
'uDP+influxdb://usr:pwd@host1:8086,usr:pwd@host2:8086/db')
744+
self.assertTrue(cli.clients[0].use_udp)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy