From: Alfredo Deza Date: Thu, 8 Jun 2017 19:20:49 +0000 (-0400) Subject: [RM-20228] tests: remove tests that validated cluster name X-Git-Tag: v1.5.39~8^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F441%2Fhead;p=ceph-deploy.git [RM-20228] tests: remove tests that validated cluster name Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/tests/parser/test_main.py b/ceph_deploy/tests/parser/test_main.py index 0b1a047..5a71ec1 100644 --- a/ceph_deploy/tests/parser/test_main.py +++ b/ceph_deploy/tests/parser/test_main.py @@ -65,17 +65,6 @@ class TestParserMain(object): args = self.parser.parse_args('forgetkeys'.split()) assert args.cluster == 'ceph' - def test_custom_cluster_name(self): - args = self.parser.parse_args('--cluster myhugecluster forgetkeys'.split()) - assert args.cluster == 'myhugecluster' - - def test_custom_cluster_name_bad(self, capsys): - with pytest.raises(SystemExit): - self.parser.parse_args('--cluster=/evil-this-should-not-be-created'.split()) - out, err = capsys.readouterr() - assert ('--cluster: argument must start with a letter and contain only ' - 'letters and numbers') in err - def test_default_ceph_conf_is_none(self): args = self.parser.parse_args('forgetkeys'.split()) assert args.ceph_conf is None