SetupBuildpackWithStack makes and uploads a buildpack for the given stack.
(buildpackName, stack string)
| 56 | |
| 57 | // SetupBuildpackWithStack makes and uploads a buildpack for the given stack. |
| 58 | func SetupBuildpackWithStack(buildpackName, stack string) { |
| 59 | BuildpackWithStack(func(buildpackPath string) { |
| 60 | session := CF("create-buildpack", buildpackName, buildpackPath, "99") |
| 61 | Eventually(session).Should(Say("OK")) |
| 62 | Eventually(session).Should(Say("OK")) |
| 63 | Eventually(session).Should(Exit(0)) |
| 64 | }, stack) |
| 65 | } |
| 66 | |
| 67 | // SetupBuildpackWithoutStack makes and uploads a buildpack without a stack. |
| 68 | func SetupBuildpackWithoutStack(buildpackName string) { |
no test coverage detected