File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments