[Cmii][ImageSync] -Image Function

This commit is contained in:
zeaslity
2024-03-26 14:21:05 +08:00
committed by zeaslity
parent 20ba7a9f38
commit 0bc6ecc75d
4 changed files with 87 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ var agentOP = &AgentOsOperator{
AgentServerInfo: &register.AgentServerInfo{
ServerName: "",
ServerIPPbV4: "",
ServerIPInV4: "10.250.0.147",
ServerIPInV4: "10.250.0.100",
ServerIPPbV6: "",
ServerIPInV6: "",
Location: "",

View File

@@ -0,0 +1,24 @@
package executor
import (
"fmt"
"strconv"
"testing"
"wdd.io/agent-common/utils"
)
func TestAgentOsOperator_Sync(t *testing.T) {
funcArgs := []string{
"",
"",
"",
"",
"",
"",
"",
}
sync, strings := agentOP.Sync("DOWNLOAD_DOCKER_IMAGE", funcArgs...)
fmt.Println("func result are => " + strconv.FormatBool(sync))
utils.BeautifulPrint(strings)
}