From 060c4c38f8d4a260cb63b9e336e9f2a9e362ca21 Mon Sep 17 00:00:00 2001 From: Travis Rhoden Date: Mon, 25 May 2015 10:13:25 -0400 Subject: [PATCH] [RM-11742] Correct test name Signed-off-by: Travis Rhoden --- ceph_deploy/tests/test_cli_rgw.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ceph_deploy/tests/test_cli_rgw.py b/ceph_deploy/tests/test_cli_rgw.py index ed0a1ac..6630f5a 100644 --- a/ceph_deploy/tests/test_cli_rgw.py +++ b/ceph_deploy/tests/test_cli_rgw.py @@ -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 -- 2.47.3