Files
ProjectOctopus/agent-go/executor/ImageFunction_test.go
2024-03-28 15:15:47 +08:00

26 lines
593 B
Go

package executor
import (
"fmt"
"strconv"
"testing"
"wdd.io/agent-common/utils"
)
func TestAgentOsOperator_Sync(t *testing.T) {
// imageFullName gzipFolderPrefix gzipFileName ossUrlPrefix proxyUrl targetHarborHost namespace targetImageFullName
funcArgs := []string{
"harbor.cdcyy.com.cn/cmii/busybox:0326",
"/root/octopus_image/",
"",
"https://oss.demo.uavcmlc.com/cmlc-installation/tmp/",
"",
"",
"",
}
sync, strings := agentOP.Sync("DOWNLOAD_DOCKER_IMAGE", funcArgs...)
fmt.Println("func result are => " + strconv.FormatBool(sync))
utils.BeautifulPrint(strings)
}