From 0204cec5ce98ed3afaa3435cc230cba93d214ea9 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sun, 25 Aug 2013 17:06:10 +1000 Subject: [PATCH] TST: www.example.com DNS changed --- testcases/files/testcase-usedns.log | 2 +- testcases/filtertestcase.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/testcases/files/testcase-usedns.log b/testcases/files/testcase-usedns.log index 87c99fdb..a91fd7ac 100644 --- a/testcases/files/testcase-usedns.log +++ b/testcases/files/testcase-usedns.log @@ -1,2 +1,2 @@ Aug 14 11:54:59 i60p295 sshd[12365]: Failed publickey for roehl from example.com port 51332 ssh2 -Aug 14 11:58:59 i60p295 sshd[12365]: Failed publickey for roehl from ::ffff:192.0.43.10 port 51332 ssh2 +Aug 14 11:58:59 i60p295 sshd[12365]: Failed publickey for roehl from ::ffff:93.184.216.119 port 51332 ssh2 diff --git a/testcases/filtertestcase.py b/testcases/filtertestcase.py index d918bbf7..b961d0dc 100644 --- a/testcases/filtertestcase.py +++ b/testcases/filtertestcase.py @@ -632,12 +632,12 @@ class GetFailures(unittest.TestCase): def testGetFailuresUseDNS(self): # We should still catch failures with usedns = no ;-) - output_yes = ('192.0.43.10', 2, 1124013539.0, + output_yes = ('93.184.216.119', 2, 1124013539.0, ['Aug 14 11:54:59 i60p295 sshd[12365]: Failed publickey for roehl from example.com port 51332 ssh2\n', - 'Aug 14 11:58:59 i60p295 sshd[12365]: Failed publickey for roehl from ::ffff:192.0.43.10 port 51332 ssh2\n']) + 'Aug 14 11:58:59 i60p295 sshd[12365]: Failed publickey for roehl from ::ffff:93.184.216.119 port 51332 ssh2\n']) - output_no = ('192.0.43.10', 1, 1124013539.0, - ['Aug 14 11:58:59 i60p295 sshd[12365]: Failed publickey for roehl from ::ffff:192.0.43.10 port 51332 ssh2\n']) + output_no = ('93.184.216.119', 1, 1124013539.0, + ['Aug 14 11:58:59 i60p295 sshd[12365]: Failed publickey for roehl from ::ffff:93.184.216.119 port 51332 ssh2\n']) # Actually no exception would be raised -- it will be just set to 'no' #self.assertRaises(ValueError, @@ -684,9 +684,9 @@ class DNSUtilsTests(unittest.TestCase): res = DNSUtils.textToIp('www.example.com', 'no') self.assertEqual(res, []) res = DNSUtils.textToIp('www.example.com', 'warn') - self.assertEqual(res, ['192.0.43.10']) + self.assertEqual(res, ['93.184.216.119']) res = DNSUtils.textToIp('www.example.com', 'yes') - self.assertEqual(res, ['192.0.43.10']) + self.assertEqual(res, ['93.184.216.119']) def testTextToIp(self): # Test hostnames @@ -698,7 +698,7 @@ class DNSUtilsTests(unittest.TestCase): for s in hostnames: res = DNSUtils.textToIp(s, 'yes') if s == 'www.example.com': - self.assertEqual(res, ['192.0.43.10']) + self.assertEqual(res, ['93.184.216.119']) else: self.assertEqual(res, [])