From dbc11d2a924808241158777bf78d8a371cb02db1 Mon Sep 17 00:00:00 2001 From: Scott Kitterman Date: Tue, 2 Jan 2024 00:43:57 -0500 Subject: [PATCH 1/2] Update test_query_txt_chunked expected results due to changed SPF record for jobscoutdaily.com. --- tests/test_all.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_all.py b/tests/test_all.py index dfb680e..2e7e5ac 100755 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -288,9 +288,9 @@ def cb(result, errorno): self.wait() self.assertNoError(self.errorno) # If the chunks are aggregated, only one TXT record should be visible. Three would show if they are not properly merged. - # jobscoutdaily.com. 21600 IN TXT "v=spf1 " "include:emailcampaigns.net include:spf.dynect.net include:ccsend.com include:_spf.elasticemail.com ip4:67.200.116.86 ip4:67.200.116.90 ip4:67.200.116.97 ip4:67.200.116.111 ip4:74.199.198.2 " " ~all" + # jobscoutdaily.com. 21600 IN TXT "v=spf1 A MX " "include:emailcampaigns.net include:spf.dynect.net include:ccsend.com include:_spf.elasticemail.com ip4:67.200.116.0/24 ip4:74.199.198.0/24 " " ~all" self.assertEqual(len(self.result), 1) - self.assertEqual(self.result[0].text, 'v=spf1 include:emailcampaigns.net include:spf.dynect.net include:ccsend.com include:_spf.elasticemail.com ip4:67.200.116.86 ip4:67.200.116.90 ip4:67.200.116.97 ip4:67.200.116.111 ip4:74.199.198.2 ~all') + self.assertEqual(self.result[0].text, 'v=spf1 A MX include:emailcampaigns.net include:spf.dynect.net include:ccsend.com include:_spf.elasticemail.com ip4:67.200.116.0/24 ip4:74.199.198.0/24 ~all') def test_query_txt_multiple_chunked(self): self.result, self.errorno = None, None From 9870475ad5aec8522c6c3d88e3fecb830701fea4 Mon Sep 17 00:00:00 2001 From: Scott Kitterman Date: Tue, 2 Jan 2024 00:45:54 -0500 Subject: [PATCH 2/2] Update test_query_ptr test to use address with PTR record --- tests/test_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_all.py b/tests/test_all.py index 2e7e5ac..41aefc4 100755 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -409,7 +409,7 @@ def test_query_ptr(self): self.result, self.errorno = None, None def cb(result, errorno): self.result, self.errorno = result, errorno - ip = '8.8.8.8' + ip = '172.253.122.26' self.channel.query(ipaddress.ip_address(ip).reverse_pointer, pycares.QUERY_TYPE_PTR, cb) self.wait() self.assertNoError(self.errorno)