Add ArtifactNode to test, now we get the gen Dockerfile in the diff

This commit is contained in:
Ettore Di Giacinto
2020-12-12 15:22:42 +01:00
parent 78442c91fc
commit 265e2371b4
2 changed files with 8 additions and 2 deletions

View File

@@ -103,7 +103,10 @@ RUN echo bar > /test2`))
Expect(b.ImageDefinitionToTar(opts2)).ToNot(HaveOccurred())
Expect(helpers.Exists(filepath.Join(tmpdir, "output2.tar"))).To(BeTrue())
artifacts := []ArtifactNode{}
artifacts := []ArtifactNode{{
Name: "/luetbuild/LuetDockerfile",
Size: 175,
}}
if os.Getenv("DOCKER_BUILDKIT") == "1" {
artifacts = append(artifacts, ArtifactNode{Name: "/etc/resolv.conf", Size: 0})
}