mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Created AuthenticationService-specific config for audit tests
- Makes for a clearer demonstration of API-based auditing git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17693 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -72,7 +72,7 @@ public class AuditComponentTest extends TestCase
|
||||
{
|
||||
private static final String APPLICATION_TEST = "Alfresco Test";
|
||||
private static final String APPLICATION_ACTIONS_TEST = "Actions Test";
|
||||
private static final String APPLICATION_API_TEST = "API Test";
|
||||
private static final String APPLICATION_API_TEST = "Test AuthenticationService";
|
||||
|
||||
private static final Log logger = LogFactory.getLog(AuditComponentTest.class);
|
||||
|
||||
@@ -454,12 +454,10 @@ public class AuditComponentTest extends TestCase
|
||||
|
||||
public void testAuditAuthenticationService() throws Exception
|
||||
{
|
||||
final Map<String, Serializable> expected = new HashMap<String, Serializable>();
|
||||
expected.put("/actions-test/actions/user", AuthenticationUtil.getFullyAuthenticatedUser());
|
||||
expected.put("/actions-test/actions/context-node/noderef", nodeRef);
|
||||
expected.put("/actions-test/actions/action-01/params/A/value", null);
|
||||
expected.put("/actions-test/actions/action-01/params/B/value", null);
|
||||
expected.put("/actions-test/actions/action-01/params/C/value", null);
|
||||
// Load in the config for this specific test: alfresco-audit-test-authenticationservice.xml
|
||||
URL testModelUrl = ResourceUtils.getURL("classpath:alfresco/audit/alfresco-audit-test-authenticationservice.xml");
|
||||
auditModelRegistry.registerModel(testModelUrl);
|
||||
auditModelRegistry.loadAuditModels();
|
||||
|
||||
final List<Map<String, Serializable>> results = new ArrayList<Map<String,Serializable>>();
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
|
Reference in New Issue
Block a user