AuditTestUtils.java revision 7a1e3d73a8ee0234672290c47348482d67743997
/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2014 ForgeRock AS.
*/
public class AuditTestUtils {
public enum Operation {
}
static {
}
public static final Map<String, Object> createLogEntry(final String type, final Operation operation) {
"reconId", "rootActionId", "situation", "sourceObjectId", "status", "targetObjectId", "timestamp");
}
entry = createAccessEntryForReadOperation("_id", "action", "ip", "principal", FLATTENED_TEST_LIST, "status",
"timestamp", "userid");
}
"targetObjectId", "mapping");
}
FLATTENED_TEST_MAP, FLATTENED_TEST_LIST, "message", "objectId", "parentActionId", "passwordChanged",
"requester", "rev", "rootActionId", "status", "timestamp");
}
} else {
assertThat(false);
return null;
}
return entry;
}
final String ambiguousTargetObjectIds,
final String reconAction,
final String reconciling,
final String rootActionId,
final String sourceObjectId,
final String targetObjectId,
) {
// recon entry
}
return entry;
}
final String activityId,
final String parentActionId,
final String passwordChanged,
final String rootActionId,
) {
return entry;
}
) {
return entry;
}
final String rootActionId,
final String sourceObjectId,
final String targetObjectId,
) {
return entry;
}
public static void checkLogEntry(final String type, final Map<String, Object> result, final Operation operation) {
} else {
assertThat(false);
}
}
} else {
}
// recon entry
assertThat(result.get(RECON_LOG_AMBIGUOUS_TARGET_OBJECT_IDS).equals(RECON_LOG_AMBIGUOUS_TARGET_OBJECT_IDS));
}
}
} else {
}
}
private static void checkActivityEntry(final Map<String, Object> result, final Operation operation) {
} else {
}
}
} else {
}
}
}