Skip to content

Commit

Permalink
fix for testing value of custom column property
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jul 9, 2019
1 parent 673132d commit 8ce3093
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Expand Up @@ -1304,7 +1304,6 @@ private <F extends ObjectType> void auditEvent(LensContext<F> context, AuditEven
auditRecord.setRequestIdentifier(context.getRequestIdentifier());

PrismObject<SystemConfigurationType> systemConfiguration = context.getSystemConfiguration();

SystemConfigurationAuditEventRecordingType auditEventRecordingType;
if (systemConfiguration != null) {
PrismContainer<SystemConfigurationAuditEventRecordingType> auditEventRecording = (PrismContainer) systemConfiguration.getValue().findItem(ItemPath.create("audit", "eventRecording"));
Expand All @@ -1320,7 +1319,6 @@ private <F extends ObjectType> void auditEvent(LensContext<F> context, AuditEven

if (primaryObject != null) {
auditRecord.setTarget(primaryObject.clone(), prismContext);

if (Boolean.TRUE.equals(auditEventRecordingType.isRecordResourceOids())) {
if (primaryObject.getRealValue() instanceof FocusType) {
FocusType focus = (FocusType) primaryObject.getRealValue();
Expand Down
Expand Up @@ -1187,7 +1187,7 @@ public void test131ModifyUserJackAssignAccount() throws Exception {
dummyAuditService.assertHasDelta(ChangeType.MODIFY, UserType.class);
dummyAuditService.assertHasDelta(ChangeType.ADD, ShadowType.class);
dummyAuditService.assertTarget(USER_JACK_OID);
// dummyAuditService.assertCustomColumn("foo", "test");
dummyAuditService.assertCustomColumn("foo", "test");
// dummyAuditService.assertResourceOid(RESOURCE_DUMMY_OID);
dummyAuditService.assertExecutionSuccess();

Expand Down

0 comments on commit 8ce3093

Please sign in to comment.