diff --git a/pkg/release/publish_test.go b/pkg/release/publish_test.go index ed41c0d95801..989d0e61941f 100644 --- a/pkg/release/publish_test.go +++ b/pkg/release/publish_test.go @@ -337,7 +337,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }{ { // success same version prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.24.0", @@ -348,7 +348,7 @@ func TestVerifyLatestUpdate(t *testing.T) { { // success version > gcsVersion (patch) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.24.1", @@ -358,7 +358,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version < gcsVersion (patch) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.24.0", @@ -369,7 +369,7 @@ func TestVerifyLatestUpdate(t *testing.T) { { // success version > gcsVersion (minor) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.25.0", @@ -379,7 +379,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version < gcsVersion (minor) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.23.0", @@ -390,7 +390,7 @@ func TestVerifyLatestUpdate(t *testing.T) { { // success version = gcsVersion (with build version) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.28.0-7+c4e17abb04728e", @@ -400,7 +400,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version > gcsVersion (with build version) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.28.0-9+aaaaaabb04728e", @@ -410,7 +410,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version < gcsVersion (with build version) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.28.0-7+c4e17abb04728e", @@ -420,7 +420,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version > gcsVersion (with build version) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.28.1-1+aaaaaabb04728e", @@ -430,7 +430,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version = gcsVersion (with build version, prerelease) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.28.0-rc.1.9+3fb5377b25ec51", @@ -440,7 +440,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version > gcsVersion (with build version, prerelease) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.28.0-rc.1.10+3fb5377b25ec51", @@ -450,7 +450,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version < gcsVersion (with build version, prerelease) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.28.0-rc.1.9+3fb5377b25ec51", @@ -460,7 +460,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version < gcsVersion (with build version, prerelease) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.28.0-beta.1.9+3fb5377b25ec51", @@ -470,7 +470,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version > gcsVersion (with build version, prerelease) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.28.0-rc.1.9+3fb5377b25ec51", @@ -480,7 +480,7 @@ func TestVerifyLatestUpdate(t *testing.T) { }, { // success version > gcsVersion (with build version, stable and prerelease) prepare: func(mock *releasefakes.FakePublisherClient, gcsVersion string) { - mock.NormalizePath("", "") + mock.NormalizePathReturns("", nil) mock.GSUtilOutputReturns(gcsVersion, nil) }, version: "v1.28.0-7+c4e17abb04728e",