Skip to content

Commit e756efc

Browse files
committed
Add remaining tests, expected to fail until fixed
1 parent 9aa3781 commit e756efc

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

test/test_uri_parser.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,22 @@ def test_error_when_return_address_does_not_end_with_srv_domain(self):
583583
},
584584
{
585585
"query": "_mongodb._tcp.mongo.local",
586-
"mock_target": "foo.mongo.local",
586+
"mock_target": "mongo.local",
587+
"expected_error": "Invalid SRV host",
588+
},
589+
{
590+
"query": "_mongodb._tcp.localhost",
591+
"mock_target": "test_1.cluster_1localhost",
592+
"expected_error": "Invalid SRV host",
593+
},
594+
{
595+
"query": "_mongodb._tcp.mongo.local",
596+
"mock_target": "test_1.my_hostmongo.local",
597+
"expected_error": "Invalid SRV host",
598+
},
599+
{
600+
"query": "_mongodb._tcp.blogs.mongodb.com",
601+
"mock_target": "cluster.testmongodb.com",
587602
"expected_error": "Invalid SRV host",
588603
},
589604
]

0 commit comments

Comments
 (0)