[ Agent ] [ Executor ] - fix bugs

This commit is contained in:
zeaslity
2023-10-24 11:27:20 +08:00
parent 8080314d9b
commit 4afb62f7cf
10 changed files with 34 additions and 24 deletions

View File

@@ -5,7 +5,7 @@ import io.wdd.func.auto.service.BaseFuncScheduler;
import io.wdd.server.beans.po.ServerInfoPO;
import io.wdd.server.beans.request.ServerQueryEntity;
import io.wdd.server.coreService.CoreServerService;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import javax.annotation.Resource;
@@ -13,14 +13,12 @@ import javax.annotation.Resource;
@SpringBootTest
public class TestBaseFuncScheduler {
@Resource
BaseFuncScheduler baseFuncScheduler;
@Resource
CoreServerService serverService;
@Test
public void testRunProcedure() {
@@ -29,12 +27,14 @@ public class TestBaseFuncScheduler {
projectDeployContext.setProjectId(1716372290994155522L);
ServerQueryEntity serverQueryEntity = new ServerQueryEntity();
serverQueryEntity.setServerName("Osaka");
serverQueryEntity.setServerName("Paripark");
ServerInfoPO serverInfoPO = serverService
.serverGetByPage(serverQueryEntity)
.getRecords()
.get(0);
System.out.println("serverInfoPO = " + serverInfoPO);
projectDeployContext.setMasterNode(serverInfoPO);