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):
583
583
},
584
584
{
585
585
"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" ,
587
602
"expected_error" : "Invalid SRV host" ,
588
603
},
589
604
]
You can’t perform that action at this time.
0 commit comments