[Exec] modify sync and async execution function
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package io.wdd.server;
|
||||
|
||||
import io.wdd.rpc.execute.service.AsyncExecutionService;
|
||||
import io.wdd.rpc.execute.service.SyncExecutionService;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@@ -13,7 +13,7 @@ class ServerApplicationTests {
|
||||
|
||||
|
||||
@Resource
|
||||
AsyncExecutionService asyncExecutionService;
|
||||
SyncExecutionService asyncExecutionService;
|
||||
|
||||
@Test
|
||||
void testCoreExecutionCompleteScript() {
|
||||
@@ -61,7 +61,7 @@ class ServerApplicationTests {
|
||||
)
|
||||
);
|
||||
|
||||
List<String> resultList = asyncExecutionService.SendCommandToAgentComplete(
|
||||
List<String> resultList = asyncExecutionService.SyncSendCommandToAgentComplete(
|
||||
targetMachineList,
|
||||
"Scheduled Script",
|
||||
completeScript
|
||||
|
||||
Reference in New Issue
Block a user