def test_check_deployment_day1_with_minion(self): self.fs.create_file( os.path.join(self.states_fs_path(), 'ceph-salt.sls')) self.assertEqual(CephSaltExecutor.check_deployment('node1.test.com'), 6) self.fs.remove_object( os.path.join(self.states_fs_path(), 'ceph-salt.sls'))
def test_check_deployment_day2_with_minion_deployed(self): self.fs.create_file(os.path.join(self.states_fs_path(), 'ceph-salt.sls')) host_ls_result = [{'hostname': 'node1'}] CephOrchMock.host_ls_result = host_ls_result self.assertEqual(CephSaltExecutor.check_deployment('node1.test.com', host_ls_result), 8) CephOrchMock.host_ls_result = [] self.fs.remove_object(os.path.join(self.states_fs_path(), 'ceph-salt.sls'))