From f9eaf82c84be511d0c96660692e216dfd7c79487 Mon Sep 17 00:00:00 2001 From: zongz Date: Sun, 8 Oct 2023 10:19:25 +0800 Subject: [PATCH] fix: bump the latest version of k8s in test case Signed-off-by: zongz --- pkg/client/client_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index 29c50c18..3ad87411 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -96,18 +96,18 @@ func TestDownloadLatestOci(t *testing.T) { dep, err := kpmcli.Download(&depFromOci, testPath) assert.Equal(t, err, nil) assert.Equal(t, dep.Name, "k8s") - assert.Equal(t, dep.FullName, "k8s_1.27") - assert.Equal(t, dep.Version, "1.27") + assert.Equal(t, dep.FullName, "k8s_1.28") + assert.Equal(t, dep.Version, "1.28") assert.Equal(t, dep.Sum, "xnYM1FWHAy3m+KcQMQb2rjZouTxumqYt6FGZpu2T4yM=") assert.NotEqual(t, dep.Source.Oci, nil) assert.Equal(t, dep.Source.Oci.Reg, "ghcr.io") assert.Equal(t, dep.Source.Oci.Repo, "kcl-lang/k8s") - assert.Equal(t, dep.Source.Oci.Tag, "1.27") - assert.Equal(t, dep.LocalFullPath, testPath+"1.27") + assert.Equal(t, dep.Source.Oci.Tag, "1.28") + assert.Equal(t, dep.LocalFullPath, testPath+"1.28") assert.Equal(t, err, nil) // Check whether the tar downloaded by `kpm add` has been deleted. - assert.Equal(t, utils.DirExists(filepath.Join(testPath, "k8s_1.27.tar")), false) + assert.Equal(t, utils.DirExists(filepath.Join(testPath, "k8s_1.28.tar")), false) err = os.RemoveAll(getTestDir("download")) assert.Equal(t, err, nil)