[server][ executor]- 完成同步调用命令的部分代码

This commit is contained in:
zeaslity
2023-02-28 15:36:53 +08:00
parent c51fdaad13
commit c36721eada
13 changed files with 535 additions and 91 deletions

View File

@@ -1,6 +1,6 @@
package io.wdd.server;
import io.wdd.rpc.execute.service.CoreExecutionService;
import io.wdd.rpc.execute.service.AsyncExecutionService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@@ -13,7 +13,7 @@ class ServerApplicationTests {
@Resource
CoreExecutionService coreExecutionService;
AsyncExecutionService asyncExecutionService;
@Test
void testCoreExecutionCompleteScript() {
@@ -61,7 +61,7 @@ class ServerApplicationTests {
)
);
List<String> resultList = coreExecutionService.SendCommandToAgentComplete(
List<String> resultList = asyncExecutionService.SendCommandToAgentComplete(
targetMachineList,
"Scheduled Script",
completeScript