Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v8 downports of Cloud Native Buildpacks lifecycle support #3281

Merged
merged 10 commits into from
Nov 18, 2024
Prev Previous commit
Next Next commit
Add cnb related integration tests and cats configuration
Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>
  • Loading branch information
pbusko and modulo11 committed Nov 18, 2024

Verified

This commit was signed with the committer’s verified signature.
commit 056fefc25f42beeaf1e61eb6229339daa0113bb8
14 changes: 14 additions & 0 deletions integration/v7/isolated/app_command_test.go
Original file line number Diff line number Diff line change
@@ -407,6 +407,20 @@ applications:
})
})

When("the app is a CNB app", func() {
BeforeEach(func() {
helpers.WithProcfileApp(func(appDir string) {
Eventually(helpers.CF("push", appName, "-p", appDir, "--lifecycle", "cnb", "-b", "docker://gcr.io/paketo-buildpacks/ruby:latest")).Should(Exit())
})
})

It("displays the app buildpacks", func() {
session := helpers.CF("app", appName)
Eventually(session).Should(Say(`paketo-buildpacks\/ruby`))
Eventually(session).Should(Exit(0))
})
})

When("the app has tcp routes", func() {
var tcpDomain helpers.Domain

12 changes: 12 additions & 0 deletions integration/v7/isolated/create_app_command_test.go
Original file line number Diff line number Diff line change
@@ -105,6 +105,18 @@ var _ = Describe("create-app command", func() {
Eventually(session).Should(Say("docker image:"))
Eventually(session).Should(Exit(0))
})

It("creates the app with the cnb app type", func() {
session := helpers.CF("create-app", appName, "--app-type", "cnb", "-b", "docker://foobar.test")
userName, _ := helpers.GetCredentials()
Eventually(session).Should(Say("Creating app %s in org %s / space %s as %s...", appName, orgName, spaceName, userName))
Eventually(session).Should(Say("OK"))
Eventually(session).Should(Exit(0))

session = helpers.CF("app", appName)
Eventually(session).ShouldNot(Say("docker image:"))
Eventually(session).Should(Exit(0))
})
})
})