mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user