Skip to content

Commit fdcbab7

Browse files
julienptgummerer
andauthored
Test that git is installed (#276)
Every image should include git. Add a test that ensures this is the case. Fixes #271 --------- Co-authored-by: Thomas Gummerer <[email protected]>
1 parent 797a4a4 commit fdcbab7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/containers_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,15 @@ func TestEnvironment(t *testing.T) {
406406
require.NoError(t, err)
407407
})
408408

409+
// All images must include git. Deployments uses this to checkout the source code.
410+
t.Run("Git", func(t *testing.T) {
411+
t.Parallel()
412+
413+
cmd := exec.Command("git", "--version")
414+
err := cmd.Run()
415+
require.NoError(t, err)
416+
})
417+
409418
t.Run("Workdir", func(t *testing.T) {
410419
t.Parallel()
411420
// Kitchen sink does not set `WORKDIR`.

0 commit comments

Comments
 (0)