Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
42 changes: 42 additions & 0 deletions tests/ginkgo/read-cmd_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package ginkgo

import (
"path"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/replicatedcom/support-bundle/cmd"
)

var _ = Describe("Given file paths", func() {

BeforeEach(EnterNewTempDir)
AfterEach(CleanupDir)

It("And the user runs the following commands within desired locations", func() {

WriteFile("config.yml", `
specs:
- builtin: core.read-command
raw: /daemon/commands/date
config:
command: "date"
`)

err := cmd.Generate(
path.Join(tmpdir, "config.yml"),
path.Join(tmpdir, "bundle.tar.gz"),
true,
60,
)

Expect(err).To(BeNil())

contents := ReadFileFromBundle(
path.Join("bundle.tar.gz"),
"/daemon/commands/date",
)

Expect(contents).ToNot(BeEmpty())
})
})
File renamed without changes.
27 changes: 0 additions & 27 deletions vendor/github.com/Microsoft/go-winio/archive/tar/LICENSE

This file was deleted.

Loading