Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
95 0 0 0 100% 44.477

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.exoplatform.commons.search.integration 34 0 0 0 100% 37.542
org.exoplatform.commons.search.index 31 0 0 0 100% 1.992
org.exoplatform.commons.search.es.client 20 0 0 0 100% 0.857
org.exoplatform.commons.search.es 8 0 0 0 100% 0.177
org.exoplatform.commons.search.dao 2 0 0 0 100% 3.909

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.exoplatform.commons.search.integration

Class Tests Errors Failures Skipped Success Rate Time
PermissionsFilterIT 12 0 0 0 100% 15.327
ElasticSearchingIT 5 0 0 0 100% 4.232
IndexMigrationIT 1 0 0 0 100% 4.684
ElasticIndexingIT 8 0 0 0 100% 4.518
SiteFilterIT 3 0 0 0 100% 3.855
ElasticIndexingAttachmentIT 5 0 0 0 100% 4.926

org.exoplatform.commons.search.index

Class Tests Errors Failures Skipped Success Rate Time
ElasticOperationProcessorTest 19 0 0 0 100% 1.431
QueueIndexingServiceTest 12 0 0 0 100% 0.561

org.exoplatform.commons.search.es.client

Class Tests Errors Failures Skipped Success Rate Time
ElasticIndexingClientTest 12 0 0 0 100% 0.689
ElasticContentRequestBuilderTest 4 0 0 0 100% 0.119
ElasticSearchingClientTest 4 0 0 0 100% 0.049

org.exoplatform.commons.search.es

Class Tests Errors Failures Skipped Success Rate Time
ElasticSearchServiceConnectorTest 8 0 0 0 100% 0.177

org.exoplatform.commons.search.dao

Class Tests Errors Failures Skipped Success Rate Time
IndexingOperationDAOTest 2 0 0 0 100% 3.909

Test Cases

[Summary] [Package List] [Test Cases]

ElasticSearchServiceConnectorTest

testMembership 0.056
testSortRelevancyIsEqual_score 0.002
testOrderIsDescByDefault 0.002
testSortIsRelevancyByDefault 0.002
testHighlightParamsAreSetByDefault 0.002
testDateRelevancyIsEqualLastUpdatedDate 0.002
testScoresAreTracked 0.003
testSearchWithoutIdentity 0.002

ElasticIndexingClientTest

createIndex_indexNotExists_requestIsSentToES 0.318
sendCUDRequest_IfCUDOperation_bulkRequestShouldBeSentToElastic 0.021
sendCreateTypeRequest_IfCreateNewType_requestShouldBeSentToElastic 0.01
sendBulkRequest_forEveryDocument_callAuditTrail 0.012
createIndex_callAuditTrail 0.009
createType_notAuthenticated_throwsException 0.008
sendBulkRequest_fullLogNotEnabled_auditTrailNotCalled 0.008
createIndex_indexAlreadyExists_noRequestIsSentToES 0.007
sendCreateIndexRequest_IfCreateNewIndex_requestShouldBeSentToElastic 0.009
deleteType_callAuditTrail 0.008
sendDeleteTypeRequest_IfCreateNewType_deleteRequestShouldBeSentToElastic 0.008
createType_callAuditTrail 0.009

ElasticContentRequestBuilderTest

getCreateIndexRequestContent_ifSimpleConnector_shouldReturnIndexJSONSettings 0.011
getCreateDocumentRequestContent_ifSimpleConnectorAndEntityId_shouldReturnCreateQuery 0.046
getUpdateDocumentRequestContent_ifSimpleConnectorAndEntityId_shouldReturnUpdateQuery 0.006
getDeleteDocumentRequestContent_ifSimpleConnectorAndEntityId_shouldReturnDeleteQuery 0.005

ElasticSearchingClientTest

sendSearchRequest_fullLogNotEnabledAndErrorRequest_auditTrailCalled 0.008
sendSearchRequest_fullLogNotEnabledAndSuccessRequest_auditTrailNotCalled 0.008
sendSearchRequest_successRequest_callAuditTrailWithSuccessMessage 0.007
sendSearchRequest_errorRequest_callAuditTrailWithErrorMessage 0.007

IndexingOperationDAOTest

testIndexingQueueCreation 1.625
testDatabaseAutoGeneratingTimestamp 0.036

ElasticOperationProcessorTest

