Skip to content

Commit

Permalink
using pushed images from the registry instead of packaging with build…
Browse files Browse the repository at this point in the history
…packstore

checking in case of any error
  • Loading branch information
pacostas committed Apr 16, 2024
1 parent fc4e6d0 commit 45daefe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion integration.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"ubi-nodejs-extension": "github.com/paketo-community/ubi-nodejs-extension",
"node-engine": "github.com/paketo-buildpacks/node-engine",
"npm-install": "github.com/paketo-buildpacks/npm-install",
"watchexec": "github.com/paketo-buildpacks/watchexec"
"watchexec": "index.docker.io/paketobuildpacks/watchexec"
}
14 changes: 7 additions & 7 deletions integration/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/BurntSushi/toml"
"github.com/onsi/gomega/format"
"github.com/paketo-buildpacks/occam"
"github.com/paketo-buildpacks/occam/packagers"
"github.com/sclevine/spec"
"github.com/sclevine/spec/report"

Expand Down Expand Up @@ -53,6 +52,8 @@ var settings struct {
}

func TestIntegration(t *testing.T) {
var docker = occam.NewDocker()

format.MaxLength = 0
Expect := NewWithT(t).Expect
SetDefaultEventuallyTimeout(10 * time.Second)
Expand All @@ -74,8 +75,6 @@ func TestIntegration(t *testing.T) {
Expect(err).ToNot(HaveOccurred())

buildpackStore := occam.NewBuildpackStore()
libpakBuildpackStore := occam.NewBuildpackStore().WithPackager(packagers.NewLibpak())

pack := occam.NewPack()

builder, err := pack.Builder.Inspect.Execute()
Expand All @@ -99,10 +98,11 @@ func TestIntegration(t *testing.T) {
settings.Buildpacks.NPMInstall.Online, err = buildpackStore.Get.
Execute(settings.Config.NPMInstall)
Expect(err).ToNot(HaveOccurred())

settings.Buildpacks.Watchexec.Online, err = libpakBuildpackStore.Get.
Execute(settings.Config.Watchexec)
Expect(err).ToNot(HaveOccurred())
settings.Buildpacks.Watchexec.Online = settings.Config.Watchexec
err = docker.Pull.Execute(settings.Buildpacks.Watchexec.Online)
if err != nil {
t.Fatalf("Failed to pull %s: %s", settings.Buildpacks.Watchexec.Online, err)
}

suite := spec.New("Integration", spec.Report(report.Terminal{}), spec.Parallel())
suite("Default", testDefault)
Expand Down

0 comments on commit 45daefe

Please sign in to comment.