Skip to content

Commit 3d50312

Browse files
author
Mikalai Radchuk
committed
Update E2E test data
Zero major version is reserved for initial development according to SemVer spec[^1] and anything may change at any time. Updates for this version behaves differently: * When version is `0.1.0` we allow versions which are >= `0.1.0` and < `0.2.0` (patch updates) * When version is `0.0.1` we allow versions which are >= `0.0.1` and < `0.0.2` (no updates) To be able to update in the second case (e.g. from `0.0.1` to `0.0.2`) users will have to set `.spec.upgradeConstraintPolicy` to `Ignore` once support for this implemented. We have unit tests for the above behaviour, but E2E test data was not updated. [^1]: https://semver.org/#spec-item-4 Signed-off-by: Mikalai Radchuk <[email protected]>
1 parent a00a93f commit 3d50312

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/operator-framework-e2e/operator_framework_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ var _ = Describe("Operator Framework E2E for plain+v0 bundles", func() {
132132
baseFolderPath: "../../testdata/bundles/plain-v0",
133133
bundles: []BundleContent{
134134
{
135-
bundleVersion: "0.1.0",
135+
bundleVersion: "1.1.0",
136136
},
137137
{
138-
bundleVersion: "0.2.0",
138+
bundleVersion: "1.2.0",
139139
},
140140
},
141141
}
@@ -146,8 +146,8 @@ var _ = Describe("Operator Framework E2E for plain+v0 bundles", func() {
146146
desiredChannelName: "beta",
147147
}
148148
operatorAction = &OperatorActionInfo{
149-
installVersion: "0.1.0",
150-
upgradeVersion: "0.2.0",
149+
installVersion: "1.1.0",
150+
upgradeVersion: "1.2.0",
151151
}
152152
for i, b := range bundleInfo.bundles {
153153
bundleInfo.bundles[i].bInputDir = catalogDInfo.operatorName + ".v" + b.bundleVersion
@@ -267,10 +267,10 @@ var _ = Describe("Operator Framework E2E for registry+v1 bundles", func() {
267267
baseFolderPath: "../../testdata/bundles/registry-v1",
268268
bundles: []BundleContent{
269269
{
270-
bundleVersion: "0.1.0",
270+
bundleVersion: "1.1.0",
271271
},
272272
{
273-
bundleVersion: "0.2.0",
273+
bundleVersion: "1.2.0",
274274
},
275275
},
276276
}
@@ -280,8 +280,8 @@ var _ = Describe("Operator Framework E2E for registry+v1 bundles", func() {
280280
operatorName: "registry-operator",
281281
}
282282
operatorAction = &OperatorActionInfo{
283-
installVersion: "0.1.0",
284-
upgradeVersion: "0.2.0",
283+
installVersion: "1.1.0",
284+
upgradeVersion: "1.2.0",
285285
}
286286
for i, b := range bundleInfo.bundles {
287287
bundleInfo.bundles[i].bInputDir = sdkInfo.projectName + ".v" + b.bundleVersion

0 commit comments

Comments
 (0)