mirror of https://github.com/knative/func.git
chore: `testData` -> `testdata` (#1560)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
This commit is contained in:
parent
2a9a744501
commit
b26a1c29b3
|
@ -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)
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -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)
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -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)
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -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)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
**/a.out
|
|
@ -0,0 +1 @@
|
|||
Hello World!
|
|
@ -0,0 +1 @@
|
|||
hello.txt
|
Loading…
Reference in New Issue