]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-11742] Correct test name 301/head
authorTravis Rhoden <trhoden@redhat.com>
Mon, 25 May 2015 14:13:25 +0000 (10:13 -0400)
committerTravis Rhoden <trhoden@redhat.com>
Mon, 25 May 2015 14:14:29 +0000 (10:14 -0400)
Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/tests/test_cli_rgw.py

index ed0a1ac14b851fc7216e5950559eb4d8fa95e042..6630f5abcd3d4482aa570cbf5e643b5c9c3d1395 100644 (file)
@@ -15,9 +15,7 @@ def test_help(tmpdir, cli):
     assert 'optional arguments' in result
 
 
-def test_bad_no_conf(tmpdir, cli):
-    with tmpdir.join('ceph.conf').open('w'):
-        pass
+def test_bad_no_hosts(tmpdir, cli):
     with pytest.raises(cli.Failed) as err:
         with cli(
             args=['ceph-deploy', 'rgw'],
@@ -25,6 +23,7 @@ def test_bad_no_conf(tmpdir, cli):
             ) as p:
             result = p.stderr.read()
     assert 'usage: ceph-deploy rgw' in result
+    assert 'too few arguments' in result
     assert err.value.status == 2