INNER CODE UNIT · Go
TestBuildDockerfileNotInContext
genuinetools/img · build_test.go:88
func TestBuildDockerfileNotInContext(t *testing.T) {
name := "testbuilddockerfilenotincontext"
run(t, "build", "-t", name, "-f", "testdata/Dockerfile.test-build-dockerfile-not-in-context", "types")
}
func TestBuildDockerfileNotInContextRoot(t *testing.T) {
name := "testbuilddockerfilenotincontextroot"
run(t, "build", "-t", name, "-f", "testdata/Dockerfile.test-build-dockerfile-not-in-context", ".")
}
// Make sure the client exits with the correct exit code.
// https://github.com/genuinetools/img/issues/101
func TestBuildDockerfileFailing(t *testing.T) {
name := "testbuilddockerfilefailing"
args := []string{"build", "-t", name, "-f", "testdata/Dockerfile.test-build-failing", "."}