mirror of
https://github.com/kairos-io/provider-kairos.git
synced 2025-09-19 17:53:21 +00:00
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:
committed by
GitHub
parent
19dfd59984
commit
68ae143c3b
2
go.mod
2
go.mod
@@ -21,7 +21,7 @@ require (
|
|||||||
github.com/onsi/gomega v1.27.6
|
github.com/onsi/gomega v1.27.6
|
||||||
github.com/pterm/pterm v0.12.61
|
github.com/pterm/pterm v0.12.61
|
||||||
github.com/samber/lo v1.38.1
|
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
|
github.com/urfave/cli/v2 v2.25.3
|
||||||
go.uber.org/zap v1.24.0
|
go.uber.org/zap v1.24.0
|
||||||
golang.org/x/crypto v0.9.0
|
golang.org/x/crypto v0.9.0
|
||||||
|
@@ -80,13 +80,13 @@ var _ = Describe("kairos qr code install", Label("qrcode-install"), func() {
|
|||||||
Eventually(func() string {
|
Eventually(func() string {
|
||||||
v, _ := vm.Sudo("ps aux")
|
v, _ := vm.Sudo("ps aux")
|
||||||
return v
|
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")
|
By("checking that the installer has terminated")
|
||||||
Eventually(func() string {
|
Eventually(func() string {
|
||||||
v, _ := vm.Sudo("ps aux")
|
v, _ := vm.Sudo("ps aux")
|
||||||
return v
|
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")
|
By("restarting on the installed system")
|
||||||
vm.Reboot()
|
vm.Reboot()
|
||||||
|
Reference in New Issue
Block a user