Skip to content

Commit

Permalink
Merge pull request #364 from buildpack/feature/inspect-image
Browse files Browse the repository at this point in the history
Feature/inspect image
  • Loading branch information
ekcasey authored Oct 22, 2019
2 parents 9174427 + b9bdde6 commit b82a4ad
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,11 @@ func testAcceptance(t *testing.T, when spec.G, it spec.S, builder, runImageMirro
t.Log("cacher adds layers")
h.AssertContainsMatch(t, output, `(?i)\[cacher] (Caching|adding) layer 'simple/layers:cached-launch-layer'`)

t.Log("inspect-image")
cmd = packCmd(packPath, "inspect-image", repoName)
output = h.Run(t, cmd)

if packSupports(packPath, "inspect-image") {
t.Log("inspect-image")
cmd = packCmd(packPath, "inspect-image", repoName)
output = h.Run(t, cmd)

outputTemplate := filepath.Join(packFixturesDir, "inspect_image_local_output.txt")
if _, err := os.Stat(outputTemplate); err != nil {
t.Fatal(err.Error())
Expand Down Expand Up @@ -649,10 +649,10 @@ func testAcceptance(t *testing.T, when spec.G, it spec.S, builder, runImageMirro
t.Log("app is runnable")
assertMockAppRunsWithOutput(t, repoName, "Launch Dep Contents", "Cached Dep Contents")

t.Log("inspect-image")
output = h.Run(t, packCmd(packPath, "inspect-image", repoName))

if packSupports(packPath, "inspect-image") {
t.Log("inspect-image")
output = h.Run(t, packCmd(packPath, "inspect-image", repoName))

outputTemplate := filepath.Join(packFixturesDir, "inspect_image_published_output.txt")
if _, err := os.Stat(outputTemplate); err != nil {
t.Fatal(err.Error())
Expand Down

0 comments on commit b82a4ad

Please sign in to comment.