mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
ceph-volume tests.api ensure that we can handle non-ceph tags in lvs
Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
parent
a7e7df1460
commit
c98731eced
@ -13,6 +13,14 @@ class TestParseTags(object):
|
||||
result = api.parse_tags('ceph.osd_something=1')
|
||||
assert result == {'ceph.osd_something': '1'}
|
||||
|
||||
def test_non_ceph_tags_are_skipped(self):
|
||||
result = api.parse_tags('foo')
|
||||
assert result == {}
|
||||
|
||||
def test_mixed_non_ceph_tags(self):
|
||||
result = api.parse_tags('foo,ceph.bar=1')
|
||||
assert result == {'ceph.bar': '1'}
|
||||
|
||||
def test_multiple_csv_expands_in_dict(self):
|
||||
result = api.parse_tags('ceph.osd_something=1,ceph.foo=2,ceph.fsid=0000')
|
||||
# assert them piecemeal to avoid the un-ordered dict nature
|
||||
|
Loading…
Reference in New Issue
Block a user