REPO-3518 : Check AMPs are included in repository image

Add DiscoveryTests#getDefaultRepositoryInstalledModules in order to verify that reference deployment (docker images) contain AOS, Share-services and google-docs AMPs
   Exclude core testgroup from restapi-acs-all-amps-suite.xml because DiscoveryTests#getDefaultRepositoryInstalledModules conflicts with DiscoveryTests#getRepositoryInstalledModules as they are ment to test different enviroments.
This commit is contained in:
Alexandru Epure
2018-06-26 21:28:59 +03:00
parent 337384b117
commit f1753e86e8
@@ -80,4 +80,24 @@ public class DiscoveryTests extends RestTest
List<String> modulesStates = restClient.onResponse().getResponse().jsonPath().getList("entry.repository.modules.installState", String.class);
assertEquals(Collections.frequency(modulesStates, "INSTALLED"), 10);
}
@Test(groups = { TestGroup.REST_API, TestGroup.DISCOVERY, TestGroup.SANITY, TestGroup.CORE })
@TestRail(section = { TestGroup.REST_API, TestGroup.DISCOVERY }, executionType = ExecutionType.SANITY,
description = "Sanity tests for GET /discovery endpoint")
public void getDefaultRepositoryInstalledModules() throws Exception
{
// Get repository info using Discovery API
restClient.authenticateUser(userModel).withDiscoveryAPI().getRepositoryInfo();
restClient.assertStatusCodeIs(HttpStatus.OK);
// Check that all modules are present
List<String> modules = restClient.onResponse().getResponse().jsonPath().getList("entry.repository.modules.id", String.class);
assertTrue(modules.contains("alfresco-aos-module"));
assertTrue(modules.contains("org.alfresco.integrations.google.docs"));
assertTrue(modules.contains("alfresco-share-services"));
// Check that all installed modules are in INSTALLED state
List<String> modulesStates = restClient.onResponse().getResponse().jsonPath().getList("entry.repository.modules.installState", String.class);
assertEquals(Collections.frequency(modulesStates, "INSTALLED"), 3);
}
}