Fix tests (#382)

Currently run locally because CI runners have issues

- peg: sometimes the SSH command returned empty string although there
was output (https://github.com/spectrocloud/peg/pull/18)
- elemental has been replaced by kairos-agent

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
Dimitris Karakasilis
2023-05-17 18:00:24 +03:00
committed by GitHub
parent 19dfd59984
commit 68ae143c3b
3 changed files with 5 additions and 945 deletions

2
go.mod
View File

@@ -21,7 +21,7 @@ require (
github.com/onsi/gomega v1.27.6
github.com/pterm/pterm v0.12.61
github.com/samber/lo v1.38.1
github.com/spectrocloud/peg v0.0.0-20230509124120-c55d1df4dac1
github.com/spectrocloud/peg v0.0.0-20230517140709-5c01c852c557
github.com/urfave/cli/v2 v2.25.3
go.uber.org/zap v1.24.0
golang.org/x/crypto v0.9.0

944
go.sum

File diff suppressed because it is too large Load Diff

View File

@@ -80,13 +80,13 @@ var _ = Describe("kairos qr code install", Label("qrcode-install"), func() {
Eventually(func() string {
v, _ := vm.Sudo("ps aux")
return v
}, 20*time.Minute, 10*time.Second).Should(ContainSubstring("elemental install"))
}, 20*time.Minute, 10*time.Second).Should(ContainSubstring("/usr/bin/kairos-agent install"))
By("checking that the installer has terminated")
Eventually(func() string {
v, _ := vm.Sudo("ps aux")
return v
}, 10*time.Minute, 10*time.Second).ShouldNot(ContainSubstring("elemental install"))
}, 10*time.Minute, 10*time.Second).ShouldNot(ContainSubstring("/usr/bin/kairos-agent install"))
By("restarting on the installed system")
vm.Reboot()