Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Moreno <[email protected]>
  • Loading branch information
alemorcuq committed Sep 29, 2024
1 parent 8458f11 commit 3eeee7b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions integration/kubeseal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,21 @@ var _ = Describe("kubeseal", func() {
})
})

var _ = Describe("kubeseal (with invalid input)", func() {
var input io.Reader
var output *bytes.Buffer
var args []string

BeforeEach(func() {
output = &bytes.Buffer{}
})

It("should throw an error", func() {
err := runKubeseal(args, input, output)
Expect(err).To(HaveOccurred())
})
})

var _ = Describe("kubeseal --fetch-cert", func() {
var c corev1.CoreV1Interface
var input io.Reader
Expand Down

0 comments on commit 3eeee7b

Please sign in to comment.