[ Agent ] [ Executor ] - fix bugs
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user