[Cmii][ImageSync] -Image Function
This commit is contained in:
@@ -21,7 +21,7 @@ var agentOP = &AgentOsOperator{
|
||||
AgentServerInfo: ®ister.AgentServerInfo{
|
||||
ServerName: "",
|
||||
ServerIPPbV4: "",
|
||||
ServerIPInV4: "10.250.0.147",
|
||||
ServerIPInV4: "10.250.0.100",
|
||||
ServerIPPbV6: "",
|
||||
ServerIPInV6: "",
|
||||
Location: "",
|
||||
|
||||
24
agent-go/executor/ImageFunction_test.go
Normal file
24
agent-go/executor/ImageFunction_test.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user