Skip to content

Commit

Permalink
Skip test on pack versions that aren't fixed yet
Browse files Browse the repository at this point in the history
Signed-off-by: Natalie Arellano <[email protected]>
  • Loading branch information
natalieparellano committed Nov 13, 2023
1 parent 5451248 commit 63cf11a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,7 @@ func testAcceptance(

when("buildpackage is in a registry", func() {
it("adds the buildpacks to the builder and runs them", func() {
h.SkipIf(t, !pack.SupportsFeature(invoke.PlatformRetries), "")
packageImageName = registryConfig.RepoName("buildpack-" + h.RandString(8))

packageTomlPath := generatePackageTomlWithOS(t, assert, pack, tmpDir, "package_for_build_cmd.toml", imageManager.HostOS())
Expand Down
4 changes: 4 additions & 0 deletions acceptance/invoke/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ const (
ForceRebase
BuildpackFlatten
MetaBuildpackFolder
PlatformRetries
)

var featureTests = map[Feature]func(i *PackInvoker) bool{
Expand Down Expand Up @@ -262,6 +263,9 @@ var featureTests = map[Feature]func(i *PackInvoker) bool{
MetaBuildpackFolder: func(i *PackInvoker) bool {
return i.atLeast("v0.30.0")
},
PlatformRetries: func(i *PackInvoker) bool {
return i.atLeast("v0.32.1")
},
}

func (i *PackInvoker) SupportsFeature(f Feature) bool {
Expand Down

0 comments on commit 63cf11a

Please sign in to comment.