Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Natalie Arellano <[email protected]>
  • Loading branch information
natalieparellano committed Jun 16, 2023
1 parent e618ace commit edc796f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions internal/build/lifecycle_execution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,21 @@ func testLifecycleExecution(t *testing.T, when spec.G, it spec.S) {
})
})

when("platform >= 0.12", func() {
platformAPI = api.MustParse("0.12")

it("passes run", func() {
h.AssertIncludeAllExpectedPatterns(t,
configProvider.ContainerConfig().Cmd,
[]string{"-run", "/layers/run.toml"},
)
h.AssertSliceNotContains(t,
configProvider.ContainerConfig().Cmd,
"-stack",
)
})
})

when("publish", func() {
providedPublish = true

Expand Down

0 comments on commit edc796f

Please sign in to comment.