Skip to content

Commit

Permalink
Add test for systemd-timesyncd
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
  • Loading branch information
fgiudici committed May 27, 2022
1 parent 92efa75 commit e9839fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ go 1.14
require (
github.com/onsi/ginkgo v1.16.4
github.com/onsi/gomega v1.17.0
github.com/rancher-sandbox/ele-testhelpers v0.0.0-20220527092239-c748f8731b8e
github.com/rancher-sandbox/ele-testhelpers v0.0.0-20220527172218-91e4b18a1c7e
)
2 changes: 2 additions & 0 deletions tests/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rancher-sandbox/ele-testhelpers v0.0.0-20220527092239-c748f8731b8e h1:GOEpRuhhyJU7fllZh3RqFX9wT10VyxORxB2hHAkTc6s=
github.com/rancher-sandbox/ele-testhelpers v0.0.0-20220527092239-c748f8731b8e/go.mod h1:VCKQij8+FXOxg0C9ivjdcdo5hBBfMBmk5Aa2gP421w0=
github.com/rancher-sandbox/ele-testhelpers v0.0.0-20220527172218-91e4b18a1c7e h1:R9dgCfDf0+ZKe5lPuFKmr22UTB7v0E7C2Nm4U3DTLtk=
github.com/rancher-sandbox/ele-testhelpers v0.0.0-20220527172218-91e4b18a1c7e/go.mod h1:VCKQij8+FXOxg0C9ivjdcdo5hBBfMBmk5Aa2gP421w0=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
Expand Down
7 changes: 7 additions & 0 deletions tests/smoke/smoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ var _ = Describe("cOS Smoke tests", func() {
})

Context("After install", func() {

It("has default services on", func() {
for _, svc := range []string{"systemd-timesyncd"} {
sut.SystemdUnitIsActive(svc, s)
}
})

It("can boot into passive", func() {
err := s.ChangeBootOnce(sut.Passive)
Expect(err).ToNot(HaveOccurred())
Expand Down

0 comments on commit e9839fa

Please sign in to comment.