CMD integration test

This commit is contained in:
Priya Wadhwa 2018-03-20 10:50:04 -07:00
parent 5da78632a1
commit 773d2b06fd
No known key found for this signature in database
GPG Key ID: 0D0DAFD8F7AA73AE
3 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,4 @@
FROM gcr.io/distroless/base:latest
CMD ["command", "one"]
CMD ["command", "two"]
CMD echo "hello"

View File

@ -0,0 +1,3 @@
schemaVersion: '2.0.0'
metadataTest:
cmd: ["/bin/sh", "-c", "echo \"hello\""]

View File

@ -65,6 +65,13 @@ var structureTests = []struct {
dockerBuildContext: "/workspace/integration_tests/dockerfiles/",
structureTestYamlPath: "/workspace/integration_tests/dockerfiles/test_env.yaml",
},
{
description: "test cmd",
dockerfilePath: "/workspace/integration_tests/dockerfiles/Dockerfile_test_cmd",
repo: "test-cmd",
dockerBuildContext: "/workspace/integration_tests/dockerfiles/",
structureTestYamlPath: "/workspace/integration_tests/dockerfiles/test_cmd.yaml",
},
}
type step struct {