Skip to content

Commit

Permalink
[RM-20228] tests: remove tests that validated cluster name
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Deza <adeza@redhat.com>
  • Loading branch information
Alfredo Deza committed Jun 8, 2017
1 parent b1c27b8 commit 914bcb9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ceph_deploy/tests/parser/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,6 @@ def test_default_cluster_name(self):
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
Expand Down

0 comments on commit 914bcb9

Please sign in to comment.