From 57117657e46594f6e716ef388768774903002fbd Mon Sep 17 00:00:00 2001 From: Abel Hu Date: Wed, 26 Feb 2025 00:54:46 +0000 Subject: [PATCH] chore: replace endpoint in Mooncake --- vhdbuilder/packer/test/linux-vhd-content-test.sh | 2 +- vhdbuilder/packer/test/windows-files-check.ps1 | 2 +- vhdbuilder/packer/test/windows-vhd-content-test.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vhdbuilder/packer/test/linux-vhd-content-test.sh b/vhdbuilder/packer/test/linux-vhd-content-test.sh index 7593df2d85e..66165055e25 100644 --- a/vhdbuilder/packer/test/linux-vhd-content-test.sh +++ b/vhdbuilder/packer/test/linux-vhd-content-test.sh @@ -216,7 +216,7 @@ testPackagesInstalled() { echo $test "[INFO] File ${downloadedPackage} exists and has the correct size ${fileSizeDownloaded} bytes" # Validate whether package exists in Azure China cloud if [[ $downloadURL == https://acs-mirror.azureedge.net/* ]]; then - mcURL="${downloadURL/https:\/\/acs-mirror.azureedge.net/https:\/\/kubernetesartifacts.blob.core.chinacloudapi.cn}" + mcURL="${downloadURL/https:\/\/acs-mirror.azureedge.net/https:\/\/mirror.azk8s.cn}" echo "Validating: $mcURL" isExist=$(curl -sLI "$mcURL" | grep -i "404 The specified blob does not exist." | awk '{print $2}') if [[ "$isExist" == "404" ]]; then diff --git a/vhdbuilder/packer/test/windows-files-check.ps1 b/vhdbuilder/packer/test/windows-files-check.ps1 index 25dd097d16f..9a6cb7d5cd5 100644 --- a/vhdbuilder/packer/test/windows-files-check.ps1 +++ b/vhdbuilder/packer/test/windows-files-check.ps1 @@ -197,7 +197,7 @@ function Test-CompareSingleDir { } if ($URL.StartsWith("https://acs-mirror.azureedge.net/")) { - $mcURL = $URL.replace("https://acs-mirror.azureedge.net/", "https://kubernetesartifacts.blob.core.chinacloudapi.cn/") + $mcURL = $URL.replace("https://acs-mirror.azureedge.net/", "https://mirror.azk8s.cn/") $mooncakeFileSize = (Invoke-WebRequest $mcURL -UseBasicParsing -Method Head).Headers.'Content-Length' diff --git a/vhdbuilder/packer/test/windows-vhd-content-test.ps1 b/vhdbuilder/packer/test/windows-vhd-content-test.ps1 index 83f68858a8d..d72f152da09 100644 --- a/vhdbuilder/packer/test/windows-vhd-content-test.ps1 +++ b/vhdbuilder/packer/test/windows-vhd-content-test.ps1 @@ -167,7 +167,7 @@ function Test-FilesToCacheOnVHD if ( $URL.StartsWith("https://acs-mirror.azureedge.net/")) { - $mcURL = $URL.replace("https://acs-mirror.azureedge.net/", "https://kubernetesartifacts.blob.core.chinacloudapi.cn/") + $mcURL = $URL.replace("https://acs-mirror.azureedge.net/", "https://mirror.azk8s.cn/") try { # It's too slow to download the file from the China Cloud. So we only compare the file size.