Skip to content

Commit

Permalink
Fix leftovers
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Dec 5, 2024
1 parent 9e10cd4 commit 8a64936
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/plugins/systemctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
. "github.com/onsi/gomega"
)

var _ = Describe("Systemctl", Focus, func() {
var _ = Describe("Systemctl", func() {
Context("parsing yip file", func() {
testConsole := consoletests.TestConsole{}
BeforeEach(func() {
Expand Down Expand Up @@ -71,7 +71,6 @@ var _ = Describe("Systemctl", Focus, func() {
Expect(consoletests.Commands).Should(BeEmpty())
content, err := fs.ReadFile("/etc/systemd/system/foo.service.d/override-yip.conf")
Expect(err).ToNot(HaveOccurred())
fmt.Println(string(content))
Expect(string(content)).Should(Equal("[Unit]\nbar=baz"))
})
It("creates override files if service is given without extension", func() {
Expand All @@ -94,7 +93,6 @@ var _ = Describe("Systemctl", Focus, func() {
Expect(consoletests.Commands).Should(BeEmpty())
content, err := fs.ReadFile("/etc/systemd/system/foo.service.d/override-yip.conf")
Expect(err).ToNot(HaveOccurred())
fmt.Println(string(content))
Expect(string(content)).Should(Equal("[Unit]\nbar=baz"))
})
It("creates override files with custom override file name", func() {
Expand All @@ -121,7 +119,6 @@ var _ = Describe("Systemctl", Focus, func() {
Expect(consoletests.Commands).Should(BeEmpty())
content, err := fs.ReadFile("/etc/systemd/system/foo.service.d/override-foo.conf")
Expect(err).ToNot(HaveOccurred())
fmt.Println(string(content))
Expect(string(content)).Should(Equal("[Unit]\nbar=baz"))
})
It("creates override files with custom override file name missing the extension", func() {
Expand All @@ -148,7 +145,6 @@ var _ = Describe("Systemctl", Focus, func() {
Expect(consoletests.Commands).Should(BeEmpty())
content, err := fs.ReadFile("/etc/systemd/system/foo.service.d/override-foo.conf")
Expect(err).ToNot(HaveOccurred())
fmt.Println(string(content))
Expect(string(content)).Should(Equal("[Unit]\nbar=baz"))
})
It("doesn't do anything if service name is missing", func() {
Expand Down

0 comments on commit 8a64936

Please sign in to comment.