Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
88 0 0 1 98.864% 8.296

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
info.magnolia.rest.service.command.v2 2 0 0 0 100% 0.421
info.magnolia.rest.setup 4 0 0 0 100% 4.94
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 2.071
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.498
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.341
info.magnolia.rest.service.status.v1 3 0 0 0 100% 0.025

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

info.magnolia.rest.service.command.v2

Class Tests Errors Failures Skipped Success Rate Time
CommandEndpointTest 2 0 0 0 100% 0.421

info.magnolia.rest.setup

Class Tests Errors Failures Skipped Success Rate Time
RestServicesModuleVersionHandlerTest 4 0 0 0 100% 4.94

info.magnolia.rest.service.command.v1

Class Tests Errors Failures Skipped Success Rate Time
CommandEndpointTest 9 0 0 1 88.889% 2.071

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.208
RepositoryMarshallerTest 17 0 0 0 100% 0.009
RepositoryNodeTest 2 0 0 0 100% 0.281

info.magnolia.rest.service.property.v1

Class Tests Errors Failures Skipped Success Rate Time
PropertyEndpointTest 22 0 0 0 100% 0.341

info.magnolia.rest.service.status.v1

Class Tests Errors Failures Skipped Success Rate Time
StatusEndpointTest 3 0 0 0 100% 0.025

Test Cases

[Summary] [Package List] [Test Cases]

NodeEndpointTest

testUpdateAllowsPassingIdentifierInRequestBodyIfCorrect 0.007
testCreateNodeReturnsBadRequestWhenChildrenPresentInPostBody 0.007
testCreateNodeReturnsNotFoundIfParentNodeDoesntExist 0.008
testGetNodeReturnsNotFoundIfNodeDoesntExist 0.007
testDeleteNodeReturnsNotFoundForNonExistingNode 0.008
testUpdateReturnsBadRequestIfNameDoesntMatch 0.008
testUpdateAllowsPassingPathInRequestBodyIfCorrect 0.007
testCreateNodeBelowRootNode 0.009
testGetNode 0.01
testCreateNodeReturnsBadRequestWhenNameMissing 0.008
testGetRootNodePassingEmptyStringAsPath 0.007
testUpdateAllowsPassingNameInRequestBodyIfCorrect 0.007
testCreateNodeReturnsBadRequestWhenTypeMissing 0.007
testUpdateReturnsBadRequestIfPathDoesntMatch 0.007
testCreateNode 0.009
testUpdateAddsProperties 0.008
testUpdateReturnsBadRequestIfChildrenPresentInRequest 0.007
testCreateNodeReturnsBadRequestWhenPathInPostBodyIsInconsistent 0.007
testCreateNodeAllowsPassingPathInPostBodyIfCorrect 0.006
testGetNodeWithDepthNonZeroReturnsListOfSubNodes 0.011
testDeleteNode 0.007
testGetRootNode 0.006
testUpdateAllowsPassingNodeTypeInPostBodyIfCorrect 0.006
testGetNodeWithDepthZeroReturnsNoEmptyListOfSubNodes 0.006
testCreateNodeReturnsBadRequestIfNodeWithSameNameAlreadyExists 0.005
testUpdateReturnsNotFoundIfNodeDoesntExist 0.006
testSplitExcludeNodeTypesString 0.004
testUpdateReturnsBadRequestIfIdentifierDoesntMatch 0.005
testUpdateReturnsBadRequestIfNodeTypeDoesntMatch 0.004

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.216
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.205

StatusEndpointTest

returns503IfMgnlContextSetButThereAreInstallTasks 0.024
returns503WhenMgnlContextNotSet 0
returns200WhenModuleManagerIsReady 0.001

CommandEndpointTest

testExecuteCommand 0.366
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.295
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.246
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.255
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.197
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.299
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.18
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.231

PropertyEndpointTest

testCreateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.082
testUpdateProperty 0.016
testCreateProperty 0.018
testCreateMultiValueProperty 0.014
testCreateReturnsNotFoundWhenNodeDoesntExist 0.013
testUpdatePropertyOnRootNode 0.011
testUpdateMultiValuePropertyWithSingleProperty 0.013
testDeleteReturnsNotFoundForNonExistingProperty 0.015
testCreateReturnsBadRequestIfNoValuesGiven 0.011
testDeleteProperty 0.011
testUpdateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.019
testGetReturnsNotFoundForNonExistingProperty 0.012
testCreatePropertyOnRootNodePassingEmptyStringAsPath 0.01
testUpdateReturnsNotFoundIfPropertyDoesntExist 0.01
testCreatePropertyOnRootNode 0.014
testUpdateReturnsBadRequestIfNoValuesGiven 0.011
testCreateReturnsBadRequestIfPropertyAlreadyExists 0.01
testUpdateSingleValuePropertyWithMultiValue 0.01
testCreateReturnsBadRequestWhenTypeIsUnknown 0.011
testGetReturnsPropertyValue 0.009
testUpdateReturnsBadRequestWhenTypeIsUnknown 0.009
testGetMultiValuedProperty 0.009

RepositoryMarshallerTest

testUnmarshallPropertiesFailsWhenMultipleValuesOnNonMultiValueProperty 0
testGetStringByValueBinary 0.004
testMarshallNodeWithNullExcludeString 0
testUnmarshallPropertiesFailsWhenValuesMissing 0.001
testMarshallNodeWithMultiValuedProperty 0
testMarshallNodeExcludingMetadata 0
testGetValueByTypeForBinary 0.001
testGetStringByValueDefault 0
testMarshallNodeWithExcludeNodeTypesSpecified 0
testMarshallNodeWithDepthSpecified 0
testGetValueByTypeForString 0.001
testMarshallNode 0
testGetValueByTypeForOtherTypes 0
testUnmarshallProperties 0
testUnmarshallPropertiesCanStoreMultiValueProperty 0
testUnmarshallPropertiesCanStoreMultiValuePropertyWithJustOneValue 0
testMarshallNodeIncludingMetadata 0.001

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 2.965
basicInstallAndCheckThatMethodsWereAdded 0.82
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.602
updateTo2_1_5AllowsAnonAccessToStatusEndpoint 0.485

RepositoryNodeTest

makeSureSerializationOfRepositoryNodeAndPropertyIsCorrect 0.245
makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.035

Failure Details

[Summary] [Package List] [Test Cases]


testCommandEndpointRegistration
skipped: Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific