Skip to content

Commit

Permalink
fix dl.k8s.io tests
Browse files Browse the repository at this point in the history
dl.k8s.io should point to cdn.dl.k8s.io now, not storage.googleapis.com
  • Loading branch information
BenTheElder committed Jul 24, 2023
1 parent 89dba0a commit abf69c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/k8s-io/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def test_dl(self):
for extra in ('', '-alpha.$rc_ver', '-beta.$rc_ver', '-rc.$rc_ver'):
self.assert_temp_redirect(
base + '/v$major_ver.$minor_ver.$patch_ver' + extra + '/$path',
'https://storage.googleapis.com/kubernetes-release/release/v$major_ver.$minor_ver.$patch_ver' + extra + '/$path',
'https://cdn.dl.k8s.io/release/v$major_ver.$minor_ver.$patch_ver' + extra + '/$path',
major_ver=rand_num(), minor_ver=rand_num(), patch_ver=rand_num(), rc_ver=rand_num(), path=rand_num())
# Not a release version
self.assert_temp_redirect(
Expand All @@ -297,11 +297,11 @@ def test_dl(self):
# A few /ci/ tests
self.assert_temp_redirect(
base + '/ci/v$ver/$path',
'https://storage.googleapis.com/k8s-release-dev/ci/v$ver/$path',
'https://storage.googleapis.com/kubernetes-release/k8s-release-dev/ci/v$ver/$path',
ver=rand_num(), path=rand_num())
self.assert_temp_redirect(
base + '/ci/latest-$ver.txt',
'https://storage.googleapis.com/k8s-release-dev/ci/latest-$ver.txt',
'https://storage.googleapis.com/kubernetes-release/k8s-release-dev/ci/latest-$ver.txt',
ver=rand_num())
# Base case
self.assert_temp_redirect(
Expand Down

0 comments on commit abf69c1

Please sign in to comment.