Skip to content

Commit

Permalink
chore: move test files to testdata folder
Browse files Browse the repository at this point in the history
  • Loading branch information
alphanota committed Jan 29, 2025
1 parent 79daa05 commit 6999eb3
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func TestRun(t *testing.T) {

func TestRunWithImagePullPolicy(t *testing.T) {

miniKubeRunArgs := []string{"image", "build", "examples/image-pull-policy", "-f", "Dockerfile", "-t", "test-image:build-locally"}
miniKubeRunArgs := []string{"image", "build", "testdata/image-pull-policy", "-f", "Dockerfile", "-t", "test-image:build-locally"}
imagePullPolicyTests := []struct {
description string
skipBuildingLocalImage bool
Expand All @@ -244,18 +244,18 @@ func TestRunWithImagePullPolicy(t *testing.T) {
}{
{
description: "'Never' image pull policy works if image is present locally",
dir: "examples/image-pull-policy/never",
dir: "testdata/image-pull-policy/never",
pods: []string{"getting-started"},
},
{
description: "'Always' doesn't actually pull and reads a local image that doesn't exist remotely",
dir: "examples/image-pull-policy/always",
dir: "testdata/image-pull-policy/always",
pods: []string{"getting-started"},
},
{
description: "'IfNotPresent' pulls the remote image",
skipBuildingLocalImage: true,
dir: "examples/image-pull-policy/if-not-present",
dir: "testdata/image-pull-policy/if-not-present",
pods: []string{"getting-started"},
},
}
Expand Down

0 comments on commit 6999eb3

Please sign in to comment.