Skip to content

Commit

Permalink
Drop test, no longer applicable
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Jul 31, 2023
1 parent 091d997 commit 5779e38
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/provider_decentralized_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ var _ = Describe("kairos decentralized k8s test", Label("provider", "provider-de
err := vm.Scp(configPath, "/tmp/config.yaml", "0770")
Expect(err).ToNot(HaveOccurred())

out, _ := vm.Sudo("kairos-agent --debug manual-install --device auto /tmp/config.yaml")
out, _ := vm.Sudo("kairos-agent manual-install --device auto /tmp/config.yaml")
Expect(out).Should(ContainSubstring("Running after-install hook"), out)
fmt.Printf(out)
By("rebooting machine")
vm.Reboot()

By("waiting until it reboots to installed system")
Expand Down Expand Up @@ -105,10 +103,11 @@ var _ = Describe("kairos decentralized k8s test", Label("provider", "provider-de

Expect(out).Should(ContainSubstring("Kairos remote recovery"))

grub, err := vm.Sudo("cat /tmp/mnt/STATE/grub_oem_env")
Expect(err).ToNot(HaveOccurred(), grub)

Expect(grub).Should(ContainSubstring("default_menu_entry=Kairos"))
// No longer used. This is created to override the default entry but now the default entry is kairos already
// TODO: Create a test in acceptance to check for the creation of this file and if it has the correct override entry
//grub, err := vm.Sudo("cat /tmp/mnt/STATE/grub_oem_env")
//Expect(err).ToNot(HaveOccurred(), grub)
//Expect(grub).Should(ContainSubstring("default_menu_entry=Kairos"))

out, err = vm.Sudo("umount /tmp/mnt/STATE")
Expect(err).ToNot(HaveOccurred(), out)
Expand Down

0 comments on commit 5779e38

Please sign in to comment.