Skip to content

Commit

Permalink
Merge pull request #1192 from eclipse-tractusx/bug/#639-fix-policy-ex…
Browse files Browse the repository at this point in the history
…pired-error-message

bug: #639 fix policy expired message
  • Loading branch information
ds-mwesener authored Jul 10, 2024
2 parents d412c92 + d67b10e commit 790277b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ SPDX-License-Identifier: Apache-2.0
<junit-bom.version>5.10.2</junit-bom.version>
<awaitility.version>4.2.1</awaitility.version>
<!-- TODO https://github.com/eclipse-tractusx/traceability-foss/issues/978 update to the cx release version of irs lib IMPORTANT NO SNAPSHOT-->
<irs-client-lib.version>2.1.1</irs-client-lib.version>
<irs-client-lib.version>2.1.4</irs-client-lib.version>
<json-schema-validator.version>5.4.0</json-schema-validator.version>
<!-- Sonar related properties -->
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ void shouldNotApproveInvestigationStatus_whenPolicyIsExpired() throws JoseExcept
.body("pageSize", Matchers.is(10))
.body("content", Matchers.hasSize(1))
.body("content[0].sendTo", Matchers.is(Matchers.not(Matchers.blankOrNullString())))
.body("content[0].messages[0].errorMessage", Matchers.is("Failed to negotiate contract agreement: Policy from BPNL00000003CNKC has expired."))
.body("content[0].messages[1].errorMessage", Matchers.is("Failed to negotiate contract agreement: Policy from BPNL00000003CNKC has expired."));
.body("content[0].messages[0].errorMessage", Matchers.is("Failed to negotiate contract agreement: Policy [policy1] has expired."))
.body("content[0].messages[1].errorMessage", Matchers.is("Failed to negotiate contract agreement: Policy [policy1] has expired."));

notificationMessageSupport.assertMessageSize(2);

Expand Down

0 comments on commit 790277b

Please sign in to comment.