Skip to content

Commit

Permalink
Update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Dec 17, 2024
1 parent 8d0afb7 commit 82c7910
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ fn test_web_and_worker_procfile() {
assert_contains!(
context.pack_stdout,
indoc! {"
[Discovering process types]
Procfile declares types -> web, worker
## Procfile Buildpack
- Processes
- web: `echo 'this is the web process!'`
- worker: `echo 'this is the worker process!'`
- Done (finished in < 0.1s)
"}
);

Expand Down Expand Up @@ -51,8 +55,11 @@ fn test_worker_only_procfile() {
assert_contains!(
context.pack_stdout,
indoc! {"
[Discovering process types]
Procfile declares types -> worker
## Procfile Buildpack
- Processes
- worker: `echo 'this is the worker process!'`
- Done (finished in < 0.1s)
"}
);

Expand All @@ -79,8 +86,12 @@ fn test_multiple_non_web_procfile() {
assert_contains!(
context.pack_stdout,
indoc! {"
[Discovering process types]
Procfile declares types -> worker, console
## Procfile Buildpack
- Processes
- worker: `echo 'this is the worker process!'`
- console: `echo 'this is the console process!'`
- Done (finished in < 0.1s)
"}
);

Expand Down Expand Up @@ -140,8 +151,11 @@ fn test_not_yaml_procfile() {
assert_contains!(
context.pack_stdout,
indoc! {"
[Discovering process types]
Procfile declares types -> web
## Procfile Buildpack
- Processes
- web: `echo foo: bar `
- Done (finished in < 0.1s)
"}
);
assert_contains!(context.pack_stdout, "Setting default process type 'web'");
Expand All @@ -162,8 +176,11 @@ fn test_empty_procfile() {
assert_contains!(
context.pack_stdout,
indoc! {"
[Discovering process types]
Procfile declares types -> (none)
## Procfile Buildpack
- Processes
- (none)
- Done (finished in < 0.1s)
"}
);
assert_contains!(context.pack_stdout, "no default process type");
Expand Down

0 comments on commit 82c7910

Please sign in to comment.