Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit c2842be

Browse files
committed
test: bump up fictional future version number for OLM upgrade test
Since releasing 1.0.0, the "current = 1.0" version number was not high enough anymore with the effect that the OLM upgrade test didn't actually upgrade and after a test run removed the files under deploy which were still needed.
1 parent f44deb9 commit c2842be

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

test/e2e/versionskew/operator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ var _ = deploy.DescribeForSome("versionskew", func(d *deploy.Deployment) bool {
7878
newDeploymentName = d.Name() + "---" + version
7979
} else if d.HasOLM {
8080
root := os.Getenv("REPO_ROOT")
81-
semver := current + ".0"
81+
// A future version number. Must be higher than the current one.
82+
semver := "100.0.0"
8283
defer func() {
8384
// Remove generated bundle
8485
_, err := pmemexec.RunCommand(ctx, "rm", "-rf", root+"/deploy/olm-bundle/"+semver)

test/e2e/versionskew/versionskew.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ import (
3838
const (
3939
// base is the release branch used for version skew testing. Empty if none.
4040
base = "0.9"
41-
// Expected future release version.
42-
// The version number used by the operator upgrade test for generating
43-
// the OLM bundle for current devel code.
44-
current = "1.0"
4541
)
4642

4743
func baseSupportsKubernetes(ver version.Version) bool {

0 commit comments

Comments
 (0)