]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
Test: Fix some contrast infomation in test case 438/head
authorroot <root@big-core-vm.novalocal>
Thu, 11 May 2017 07:53:09 +0000 (07:53 +0000)
committerroot <root@big-core-vm.novalocal>
Thu, 11 May 2017 08:17:20 +0000 (08:17 +0000)
Maybe someone forgets to fix test info in test_install.py.

E AssertionError: assert ['ceph', 'cep...d', 'radosgw'] ==
    ['ceph-mds', '...d', 'radosgw']
E   At index 0 diff: 'ceph' != 'ceph-mds'
E   Full diff:
E   - ['ceph', 'ceph-mds', 'ceph-mon', 'ceph-osd', 'radosgw']
E   ?  --------
E   + ['ceph-mds', 'ceph-mgr', 'ceph-mon', 'ceph-osd', 'radosgw']
E   ?              ++++++++++++

So fix it.

Signed-off-by: Yu Shengzuo <yu.shengzuo@99cloud.net>
ceph_deploy/tests/test_install.py

index 2d62bacd3303d10521cd08a1eab78eeedb1d04bb..7225f12910cf8caa0065c5b0ea9d8e1fc5dec03f 100644 (file)
@@ -65,7 +65,7 @@ class TestDetectComponents(object):
         self.distro.is_deb = True
         result = sorted(install.detect_components(self.args, self.distro))
         assert result == sorted([
-            'ceph-osd', 'ceph-mds', 'ceph-mgr', 'ceph-mon', 'radosgw'
+            'ceph-osd', 'ceph-mds', 'ceph', 'ceph-mon', 'radosgw'
         ])
 
     def test_install_all_with_other_options_returns_all_packages_deb(self):
@@ -78,14 +78,14 @@ class TestDetectComponents(object):
         self.args.install_osd = True
         result = sorted(install.detect_components(self.args, self.distro))
         assert result == sorted([
-            'ceph-osd', 'ceph-mds', 'ceph-mgr', 'ceph-mon', 'radosgw'
+            'ceph-osd', 'ceph-mds', 'ceph', 'ceph-mon', 'radosgw'
         ])
 
     def test_install_all_returns_all_packages_rpm(self):
         self.args.install_all = True
         result = sorted(install.detect_components(self.args, self.distro))
         assert result == sorted([
-            'ceph-osd', 'ceph-mds', 'ceph-mgr', 'ceph-mon', 'ceph-radosgw'
+            'ceph-osd', 'ceph-mds', 'ceph', 'ceph-mon', 'ceph-radosgw'
         ])
 
     def test_install_all_with_other_options_returns_all_packages_rpm(self):
@@ -96,7 +96,7 @@ class TestDetectComponents(object):
         self.args.install_osd = True
         result = sorted(install.detect_components(self.args, self.distro))
         assert result == sorted([
-            'ceph-osd', 'ceph-mds', 'ceph-mgr', 'ceph-mon', 'ceph-radosgw'
+            'ceph-osd', 'ceph-mds', 'ceph', 'ceph-mon', 'ceph-radosgw'
         ])
 
     def test_install_only_one_component(self):
@@ -119,5 +119,5 @@ class TestDetectComponents(object):
     def test_install_all_should_be_default_when_no_options_passed(self):
         result = sorted(install.detect_components(self.args, self.distro))
         assert result == sorted([
-            'ceph-osd', 'ceph-mds', 'ceph-mgr', 'ceph-mon', 'ceph-radosgw'
+            'ceph-osd', 'ceph-mds', 'ceph', 'ceph-mon', 'ceph-radosgw'
         ])