]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-detect-init: add test for squeeze 8105/head
authorNathan Cutler <ncutler@suse.com>
Mon, 14 Mar 2016 21:56:32 +0000 (22:56 +0100)
committerNathan Cutler <ncutler@suse.com>
Mon, 14 Mar 2016 21:56:32 +0000 (22:56 +0100)
Since we return 'sysvinit' for wheezy and squeeze only, make sure we are
testing both of these.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/ceph-detect-init/tests/test_all.py

index c13b12b7364d4e230d35a91f83b344337d991641..22cff5bca93607ecc32fdbda09e73de9a0f50eff 100644 (file)
@@ -48,6 +48,10 @@ class TestCephDetectInit(testtools.TestCase):
                                  distro='debian',
                                  codename='wheezy'):
             self.assertEqual('sysvinit', debian.choose_init())
+        with mock.patch.multiple('ceph_detect_init.debian',
+                                 distro='debian',
+                                 codename='squeeze'):
+            self.assertEqual('sysvinit', debian.choose_init())
         with mock.patch.multiple('ceph_detect_init.debian',
                                  distro='debian',
                                  codename='jessie'):