Skip to content

Commit

Permalink
Set legacy password for upgrade test
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed May 2, 2024
1 parent 4e25e1d commit 44bca09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make/Makefile.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endif

.PHONY: test-active
test-active: prepare-test
VM_PID=$$(scripts/run_vm.sh vmpid) go run $(GINKGO) $(GINKGO_ARGS) ./tests/wait-active
VM_PID=$$(scripts/run_vm.sh vmpid) COS_PASS=cos go run $(GINKGO) $(GINKGO_ARGS) ./tests/wait-active

.PHONY: prepare-installer-test
prepare-installer-test:
Expand Down Expand Up @@ -63,7 +63,7 @@ test-downgrade: test-active

.PHONY: test-upgrade
test-upgrade: test-active
VM_PID=$$(scripts/run_vm.sh vmpid) go run $(GINKGO) $(GINKGO_ARGS) ./tests/upgrade -- $(UPGRADE_ARGS)
VM_PID=$$(scripts/run_vm.sh vmpid) COS_PASS=cos go run $(GINKGO) $(GINKGO_ARGS) ./tests/upgrade -- $(UPGRADE_ARGS)

.PHONY: test-deps
test-deps:
Expand Down
5 changes: 5 additions & 0 deletions tests/upgrade/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ var _ = Describe("Elemental Feature tests", func() {
By("setting /oem/chroot_hooks.yaml")
err := s.SendFile("../assets/chroot_hooks.yaml", "/oem/chroot_hooks.yaml", "0770")
Expect(err).ToNot(HaveOccurred())

// Upgrade tests might not include it as it booted from an older disk image.
err = s.SendFile("../assets/remote_login.yaml", "/oem/remote_login.yaml", "0770")
Expect(err).ToNot(HaveOccurred())

originalVersion := s.GetOSRelease("TIMESTAMP")

By(fmt.Sprintf("and upgrading to %s", comm.UpgradeImage()))
Expand Down

0 comments on commit 44bca09

Please sign in to comment.