mirror of
https://github.com/ceph/ceph
synced 2024-12-30 07:23:11 +00:00
qa/test_nfs: added testcase test_non_existent_cluster
Fixes: https://tracker.ceph.com/issues/58138 Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
This commit is contained in:
parent
cddaef44ea
commit
b91aff831d
@ -730,3 +730,12 @@ class TestNFS(MgrTestCase):
|
||||
exec_cmd_invalid('export', 'info')
|
||||
exec_cmd_invalid('export', 'info', 'clusterid')
|
||||
exec_cmd_invalid('export', 'apply')
|
||||
|
||||
def test_non_existent_cluster(self):
|
||||
"""
|
||||
Test that cluster info doesn't throw junk data for non-existent cluster
|
||||
"""
|
||||
cluseter_ls = self._nfs_cmd('cluster', 'ls')
|
||||
self.assertNotIn('foo', cluseter_ls, 'cluster foo exists')
|
||||
cluster_info = self._nfs_cmd('cluster', 'info', 'foo')
|
||||
self.assertIn('cluster does not exist', cluster_info)
|
||||
|
Loading…
Reference in New Issue
Block a user