Skip to content

Commit

Permalink
chore: fix e2e upgrade test - add missing effective semver
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo committed Feb 5, 2025
1 parent 5e70451 commit 553f6c1
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions test/e2e/test_helm_install_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ func TestHelmUpgrade(t *testing.T) {
}

testCases := []struct {
name string
fromVersion string
toVersion string
objectsToDeploy []client.Object
upgradeToCurrent bool
assertionsAfterInstall []assertion
assertionsAfterUpgrade []assertion
name string
fromVersion string
toVersion string
objectsToDeploy []client.Object
upgradeToCurrent bool
upgradeToEffectiveSemver string
assertionsAfterInstall []assertion
assertionsAfterUpgrade []assertion
}{
{
name: "upgrade from one before latest to latest minor",
Expand Down Expand Up @@ -135,9 +136,10 @@ func TestHelmUpgrade(t *testing.T) {
},
},
{
name: "upgrade from latest minor to current",
fromVersion: "1.4.0", // renovate: datasource=docker packageName=kong/gateway-operator-oss
upgradeToCurrent: true,
name: "upgrade from latest minor to current",
fromVersion: "1.4.0", // renovate: datasource=docker packageName=kong/gateway-operator-oss
upgradeToCurrent: true,
upgradeToEffectiveSemver: "1.5.0",
objectsToDeploy: []client.Object{
&operatorv1beta1.GatewayConfiguration{
ObjectMeta: metav1.ObjectMeta{
Expand Down Expand Up @@ -332,6 +334,10 @@ func TestHelmUpgrade(t *testing.T) {
"anonymous_reports": "false",
}

if tc.upgradeToEffectiveSemver != "" {
values["image.effectiveSemver"] = tc.upgradeToEffectiveSemver
}

opts := &helm.Options{
KubectlOptions: &k8s.KubectlOptions{
Namespace: e.Namespace.Name,
Expand Down

0 comments on commit 553f6c1

Please sign in to comment.