Skip to content

Commit

Permalink
feature: #639 fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-lcapellino committed Jul 2, 2024
1 parent 1d7215e commit 5659c08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,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: Consumption of asset '40276218-e31b-4c35-a7c8-017e8edb702e' is not permitted as the required catalog offer policies are expired."))
.body("content[0].messages[1].errorMessage", Matchers.is("Failed to negotiate contract agreement: Consumption of asset '40276218-e31b-4c35-a7c8-017e8edb702e' is not permitted as the required catalog offer policies are expired."));
.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."));

notificationMessageSupport.assertMessageSize(2);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ void shouldNotApproveInvestigationStatus_whenPolicyDoesNotComply() throws JoseEx
.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: Consumption of asset '40276218-e31b-4c35-a7c8-017e8edb702e' is not permitted as the required catalog offer policies do not comply with defined policies."))
.body("content[0].messages[1].errorMessage", Matchers.is("Failed to negotiate contract agreement: Consumption of asset '40276218-e31b-4c35-a7c8-017e8edb702e' is not permitted as the required catalog offer policies do not comply with defined policies."));
.body("content[0].messages[0].errorMessage", Matchers.endsWith("did not match with policy from BPNL00000003CNKC."))
.body("content[0].messages[1].errorMessage", Matchers.endsWith("did not match with policy from BPNL00000003CNKC."));

notificationMessageSupport.assertMessageSize(2);
}
Expand Down

0 comments on commit 5659c08

Please sign in to comment.