summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-07-28 10:49:48 -0400
committerScott Moser <smoser@ubuntu.com>2015-07-28 10:49:48 -0400
commitd5f93dbd908c349548554cb69ca3afd05077cf57 (patch)
tree4054cab887d23357598d0c4fb161db80b7a53c62 /tests
parent8c6a61bb87119affc047af3ec94c1eaae324f4f6 (diff)
downloadvyos-cloud-init-d5f93dbd908c349548554cb69ca3afd05077cf57.tar.gz
vyos-cloud-init-d5f93dbd908c349548554cb69ca3afd05077cf57.zip
remove 'syslog' module (its been moved to rsyslog)
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_handler/test_handler_syslog.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/unittests/test_handler/test_handler_syslog.py b/tests/unittests/test_handler/test_handler_syslog.py
deleted file mode 100644
index bbfd521e..00000000
--- a/tests/unittests/test_handler/test_handler_syslog.py
+++ /dev/null
@@ -1,32 +0,0 @@
-from cloudinit.config.cc_syslog import (
- parse_remotes_line, SyslogRemotesLine, remotes_to_rsyslog_cfg)
-from cloudinit import util
-from .. import helpers as t_help
-
-
-class TestParseRemotesLine(t_help.TestCase):
- def test_valid_port(self):
- r = parse_remotes_line("foo:9")
- self.assertEqual(9, r.port)
-
- def test_invalid_port(self):
- with self.assertRaises(ValueError):
- parse_remotes_line("*.* foo:abc")
-
- def test_valid_ipv6(self):
- r = parse_remotes_line("*.* [::1]")
- self.assertEqual("*.* [::1]", str(r))
-
- def test_valid_ipv6_with_port(self):
- r = parse_remotes_line("*.* [::1]:100")
- self.assertEqual(r.port, 100)
- self.assertEqual(r.addr, "::1")
- self.assertEqual("*.* [::1]:100", str(r))
-
- def test_invalid_multiple_colon(self):
- with self.assertRaises(ValueError):
- parse_remotes_line("*.* ::1:100")
-
- def test_name_in_string(self):
- r = parse_remotes_line("syslog.host", name="foobar")
- self.assertEqual("*.* syslog.host # foobar", str(r))