Skip to content

Commit

Permalink
Test that git is installed (#276)
Browse files Browse the repository at this point in the history
Every image should include git. Add a test that ensures this is the
case.

Fixes #271

---------

Co-authored-by: Thomas Gummerer <[email protected]>
  • Loading branch information
julienp and tgummerer authored Sep 23, 2024
1 parent 797a4a4 commit fdcbab7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/containers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,15 @@ func TestEnvironment(t *testing.T) {
require.NoError(t, err)
})

// All images must include git. Deployments uses this to checkout the source code.
t.Run("Git", func(t *testing.T) {
t.Parallel()

cmd := exec.Command("git", "--version")
err := cmd.Run()
require.NoError(t, err)
})

t.Run("Workdir", func(t *testing.T) {
t.Parallel()
// Kitchen sink does not set `WORKDIR`.
Expand Down

0 comments on commit fdcbab7

Please sign in to comment.