Files
immucore/pkg/mount/mounts_test.go
Itxaka 4083ff691d Mark rd.cos.disable sentinel as livecd (#46)
Original cos-immutable-rootfs sets the sentinel to livecd if it finds
the rd.cos.disable in the cmdline.

We should do the same. Unfortunately the state sdk doesnt support that
yet so we have to do it on our side until its supported

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-02-17 09:27:12 +01:00

24 lines
590 B
Go

package mount
import (
"github.com/kairos-io/immucore/internal/utils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("mount utils", func() {
BeforeEach(func() {
})
Context("ReadCMDLineArg", func() {
It("splits arguments from cmdline", func() {
Skip("No way of overriding the cmdline yet")
Expect(len(utils.ReadCMDLineArg("testvalue/key="))).To(Equal(1))
})
It("returns properly for stanzas without value", func() {
Skip("No way of overriding the cmdline yet")
Expect(len(utils.ReadCMDLineArg("singlevalue"))).To(Equal(1))
})
})
})