From c27a44d711293de0aa8acb530bbd4541e80f582d Mon Sep 17 00:00:00 2001 From: Tom Page Date: Fri, 24 Mar 2023 10:14:35 +0000 Subject: [PATCH] ACS-4863 Remove test for invalid URL. This test behaves differently against community and enterprise as the double slash is treated differently. --- .../alfresco/rest/tags/nodes/GetNodeTagsTests.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/packaging/tests/tas-restapi/src/test/java/org/alfresco/rest/tags/nodes/GetNodeTagsTests.java b/packaging/tests/tas-restapi/src/test/java/org/alfresco/rest/tags/nodes/GetNodeTagsTests.java index abfcbc99e9..bab6668eb6 100644 --- a/packaging/tests/tas-restapi/src/test/java/org/alfresco/rest/tags/nodes/GetNodeTagsTests.java +++ b/packaging/tests/tas-restapi/src/test/java/org/alfresco/rest/tags/nodes/GetNodeTagsTests.java @@ -150,18 +150,6 @@ public class GetNodeTagsTests extends TagsDataPrep restClient.assertStatusCodeIs(HttpStatus.NOT_FOUND).assertLastError().containsSummary(String.format(RestErrorModel.ENTITY_NOT_FOUND, nodeRef)); } - @TestRail(section = { TestGroup.REST_API, TestGroup.TAGS }, executionType = ExecutionType.REGRESSION, - description = "Verify that if node id is empty returns status code 403") - @Test(groups = { TestGroup.REST_API, TestGroup.TAGS, TestGroup.REGRESSION}) - public void emptyNodeIdTest() throws Exception - { - FileModel badDocument = dataContent.usingSite(siteModel).usingUser(adminUserModel).createContent(CMISUtil.DocumentType.TEXT_PLAIN); - badDocument.setNodeRef(""); - - restClient.authenticateUser(adminUserModel).withCoreAPI().usingResource(badDocument).getNodeTags(); - restClient.assertStatusCodeIs(HttpStatus.NOT_FOUND).assertLastError().containsSummary(String.format(RestErrorModel.ENTITY_NOT_FOUND, "")); - } - @TestRail(section = { TestGroup.REST_API, TestGroup.TAGS }, executionType = ExecutionType.REGRESSION, description = "Verify folder tags") @Test(groups = { TestGroup.REST_API, TestGroup.TAGS, TestGroup.REGRESSION}) @@ -303,4 +291,4 @@ public class GetNodeTagsTests extends TagsDataPrep .and().field("skipCount").is("10000"); returnedCollection.assertThat().entriesListCountIs(0); } -} \ No newline at end of file +}