Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Evolveum/midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed May 6, 2022
2 parents 1f7a8e8 + 7d983dc commit 6d576ca
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ public OperationResultAssert isFatalError() {
return this;
}

public OperationResultAssert isHandledError() {
isNotNull();
actual.computeStatusIfUnknown();
if (!actual.isHandledError()) {
failWithMessage("Expected operation result to be handled error: %s", actual);
}
return this;
}

public OperationResultAssert isTracedSomewhere() {
if (findTracedSubresult(actual) == null) {
failWithMessage("No traced subresult in %s", actual);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3443,8 +3443,8 @@ public void test816ModifyDynamicallyWithObjectNotFound() {
null, result))
.isInstanceOf(ObjectNotFoundException.class);

then("operation is not fatal error (nothing happens really)");
assertThatOperationResult(result).isSuccess();
and("operation result is handled error");
assertThatOperationResult(result).isHandledError();
}

// endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ public void test202GetObjectWrongOidNonFatal() {
result))
.isInstanceOf(ObjectNotFoundException.class);

and("operation result is success with minor partial error");
assertThatOperationResult(result).isSuccess();
and("operation result is handled error");
assertThatOperationResult(result).isHandledError();
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/midpoint-main-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ podTemplate(
resourceRequestCpu: '900m',
resourceRequestMemory: '1Gi'),
containerTemplate(name: 'maven',
image: 'maven:3.8.5-openjdk-11-slim',
image: "${MAVEN_IMAGE}",
ttyEnabled: true,
command: 'cat',
resourceLimitCpu: '4',
Expand Down

0 comments on commit 6d576ca

Please sign in to comment.