26 lines
593 B
Go
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)
|
|
}
|