Improve git buildcontext integration test

Build a dockerfile that will copy the LICENSE from the kaniko github repository into the image to make sure the git buildcontext works as expected.
This commit is contained in:
Priya Wadhwa
2019-05-23 16:12:20 +02:00
parent 2fc8a7f4bc
commit 317d1b7017
2 changed files with 3 additions and 1 deletions
@@ -0,0 +1,2 @@
FROM scratch
COPY LICENSE ./LICENSE
+1 -1
View File
@@ -237,7 +237,7 @@ func TestRun(t *testing.T) {
func TestGitBuildcontext(t *testing.T) {
repo := "github.com/GoogleContainerTools/kaniko"
dockerfile := "integration/dockerfiles/Dockerfile_test_run_2"
dockerfile := "integration/dockerfiles/Dockerfile_git_buildcontext"
// Build with docker
dockerImage := GetDockerImage(config.imageRepo, "Dockerfile_test_git")