Issue-ID: CPS-2826
Change-Id: I34ac7f26c9b081c77bfbb2ba2fc18edf583e3d7d
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
checkPermission(yangModelCmHandle, requestParameters.toTargetFdn(), operationDetails);
} catch (final Exception exception) {
final String httpMethodName = "PATCH";
- final OperationType operationType = OperationType.fromOperationName(operationDetails.operation());
- throw toProvMnSException(httpMethodName, exception, operationType.name());
+ throw toProvMnSException(httpMethodName, exception, patchItem.getOp().getValue());
}
}
}
assert response.status == CONFLICT.value()
and: 'response contains the correct type'
assert response.contentAsString.contains('"type":"APPLICATION_LAYER_ERROR"')
+ and: 'response contains the bad operation'
+ assert response.contentAsString.contains('"badOp":"replace"')
and: 'response contains the message from Policy Executor (as title)'
assert response.contentAsString.contains('"title":"denied for test"')
}