Skip to content

Commit

Permalink
Update test assertions to match new procfile output (#908)
Browse files Browse the repository at this point in the history
* Update test assertions to match new procfile output

* Update assertions for new procfile cnb output
  • Loading branch information
joshwlewis authored Feb 4, 2025
1 parent b9d14a5 commit 9821134
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ version = "0.0.0"

[[order.group]]
id = "heroku/procfile"
version = "3.0.1"
version = "4.0.0"
36 changes: 23 additions & 13 deletions libcnb-test/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ fn build_other_buildpack() {
assert_contains!(
context.pack_stdout,
indoc! {"
[Discovering process types]
Procfile declares types -> web, worker
## Procfile Buildpack
- Processes from `Procfile`
- web: `python3 -u -m http.server ${PORT:+\"${PORT}\"}`
- worker: `echo 'this is the worker process!'`
"}
);
},
Expand Down Expand Up @@ -77,9 +80,12 @@ fn build_workspace_composite_buildpack() {
indoc! {"
Buildpack A
Buildpack B
[Discovering process types]
Procfile declares types -> web, worker
## Procfile Buildpack
- Processes from `Procfile`
- web: `python3 -u -m http.server ${PORT:+\"${PORT}\"}`
- worker: `echo 'this is the worker process!'`
"}
);
},
Expand All @@ -101,9 +107,13 @@ fn build_multiple_buildpacks() {
context.pack_stdout,
indoc! {"
Buildpack B
[Discovering process types]
Procfile declares types -> web, worker
## Procfile Buildpack
- Processes from `Procfile`
- web: `python3 -u -m http.server ${PORT:+\"${PORT}\"}`
- worker: `echo 'this is the worker process!'`
- Done (finished in < 0.1s)
Buildpack A
"}
);
Expand Down Expand Up @@ -706,15 +716,15 @@ fn address_for_port_when_container_crashed() {
Error: No public port '12345' published for {container_name}
This normally means that the container crashed. Container logs:
## stderr:
some stderr
## stdout:
some stdout
"}
);
}

0 comments on commit 9821134

Please sign in to comment.