[Agent][Deploy] - sz ga

This commit is contained in:
zeaslity
2024-05-29 10:37:32 +08:00
parent 46e488f891
commit 9cc5db9194
25 changed files with 11211 additions and 100 deletions

View File

@@ -73,6 +73,25 @@ func TestPullFromEntityAndSyncConditionally(t *testing.T) {
// ...其他验证逻辑...
}
func TestDownloadLoadTagUpload(t *testing.T) {
localGzipFileList := []string{
"/root/octopus_image/middle",
"/root/octopus_image/rke",
"/root/octopus_image/xjyd",
}
for _, s := range localGzipFileList {
log.InfoF("start to sync => %s", s)
targetImageFullNameList := DownloadLoadTagUpload(false, "", "", s, "172.28.0.251:8033")
utils.BeautifulPrintListWithTitle(targetImageFullNameList, "targetImageFullNameList")
}
}
func TestConcatAndUniformCmiiImage(t *testing.T) {
// 创建一个模拟的fullImageList和cmiiImageList用于测试函数的行为。这里需要根据你的实际需求来设置mock数据和预期结果。
fullImageList := []string{"image3", "image4"}