Skip to content

Commit

Permalink
test reset+reinstall with actual build, not previous k0s
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Nov 7, 2024
1 parent 5acccab commit 5bf0e3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ func TestResetAndReinstallAirgap(t *testing.T) {

t.Logf("%s: downloading airgap file", time.Now().Format(time.RFC3339))
airgapBundlePath := "/tmp/airgap-bundle.tar.gz"
err := downloadAirgapBundle(t, fmt.Sprintf("appver-%s-previous-k0s", os.Getenv("SHORT_SHA")), airgapBundlePath, os.Getenv("AIRGAP_LICENSE_ID"))
err := downloadAirgapBundle(t, fmt.Sprintf("appver-%s", os.Getenv("SHORT_SHA")), airgapBundlePath, os.Getenv("AIRGAP_LICENSE_ID"))
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -812,7 +812,7 @@ func TestResetAndReinstallAirgap(t *testing.T) {
}

t.Logf("%s: checking installation state after app deployment", time.Now().Format(time.RFC3339))
line = []string{"check-airgap-installation-state.sh", fmt.Sprintf("appver-%s-previous-k0s", os.Getenv("SHORT_SHA")), k8sVersionPrevious()}
line = []string{"check-airgap-installation-state.sh", fmt.Sprintf("appver-%s-previous-k0s", os.Getenv("SHORT_SHA")), k8sVersion()}
if _, _, err := tc.RunCommandOnNode(0, line); err != nil {
t.Fatalf("fail to check installation state: %v", err)
}
Expand All @@ -837,7 +837,7 @@ func TestResetAndReinstallAirgap(t *testing.T) {
}

t.Logf("%s: checking installation state after app deployment", time.Now().Format(time.RFC3339))
line = []string{"check-airgap-installation-state.sh", fmt.Sprintf("appver-%s-previous-k0s", os.Getenv("SHORT_SHA")), k8sVersionPrevious()}
line = []string{"check-airgap-installation-state.sh", fmt.Sprintf("appver-%s-previous-k0s", os.Getenv("SHORT_SHA")), k8sVersion()}
if _, _, err := tc.RunCommandOnNode(0, line); err != nil {
t.Fatalf("fail to check installation state: %v", err)
}
Expand Down

0 comments on commit 5bf0e3d

Please sign in to comment.