summaryrefslogtreecommitdiff
path: root/tests/unittests/test_distros
diff options
context:
space:
mode:
authorRobert Schweikert <rjschwei@suse.com>2017-08-25 11:13:58 -0400
committerScott Moser <smoser@brickies.net>2017-08-30 13:39:47 -0400
commitcbda576a7bbf846710ad55940bf8ca1f2d2194b9 (patch)
tree3d9eb6e4957735605cc294743f6b709cd44c42a7 /tests/unittests/test_distros
parent44529c1de0098ccd684b46b0bc18d48312c4097c (diff)
downloadvyos-cloud-init-cbda576a7bbf846710ad55940bf8ca1f2d2194b9.tar.gz
vyos-cloud-init-cbda576a7bbf846710ad55940bf8ca1f2d2194b9.zip
suse: Add support for openSUSE and return SLES to a working state.
This gets initial opensuse and SLES support back to a working state. Still missing is more complete network file writing and unit tests.
Diffstat (limited to 'tests/unittests/test_distros')
-rw-r--r--tests/unittests/test_distros/test_opensuse.py12
-rw-r--r--tests/unittests/test_distros/test_sles.py12
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/unittests/test_distros/test_opensuse.py b/tests/unittests/test_distros/test_opensuse.py
new file mode 100644
index 00000000..bdb1d633
--- /dev/null
+++ b/tests/unittests/test_distros/test_opensuse.py
@@ -0,0 +1,12 @@
+# This file is part of cloud-init. See LICENSE file for license information.
+
+from ..helpers import CiTestCase
+
+from . import _get_distro
+
+
+class TestopenSUSE(CiTestCase):
+
+ def test_get_distro(self):
+ distro = _get_distro("opensuse")
+ self.assertEqual(distro.osfamily, 'suse')
diff --git a/tests/unittests/test_distros/test_sles.py b/tests/unittests/test_distros/test_sles.py
new file mode 100644
index 00000000..c656aacc
--- /dev/null
+++ b/tests/unittests/test_distros/test_sles.py
@@ -0,0 +1,12 @@
+# This file is part of cloud-init. See LICENSE file for license information.
+
+from ..helpers import CiTestCase
+
+from . import _get_distro
+
+
+class TestSLES(CiTestCase):
+
+ def test_get_distro(self):
+ distro = _get_distro("sles")
+ self.assertEqual(distro.osfamily, 'suse')