]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
remove bad, horrible test
authorAlfredo Deza <alfredo.deza@inktank.com>
Mon, 14 Oct 2013 19:35:45 +0000 (15:35 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Tue, 15 Oct 2013 12:51:58 +0000 (08:51 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/tests/test_cli_install.py

index ea248316e0be10dd61ab06cb35cfcb791f71b7e9..36129b2b085623c36050a0252b1f1743b079603d 100644 (file)
@@ -31,35 +31,3 @@ def test_bad_no_host(tmpdir, cli):
     assert 'usage: ceph-deploy install' in result
     assert 'too few arguments' in result
     assert err.value.status == 2
-
-
-def test_simple(tmpdir):
-    ns = argparse.Namespace()
-    ns.pushy = mock.Mock()
-    conn = mock.NonCallableMock(name='PushyClient')
-    ns.pushy.return_value = conn
-
-    mock_compiled = collections.defaultdict(mock.Mock)
-    conn.compile.return_value = mock.Mock(return_value = ('Ubuntu', 'precise','cuttlefish'))
-    fake_get_release = mock.Mock(return_value = ('Ubuntu', 'precise','cuttlefish'))
-    fake_distro = mock.Mock(name='FakeDistro')
-    fake_distro.return_value = fake_distro
-
-    try:
-        with directory(str(tmpdir)):
-            with mock.patch('ceph_deploy.hosts.lsb.get_lsb_release', fake_get_release):
-                with mock.patch('ceph_deploy.hosts.pushy', ns.pushy):
-                    with mock.patch('ceph_deploy.hosts._get_distro', fake_distro):
-
-                        main(
-                            args=['-v', 'install', 'storehost1'],
-                            namespace=ns,
-                            )
-    except SystemExit as e:
-        raise AssertionError('Unexpected exit: %s', e)
-
-    connect_calls = ns.pushy.connect.call_args[0][0]
-    assert connect_calls == 'ssh+sudo:storehost1'
-    assert fake_distro.name == 'Ubuntu'
-    assert fake_distro.release == 'precise'
-    assert fake_distro.codename == 'cuttlefish'