def test_match_setting_pillar(self, seek): seek.return_value = 'pillar value' cephdisks.__pillar__ = {} ret = cephdisks._match_setting("") assert ret == 'pillar value'
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*'
def test_match_setting_arg(self): ret = cephdisks._match_setting('custom') assert ret == 'custom'