chore: `testData` -> `testdata` (#1560)

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
This commit is contained in:
Zbynek Roubalik 2023-02-16 12:05:51 +01:00 committed by GitHub
parent 2a9a744501
commit b26a1c29b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 7 additions and 4 deletions

View File

@ -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)
}

BIN
pkg/builders/s2i/testdata/builder.tar vendored Normal file

Binary file not shown.

View File

@ -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)
}

BIN
pkg/docker/testdata/image.tar vendored Normal file

Binary file not shown.

View File

@ -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)
}

BIN
pkg/k8s/testdata/content.tar vendored Normal file

Binary file not shown.

View File

@ -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)

View File

@ -0,0 +1 @@
**/a.out

View File

@ -0,0 +1 @@
Hello World!

View File

@ -0,0 +1 @@
hello.txt