def test_pillar_install2(self): self.fs.create_file('/srv/pillar/top.sls', contents=''' base: '*': [] ''') self.assertFalse(PillarManager.pillar_installed()) PillarManager.install_pillar() self.assertTrue(PillarManager.pillar_installed()) self.fs.remove_object('/srv/pillar/top.sls')
def test_pillar_install(self): self.fs.remove_object('/srv/pillar/ceph-salt.sls') self.assertFalse(PillarManager.pillar_installed()) PillarManager.install_pillar() self.assertTrue(PillarManager.pillar_installed())