@@ -39,6 +39,44 @@ class TestGheDetector(object):
3939 'database=test;hostname=host.test.com;'
4040 'port=1;protocol=tcpip;uid=testid;pwd=secret' , True ,
4141 ),
42+ (
43+ 'secret' ,
44+ 'database=test;hostname=host.test.com;'
45+ 'port=1;protocol=tcpip;uid=testid;pwd=secret;' , True ,
46+ ),
47+ (
48+ 'secret' ,
49+ 'database=test;hostname=host.test.com;'
50+ 'port=1;protocol=tcpip;pwd=secret;uid=testid;' , True ,
51+ ),
52+ (
53+ 'secret' ,
54+ 'database=test,hostname=host.test.com,'
55+ 'port=1,protocol=tcpip,pwd=secret,uid=testid' , True ,
56+ ),
57+ (
58+ 'secret' ,
59+ 'database=test,hostname=host.test.com,'
60+ 'port=1,protocol=tcpip,uid=testid,pwd=secret' , True ,
61+ ),
62+ (
63+ 'secret' ,
64+ 'user=testid,\n password=secret,\n database=test,\n '
65+ 'hostname=host.test.com,\n port=1' , True ,
66+ ),
67+ (
68+ 'secret' ,
69+ 'user=testid\n password=secret\n database=test\n '
70+ 'hostname=host.test.com\n port=1' , True ,
71+ ),
72+ (
73+ 'secret' ,
74+ 'jdbc:db2://hostname.test.com:1/test:user=testid;password=secret;' , True ,
75+ ),
76+ (
77+ 'secret' ,
78+ 'jdbc:db2://hostname.test.com:1/test user=testid password=secret' , True ,
79+ ),
4280 ('$omespeci@!ch@r$' , 'dbpwd=$omespeci@!ch@r$' , True ),
4381 ('astring' , 'db2_password = "astring"' , True ),
4482 ('Iusedb2!' , '"password": "Iusedb2!"' , True ),
0 commit comments