process_ifCreateOperation_allOldestAndNewestUpdateOperationsWithSameEntityIdStillInQueueShouldBeCanceled 0.059
addConnector_ifConnectorAlreadyExist_connectorNotAdded 0.055
process_ifReindexAll_requestIsSent 0.052
process_ifAllOperationsInQueue_requestShouldBeSentInAnExpectedOrder 0.048
process_ifDeleteOperation_allNewestUpdateOperationsWithSameEntityIdStillInQueueShouldBeCanceled 0.049
process_ifDeleteAllOperation_allOldestCreateUpdateDeleteOperationsWithSameTypeStillInQueueShouldBeCanceled 0.046
process_ifDeleteOperation_allNewestCreateOperationsStillInQueueShouldBeProcessed 0.048
process_ifAllOperationsInQueue_requestShouldBeCreatedInAnExpectedOrder 0.046
process_ifDeleteAllOperation_allNewestUpdateOperationsWithSameEntityTypeIdStillInQueueShouldBeCanceled 0.053
process_ifDeleteAllOperation_allNewestCreateDeleteOperationsStillInQueueShouldBeProcessed 0.049
addConnector_ifNewConnector_connectorAdded 0.048
process_ifDeleteOperation_allOldestCreateOperationsWithSameEntityIdStillInQueueShouldBeCanceled 0.048
process_ifReindexAll_idsAreProcessedAsBatch 0.054
process_ifAllOperationsInQueue_requestShouldContinueOnException 0.051
addConnector_ifConnectorAlreadyExist_initIndexingQueueNotCreated 0.046
deleteAll_whateverTheResult_addToAuditTrail 0.049
reindexAll_whateverTheResult_addToAuditTrail 0.047
process_ifBulkRequestReachedSizeLimit_requestIsSent 0.055
process_ifAllOperationsInQueue_requestShouldNotBeSentIfDocumentsAreNull 0.048

QueueIndexingServiceTest

reindex_ifUpdateOperation_updateIndexingQueueCreated 0.026
index_ifEntityIdNull_IllegalArgumentException 0.023
unindex_ifEntityIdBlank_IllegalArgumentException 0.023
unindexAll_ifDeleteAllOperation_deleteAllIndexingQueueCreated 0.023
index_ifEntityIdBlank_IllegalArgumentException 0.023
reindex_ifEntityIdBlank_IllegalArgumentException 0.023
unindex_ifEntityIdNull_IllegalArgumentException 0.023
reindexAll_commandsAreInsertedInIndexingQueue 0.024
unindex_ifDeleteOperation_deleteIndexingQueueCreated 0.024
reindex_ifEntityIdNull_IllegalArgumentException 0.024
index_ifCreateOperation_createIndexingQueueCreated 0.023
init_ifInitOperation_initIndexingQueueCreated 0.024

PermissionsFilterIT

test_moreThanOneMembership_notfound 3.121
test_search_doesntReturnBobPage 0.265
test_searchWithMembership_returnsPage 0.333
test_membership_dev_dev 0.255
test_membership_dev_xxx 0.17
test_search_returnsAlicePage 0.19
test_membership_dev_star 0.168
test_membership_star_dev 0.172
test_moreThanOnePermission_found 0.168
test_moreThanOnePermission_notfound 0.159
test_membership_xxx_dev 0.145
test_moreThanOneMembership_found 0.165

ElasticSearchingIT

testSearchingDocument 0.143
testExcerpt 0.145
testSearchingDocument_NoTypeSpecify 0.159
testSearchingDocument_NoIndexSpecify 0.182
testSearchingDocument_NoIndexAndTypeSpecify 0.178

IndexMigrationIT

test_migration 1.325

ElasticIndexingIT

testDeleteIndex 0.118
testMoveIndexAliasToAnotherIndex 0.127
testIndexingDocument 0.126
testCountObjectsInIndex 0.146
testCreateNewIndex 0.109
testDeleteType 0.143
testCreateNewIndexAlias 0.108
testCreateNewType 0.104

SiteFilterIT

test_searchIntranetSite_returnsDocumentNoAttachToSite 0.203
test_searchIntranetSite_returnsIntranetDocument 0.161
test_searchIntranetSite_returnsNoDocumentAttachToOtherSite 0.136

ElasticIndexingAttachmentIT

testDeleteAllDocuments 1.006
testSearchAttachment 0.169
testCreateNewPipeline 0.115
testIndexAttachment 0.129
testCreateNewAttachmentType 0.108