Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.27
info.magnolia.rest.setup 4 0 0 0 100% 3.186
info.magnolia.rest.service.command.v1 9 0 0 1 88.889% 1.309
info.magnolia.rest.service.node.v1 48 0 0 0 100% 0.534
info.magnolia.rest.service.property.v1 22 0 0 0 100% 0.225
info.magnolia.rest.service.status.v1 3 0 0 0 100% 0.017

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.27

info.magnolia.rest.setup

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

info.magnolia.rest.service.command.v1

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

info.magnolia.rest.service.node.v1

Class Tests Errors Failures Skipped Success Rate Time
NodeEndpointTest 29 0 0 0 100% 0.168
RepositoryMarshallerTest 17 0 0 0 100% 0.014
RepositoryNodeTest 2 0 0 0 100% 0.352

info.magnolia.rest.service.property.v1

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

info.magnolia.rest.service.status.v1

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

Test Cases

[Summary] [Package List] [Test Cases]

NodeEndpointTest

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

CommandEndpointTest

testCommandEndpointReturnsContextAttributesInResponse 0.145
testCommandEndpointReturnsExceptionMessageAndStackTrace 0.125

StatusEndpointTest

returns503IfMgnlContextSetButThereAreInstallTasks 0.017
returns503WhenMgnlContextNotSet 0
returns200WhenModuleManagerIsReady 0

CommandEndpointTest

testExecuteCommand 0.208
testExecuteCommandReturnsInternalServerErrorIfCommandFails 0.183
testConfiguredCommandEndpointDefinitionWithoutCommandName 0.159
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinition 0.177
testConfiguredCommandEndpointDefinitionWithoutAccessDefinition 0.145
testCommandEndpointRegistration 0
Cross-testing an endpoint registration from JCR; EndpointDefinitionRegistry is well tested already, and nothing command-specific
testConfiguredCommandEndpointDefinitionWithoutCatalogDefinitionRequestingACatalog 0.153
testExecuteCommandReturnsForbiddenIfAccessToCommandIsNotAllowed 0.152
testConfiguredCommandEndpointDefinitionWithAccessDefinition 0.13

PropertyEndpointTest

testCreateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.036
testUpdateProperty 0.014
testCreateProperty 0.011
testCreateMultiValueProperty 0.01
testCreateReturnsNotFoundWhenNodeDoesntExist 0.007
testUpdatePropertyOnRootNode 0.009
testUpdateMultiValuePropertyWithSingleProperty 0.012
testDeleteReturnsNotFoundForNonExistingProperty 0.011
testCreateReturnsBadRequestIfNoValuesGiven 0.008
testDeleteProperty 0.009
testUpdateReturnsBadRequestIfMultipleValuesGivenButMultipleFlagIsFalse 0.008
testGetReturnsNotFoundForNonExistingProperty 0.008
testCreatePropertyOnRootNodePassingEmptyStringAsPath 0.009
testUpdateReturnsNotFoundIfPropertyDoesntExist 0.008
testCreatePropertyOnRootNode 0.008
testUpdateReturnsBadRequestIfNoValuesGiven 0.007
testCreateReturnsBadRequestIfPropertyAlreadyExists 0.007
testUpdateSingleValuePropertyWithMultiValue 0.006
testCreateReturnsBadRequestWhenTypeIsUnknown 0.007
testGetReturnsPropertyValue 0.008
testUpdateReturnsBadRequestWhenTypeIsUnknown 0.007
testGetMultiValuedProperty 0.006

RepositoryMarshallerTest

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

RestServicesModuleVersionHandlerTest

updateTo1_1CommandEndpointIsUpdatedToV2 1.719
basicInstallAndCheckThatMethodsWereAdded 0.759
updateTo2_0CommandEndpointRolesIsUpdatedToRestEditor 0.436
updateTo2_1_5AllowsAnonAccessToStatusEndpoint 0.248

RepositoryNodeTest

makeSureDeserializationOfRepositoryNodeAndPropertyIsConsistent 0.319
makeSureSerializationOfRepositoryNodeAndPropertyIsConsistent 0.033

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