Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Jan 31, 2025
1 parent fbaed89 commit 824955c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildpacks/maven/tests/integration/customization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn maven_custom_opts() {
default_build_config("test-apps/simple-http-service").env("MAVEN_CUSTOM_OPTS", "-X"),
|context| {
// Assert only the options in MAVEN_CUSTOM_GOALS are used
assert_contains!(context.pack_stdout, "./mvnw -X clean install");
assert_contains!(context.pack_stdout, "Running `./mvnw -X -B clean install`");
assert_contains!(context.pack_stdout, "[DEBUG] -- end configuration --");

// -DskipTests is part of the default Maven options. We expect it to be overridden by MAVEN_CUSTOM_OPTS and
Expand Down
2 changes: 1 addition & 1 deletion buildpacks/maven/tests/integration/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fn descriptive_error_message_on_failed_build() {

assert_contains!(
context.pack_stderr,
"[Error: Unexpected Maven exit code]"
"! ERROR: Unexpected Maven exit code"
);

assert_contains!(
Expand Down
4 changes: 2 additions & 2 deletions buildpacks/maven/tests/integration/versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn with_wrapper_and_unknown_system_properties() {
UNKNOWN_MAVEN_VERSION, &path
)).expected_pack_result(PackResult::Failure),
|context| {
assert_contains!(context.pack_stderr, "[Error: Unsupported Maven version]");
assert_contains!(context.pack_stderr, "! ERROR: Unsupported Maven version");
assert_contains!(context.pack_stderr, &format!("You have defined an unsupported Maven version ({UNKNOWN_MAVEN_VERSION}) in the system.properties file."));
},
);
Expand Down Expand Up @@ -80,7 +80,7 @@ fn without_wrapper_and_unknown_system_properties() {
set_maven_version_app_dir_preprocessor(UNKNOWN_MAVEN_VERSION, &path);
}).expected_pack_result(PackResult::Failure),
|context| {
assert_contains!(context.pack_stderr, "[Error: Unsupported Maven version]");
assert_contains!(context.pack_stderr, "! ERROR: Unsupported Maven version");
assert_contains!(context.pack_stderr, &format!("You have defined an unsupported Maven version ({UNKNOWN_MAVEN_VERSION}) in the system.properties file."));
},
);
Expand Down

0 comments on commit 824955c

Please sign in to comment.