Example #1
0
 def test_match_setting_pillar(self, seek):
     seek.return_value = 'pillar value'
     cephdisks.__pillar__ = {}
     ret = cephdisks._match_setting("")
     assert ret == 'pillar value'
Example #2
0
 def test_match_setting_default(self, seek):
     seek.return_value = None
     cephdisks.__pillar__ = {}
     ret = cephdisks._match_setting("")
     assert ret == '-name ata* -o -name scsi* -o -name nvme*'
Example #3
0
 def test_match_setting_arg(self):
     ret = cephdisks._match_setting('custom')
     assert ret == 'custom'