Skip to content

Commit

Permalink
chore: testData -> testdata (#1560)
Browse files Browse the repository at this point in the history
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
  • Loading branch information
zroubalik committed Feb 16, 2023
1 parent 2a9a744 commit b26a1c2
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/builders/s2i/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func TestS2IScriptURL(t *testing.T) {
t.Fatal(err)
}

img, err := tarball.ImageFromPath(filepath.Join("testData", "builder.tar"), nil)
img, err := tarball.ImageFromPath(filepath.Join("testdata", "builder.tar"), nil)
if err != nil {
t.Fatal(err)
}
Expand Down
Binary file added pkg/builders/s2i/testdata/builder.tar
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/docker/pusher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func TestNonDaemonPush(t *testing.T) {
var imagesPassedToMock []string
dockerClient.imageSave = func(ctx context.Context, images []string) (io.ReadCloser, error) {
imagesPassedToMock = images
f, err := os.Open("./testData/image.tar")
f, err := os.Open("./testdata/image.tar")
if err != nil {
return nil, fmt.Errorf("failed to load image tar: %w", err)
}
Expand Down
Binary file added pkg/docker/testdata/image.tar
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/k8s/persistent_volumes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestUploadToVolume(t *testing.T) {
t.Error("got <nil> error, or error with unexpected message")
}

f, err := os.Open(filepath.Join("testData", "content.tar"))
f, err := os.Open(filepath.Join("testdata", "content.tar"))
if err != nil {
t.Fatal(err)
}
Expand Down
Binary file added pkg/k8s/testdata/content.tar
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/pipelines/tekton/pipeplines_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

func TestSourcesAsTarStream(t *testing.T) {
root := filepath.Join("testData", "fn-src")
root := filepath.Join("testdata", "fn-src")

if err := os.Mkdir(filepath.Join(root, ".git"), 0755); err != nil && !errors.Is(err, os.ErrExist) {
t.Fatal(err)
Expand Down
1 change: 1 addition & 0 deletions pkg/pipelines/tekton/testdata/fn-src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/a.out
1 change: 1 addition & 0 deletions pkg/pipelines/tekton/testdata/fn-src/hello.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello World!
1 change: 1 addition & 0 deletions pkg/pipelines/tekton/testdata/fn-src/hello.txt.lnk

0 comments on commit b26a1c2

Please sign in to comment.