From 60efc73a5bd546fc9124b0fc402d804657890b51 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 27 Feb 2024 14:41:48 +0000 Subject: [PATCH] Update dependency org.jvnet.hudson.plugins:analysis-pom to v7.3.0 (#245) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ulli Hafner --- pom.xml | 9 +++------ .../status/BuildStatusChecksPublisherITest.java | 12 ++++++------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 4ad9440c..c295d2d6 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.jvnet.hudson.plugins analysis-pom - 7.1.0 + 7.3.0 @@ -18,12 +18,11 @@ Defines an API for Jenkins to publish checks to SCM platforms. - 2.0.3 + 2.1.0 -SNAPSHOT jenkinsci/${project.artifactId}-plugin - 1.19.0 - 4.1.0 + 1.19.6 @@ -45,7 +44,6 @@ io.jenkins.plugins plugin-util-api - ${plugin-util-api.version} io.jenkins.plugins @@ -58,7 +56,6 @@ io.jenkins.plugins plugin-util-api - ${plugin-util-api.version} tests test diff --git a/src/test/java/io/jenkins/plugins/checks/status/BuildStatusChecksPublisherITest.java b/src/test/java/io/jenkins/plugins/checks/status/BuildStatusChecksPublisherITest.java index a37397e3..0147e901 100644 --- a/src/test/java/io/jenkins/plugins/checks/status/BuildStatusChecksPublisherITest.java +++ b/src/test/java/io/jenkins/plugins/checks/status/BuildStatusChecksPublisherITest.java @@ -156,7 +156,7 @@ public void shouldPublishStageDetails() { ChecksDetails details = checksDetails.get(0); assertThat(details.getStatus()).isEqualTo(ChecksStatus.QUEUED); assertThat(details.getConclusion()).isEqualTo(ChecksConclusion.NONE); - assertThat(details.getName()).isPresent().get().isEqualTo("Test Status"); + assertThat(details.getName()).isPresent().contains("Test Status"); assertThat(details.getOutput()).isNotPresent(); // Details 1, first stage @@ -164,7 +164,7 @@ public void shouldPublishStageDetails() { assertThat(details.getStatus()).isEqualTo(ChecksStatus.IN_PROGRESS); assertThat(details.getConclusion()).isEqualTo(ChecksConclusion.NONE); assertThat(details.getOutput()).isPresent().get().satisfies(output -> { - assertThat(output.getTitle()).isPresent().get().isEqualTo("In progress"); + assertThat(output.getTitle()).isPresent().contains("In progress"); assertThat(output.getSummary()).isPresent().get().satisfies(StringUtils::isBlank); assertThat(output.getText()).isPresent().get().asString().contains("* Simple Stage *(running)*"); }); @@ -174,16 +174,16 @@ public void shouldPublishStageDetails() { assertThat(details.getOutput()).isPresent().get().satisfies(output -> { assertThat(output.getSummary()).isPresent().get().satisfies(StringUtils::isBlank); assertThat(output.getText()).isPresent().get().satisfies(text -> { - assertThat(output.getTitle()).isPresent().get().isEqualTo("In progress"); - assertThat(text).matches(Pattern.compile(".*\\* Simple Stage \\*\\([^)]+\\)\\*.*", Pattern.DOTALL)); - assertThat(text).contains(" * In parallel *(running)*"); + assertThat(output.getTitle()).isPresent().contains("In progress"); + assertThat(text).doesNotContain("* Simple Stage *(running)*"); + assertThat(text).contains("* Simple Stage", "* In parallel *(running)*"); }); }); // Details 6, p1s1 has finished and emitted unstable details = checksDetails.get(6); assertThat(details.getOutput()).isPresent().get().satisfies(output -> { - assertThat(output.getTitle()).isPresent().get().isEqualTo("In parallel/p1/p1s1: warning in 'unstable' step"); + assertThat(output.getTitle()).isPresent().contains("In parallel/p1/p1s1: warning in 'unstable' step"); assertThat(output.getSummary()).isPresent().get().asString().isEqualToIgnoringNewLines("" + "### `In parallel / p1 / p1s1 / Set stage result to unstable`\n" + "Warning in `unstable` step, with arguments `something went wrong`.\n"