File tree 2 files changed +22
-12
lines changed
2 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -267,12 +267,6 @@ async def test_3_throw_when_return_address_is_identical_to_srv_hostname(self):
267
267
"mock_target" : "mongo.local" ,
268
268
"expected_error" : "Invalid SRV host" ,
269
269
},
270
- # When the SRV hostname has three or more dot-separated parts
271
- # it is valid for the returned hostnames to be identical.
272
- {
273
- "query" : "_mongodb._tcp.blogs.mongodb.com" ,
274
- "mock_target" : "blogs.mongodb.com" ,
275
- },
276
270
]
277
271
await self .run_initial_dns_seedlist_discovery_prose_tests (test_cases )
278
272
@@ -298,6 +292,17 @@ async def test_4_throw_when_return_address_does_not_contain_dot_separating_share
298
292
]
299
293
await self .run_initial_dns_seedlist_discovery_prose_tests (test_cases )
300
294
295
+ async def test_5_when_srv_hostname_has_two_dot_separated_parts_it_is_valid_for_the_returned_hostname_to_be_identical (
296
+ self
297
+ ):
298
+ test_cases = [
299
+ {
300
+ "query" : "_mongodb._tcp.blogs.mongodb.com" ,
301
+ "mock_target" : "blogs.mongodb.com" ,
302
+ },
303
+ ]
304
+ await self .run_initial_dns_seedlist_discovery_prose_tests (test_cases )
305
+
301
306
302
307
if __name__ == "__main__" :
303
308
unittest .main ()
Original file line number Diff line number Diff line change @@ -265,12 +265,6 @@ def test_3_throw_when_return_address_is_identical_to_srv_hostname(self):
265
265
"mock_target" : "mongo.local" ,
266
266
"expected_error" : "Invalid SRV host" ,
267
267
},
268
- # When the SRV hostname has three or more dot-separated parts
269
- # it is valid for the returned hostnames to be identical.
270
- {
271
- "query" : "_mongodb._tcp.blogs.mongodb.com" ,
272
- "mock_target" : "blogs.mongodb.com" ,
273
- },
274
268
]
275
269
self .run_initial_dns_seedlist_discovery_prose_tests (test_cases )
276
270
@@ -296,6 +290,17 @@ def test_4_throw_when_return_address_does_not_contain_dot_separating_shared_part
296
290
]
297
291
self .run_initial_dns_seedlist_discovery_prose_tests (test_cases )
298
292
293
+ def test_5_when_srv_hostname_has_two_dot_separated_parts_it_is_valid_for_the_returned_hostname_to_be_identical (
294
+ self
295
+ ):
296
+ test_cases = [
297
+ {
298
+ "query" : "_mongodb._tcp.blogs.mongodb.com" ,
299
+ "mock_target" : "blogs.mongodb.com" ,
300
+ },
301
+ ]
302
+ self .run_initial_dns_seedlist_discovery_prose_tests (test_cases )
303
+
299
304
300
305
if __name__ == "__main__" :
301
306
unittest .main ()
You can’t perform that action at this time.
0 commit comments