Skip to content

Commit

Permalink
Add cnb related integration tests and cats configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pbusko committed Aug 5, 2024
1 parent d1aa343 commit 222346f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests-integration-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ jobs:
"include_container_networking": true,
"include_detect": true,
"include_docker": true,
"include_cnb": true,
"include_internet_dependent": true,
"include_isolation_segments": true,
"isolation_segment_name": "persistent_isolation_segment",
Expand Down Expand Up @@ -279,6 +280,7 @@ jobs:
cf api ${API} --skip-ssl-validation
cf auth
cf enable-feature-flag diego_docker
cf enable-feature-flag diego_cnb
cf enable-feature-flag service_instance_sharing
- name: Run CATS Tests
Expand Down
14 changes: 14 additions & 0 deletions integration/v7/isolated/app_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,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

Expand Down
12 changes: 12 additions & 0 deletions integration/v7/isolated/create_app_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
})
})

Expand Down

0 comments on commit 222346f

Please sign in to comment.