summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLars Kellogg-Stedman <lars@redhat.com>2017-03-04 17:07:16 -0500
committerScott Moser <smoser@brickies.net>2017-03-07 12:48:32 -0500
commit657fd40f9ee692a817ec4614cd0d6cb0539ffabf (patch)
tree868e1b81534cf924687da24bf46b6e57c0a28667 /tests
parent1c795b974d13ba269763bb6016ecdbcaa9c7269d (diff)
downloadvyos-cloud-init-657fd40f9ee692a817ec4614cd0d6cb0539ffabf.tar.gz
vyos-cloud-init-657fd40f9ee692a817ec4614cd0d6cb0539ffabf.zip
net: do not raise exception for > 3 nameservers
log a warning rather than raising ValueError if we see more than three nameserver addresses. LP: #1670052
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_distros/test_resolv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_distros/test_resolv.py b/tests/unittests/test_distros/test_resolv.py
index 6b535a95..c9d03475 100644
--- a/tests/unittests/test_distros/test_resolv.py
+++ b/tests/unittests/test_distros/test_resolv.py
@@ -46,7 +46,7 @@ class TestResolvHelper(TestCase):
self.assertNotIn('10.3', rp.nameservers)
self.assertEqual(len(rp.nameservers), 3)
rp.add_nameserver('10.2')
- self.assertRaises(ValueError, rp.add_nameserver, '10.3')
+ rp.add_nameserver('10.3')
self.assertNotIn('10.3', rp.nameservers)
def test_search_domains(self):