chore: EngineFactory 函数名称修改

This commit is contained in:
fit2-zhao 2024-10-15 09:29:08 +08:00 committed by Craftsman
parent e3e0956654
commit b010135901
3 changed files with 5 additions and 5 deletions

View File

@ -314,7 +314,7 @@ public class ApiTaskCenterService {
try {
TestResourceDTO testResourceDTO = new TestResourceDTO();
BeanUtils.copyBean(testResourceDTO, testResourcePoolDTO.getTestResourceReturnDTO());
EngineFactory.stopApi(subList, testResourceDTO);
EngineFactory.stopApiTask(subList, testResourceDTO);
} catch (Exception e) {
LogUtils.error(e);
} finally {
@ -407,7 +407,7 @@ public class ApiTaskCenterService {
SubListUtils.dealForSubList(reportList, 100, subList -> {
try {
LogUtils.info(String.format("开始发送停止请求到 %s 节点执行", endpoint), subList.toString());
// MsHttpClient.stopApi(endpoint, subList); todo taskIds
MsHttpClient.stopApiTask(endpoint, subList); // todo taskIds
} catch (Exception e) {
LogUtils.error(e);
} finally {

View File

@ -63,7 +63,7 @@ public class KubernetesExecTests extends BaseTest {
List<String> request = new ArrayList<>();
TestResourceDTO resource = new TestResourceDTO();
try {
EngineFactory.stopApi(request, resource);
EngineFactory.stopApiTask(request, resource);
} catch (Exception e) {
System.out.println("Error: " + e.getMessage());
}

View File

@ -343,7 +343,7 @@ public class TestPlanTaskCenterService {
try {
TestResourceDTO testResourceDTO = new TestResourceDTO();
BeanUtils.copyBean(testResourceDTO, testResourcePoolDTO.getTestResourceReturnDTO());
EngineFactory.stopApi(subList, testResourceDTO);
EngineFactory.stopApiTask(subList, testResourceDTO);
} catch (Exception e) {
LogUtils.error(e);
}
@ -369,7 +369,7 @@ public class TestPlanTaskCenterService {
SubListUtils.dealForSubList(reportList, 100, (subList) -> {
try {
LogUtils.info(String.format("开始发送停止请求到 %s 节点执行", endpoint), subList.toString());
MsHttpClient.stopApi(endpoint, subList);
MsHttpClient.stopApiTask(endpoint, subList);
} catch (Exception e) {
LogUtils.error(e);
}