Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Feb 1, 2025
1 parent 7e4f161 commit 67e9b09
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions e2e/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,15 @@ func TestSingleNodeUpgradePreviousStable(t *testing.T) {
t.Fatalf("fail to run playwright test deploy-app: %v: %s: %s", err, stdout, stderr)
}

// use upgraded binaries to run the commands
// TODO: this is a temporary workaround and should eventually be a feature of EC

t.Logf("%s: downloading embedded-cluster %s on node 0", time.Now().Format(time.RFC3339), appUpgradeVersion)
line = []string{"vandoor-prepare.sh", appUpgradeVersion, os.Getenv("LICENSE_ID"), "false"}
if stdout, stderr, err := tc.RunCommandOnNode(0, line); err != nil {
t.Fatalf("fail to download embedded-cluster version %s on node 0: %v: %s: %s", appUpgradeVersion, err, stdout, stderr)
}

t.Logf("%s: checking installation state after noop upgrade", time.Now().Format(time.RFC3339))
line = []string{"check-installation-state.sh", os.Getenv("SHORT_SHA"), k8sVersion()}
if stdout, stderr, err := tc.RunCommandOnNode(0, line); err != nil {
Expand Down Expand Up @@ -690,6 +699,15 @@ func TestUpgradeEC18FromReplicatedApp(t *testing.T) {
t.Fatalf("fail to run playwright test deploy-app: %v: %s: %s", err, stdout, stderr)
}

// use upgraded binaries to run the commands
// TODO: this is a temporary workaround and should eventually be a feature of EC

t.Logf("%s: downloading embedded-cluster %s on node 0", time.Now().Format(time.RFC3339), appUpgradeVersion)
line = []string{"vandoor-prepare.sh", appUpgradeVersion, os.Getenv("LICENSE_ID"), "false"}
if stdout, stderr, err := tc.RunCommandOnNode(0, line); err != nil {
t.Fatalf("fail to download embedded-cluster version %s on node 0: %v: %s: %s", appUpgradeVersion, err, stdout, stderr)
}

t.Logf("%s: checking installation state after noop upgrade", time.Now().Format(time.RFC3339))
line = []string{"check-installation-state.sh", os.Getenv("SHORT_SHA"), k8sVersion()}
if stdout, stderr, err := tc.RunCommandOnNode(0, line); err != nil {
Expand Down

0 comments on commit 67e9b09

Please sign in to comment.