From 59be5d5cec37678cfd12d5220189abfc423a7617 Mon Sep 17 00:00:00 2001 From: Alexandru-Eusebiu Epure Date: Thu, 20 Jul 2017 15:29:24 +0300 Subject: [PATCH] REPO-2644: REST API: Delete Application Audit Entries - add TAS-level sanity test Refactor existing TAS test. --- .../org/alfresco/rest/audit/DeleteAuditCoreTests.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/audit/DeleteAuditCoreTests.java b/e2e-test/java/org/alfresco/rest/audit/DeleteAuditCoreTests.java index 493e1b6a7..5d0a4e94f 100644 --- a/e2e-test/java/org/alfresco/rest/audit/DeleteAuditCoreTests.java +++ b/e2e-test/java/org/alfresco/rest/audit/DeleteAuditCoreTests.java @@ -48,10 +48,12 @@ public class DeleteAuditCoreTests extends AuditTest String secondId = restAuditEntryCollection.getEntries().get(restAuditEntryCollection.getPagination().getCount() - 1) .onModel().getId(); - restClient.authenticateUser(userModel).withParams("where=(id BETWEEN ("+firstId+","+secondId+"))").withCoreAPI().usingAudit().deleteAuditEntriesForAnAuditApplication(restAuditAppModel.getId()); + restClient.authenticateUser(userModel).withParams("where=(id BETWEEN (" + firstId + "," + secondId + "))").withCoreAPI() + .usingAudit().deleteAuditEntriesForAnAuditApplication(restAuditAppModel.getId()); restClient.assertStatusCodeIs(HttpStatus.FORBIDDEN); - - restClient.authenticateUser(adminUser).withParams("where=(id BETWEEN ("+firstId+","+secondId+"))").withCoreAPI().usingAudit().deleteAuditEntriesForAnAuditApplication(restAuditAppModel.getId()); + + restClient.authenticateUser(adminUser).withParams("where=(id BETWEEN (" + firstId + "," + secondId + "))").withCoreAPI() + .usingAudit().deleteAuditEntriesForAnAuditApplication(restAuditAppModel.getId()); restClient.assertStatusCodeIs(HttpStatus.NO_CONTENT); restAuditEntryCollection = restClient.authenticateUser(adminUser).withParams("where=(id BETWEEN ("+firstId+","+secondId+"))").withCoreAPI().usingAudit()