示例#1
0
 def test_invalid_sharedsecret_file(self):
     fs.CreateFile('/etc/salt/master.d/sharedsecret.conf',
                   contents='sharedsecret = my-precious-key')
     key = sharedsecret.show()
     fs.RemoveFile('/etc/salt/master.d/sharedsecret.conf')
     assert key is None
示例#2
0
 def test_no_sharedsecret_file(self):
     assert sharedsecret.show() is None