* [ SEARCH-2330 ] AlfrescoCoreAdminHandler START/STOP (no logic) + Unit tests * [ SEARCH-2330 ] Activatable + ActivatableTracker * [ SEARCH-2330 ] AbstractShardInformationPublisher and NodeStatePublisher removed (replaced by ShardStatePublisher) * [ SEARCH-2330 ] Test fixes * [ SEARCH-2330 ] Fix ClassCastException on ShardStatePublisher * [ SEARCH-2330 ] Fix Unnecessary Stubbing * [ SEARCH-2330 ] ActivatableTrackerTest * [ SEARCH-2330 ] Fix action changes (it depends on the indexing state) * [ SEARCH-2330 ] Purge on stop/start * [ SEARCH-2330 ] Rollback on scheduled maintenance + Unit tests * [ SEARCH-2330 ] Persist indexing state across core reloads * [ SEARCH-2330 ] Minor renaming on tests * [ SEARCH-2330 ] Fix Unit test failures * [ SEARCH-2330 ] Fix E2E * [ SEARCH-2330 ] Fix Retry expectation * [ SEARCH-2330 ] Fix Json Path in retry expectaction * [ SEARCH-2330 ] Fix ClassCastException * [ SEARCH-2330 ] Review comments addressed * [ SEARCH-2330 ] Review comments addressed (additional comments in the code)
Setup
The automated test project requires a running instance of ACS Repo and Search Services at the least. To run Insight Engine tests, minimum version of Repo is ACS 6.0, additionally running instance of Insight Engine would be necessary too. For more details about the related projects or their deployment see: [Search-Discovery] (https://git.alfresco.com/search_discovery) and (https://github.com/Alfresco/SearchServices).
Prerequisites
Java 11
Maven 3.2.0
Alfresco Content Services 5.2.2 or above
Search Services 1.2.0 or above or Insight Engine 1.0.0 or above
Bring the Test Environment up
-
ACS + Search Services Healthcheck: Please ensure that repo admin console > Search Services uses the right port and shows tracking status.
-
Solr Healthcheck can be performed using solr admin console at:
<protocol>://<repo-host-ip>:<solr-port>/solr/#
e.g. http://localhost:8983/solr/#
Compile the project
mvn clean install -DskipTests
Run the tests
mvn clean install
Run a specific class of tests
mvn clean install -Dtest=<class>
e.g.
mvn clean install -Dtest=CustomModelTest