コード例 #1
0
ファイル: test_deploy.py プロジェクト: votdev/ceph-salt
 def test_check_formula_exists3(self):
     SaltUtilMock.sync_all_result = False
     self.fs.create_file(
         os.path.join(self.states_fs_path(), 'ceph-salt.sls'))
     self.assertEqual(CephSaltExecutor.check_formula(), 5)
     SaltUtilMock.sync_all_result = True
     self.fs.remove_object(
         os.path.join(self.states_fs_path(), 'ceph-salt.sls'))
コード例 #2
0
ファイル: test_deploy.py プロジェクト: votdev/ceph-salt
 def test_check_formula_exists1(self):
     ServiceMock.restart_result = False
     self.assertEqual(CephSaltExecutor.check_formula(), 3)
     ServiceMock.restart_result = True
コード例 #3
0
ファイル: test_deploy.py プロジェクト: votdev/ceph-salt
 def test_check_formula_exists2(self):
     self.assertEqual(CephSaltExecutor.check_formula(), 4)
コード例 #4
0
ファイル: test_deploy.py プロジェクト: votdev/ceph-salt
 def test_check_formula_ok(self):
     self.fs.create_file(
         os.path.join(self.states_fs_path(), 'ceph-salt.sls'))
     self.assertEqual(CephSaltExecutor.check_formula(), 0)
     self.fs.remove_object(
         os.path.join(self.states_fs_path(), 'ceph-salt.sls'))