Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
117 0 0 2 98.291% 12.859

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.module.resources.mapping 6 0 0 0 100% 1.01
info.magnolia.module.resources.setup 60 0 0 0 100% 8.717
info.magnolia.module.resources.renderers 14 0 0 0 100% 0.454
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.001
info.magnolia.module.resources 34 0 0 2 94.118% 2.677

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

info.magnolia.module.resources.mapping

Class Tests Errors Failures Skipped Success Rate Time
URI2ResourcesRepositoryMappingRepositoryTest 4 0 0 0 100% 0.992
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.018

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
ResourceCleanUpTaskTest 12 0 0 0 100% 1.475
InstallTextResourceTaskTest 6 0 0 0 100% 0.017
TemplateMigrationTaskTest 13 0 0 0 100% 0.034
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.007
ResourcesModuleVersionHandlerTest 16 0 0 0 100% 6.707
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.009
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.034
InstallTextResourcesTaskTest 4 0 0 0 100% 0.434

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.306
ResourcesBinaryRendererTest 6 0 0 0 100% 0.148

info.magnolia.module.resources.loaders

Class Tests Errors Failures Skipped Success Rate Time
FileSystemResourceLoaderTest 3 0 0 0 100% 0.001

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
ResourceLinkerTest 10 0 0 1 90% 0.009
ResourcesModuleResourceFilterTest 3 0 0 0 100% 1.977
DelegateResourceVoterTest 5 0 0 0 100% 0.617
ResourcesServletTest 11 0 0 1 90.909% 0.074
ResourceTypesTest 5 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.151
cleansUpBinaryPropertiesAnyway 0.109
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.112
cleanUpMagnoliaPropertiesAnyway 0.119
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.111
doNothingIfConstructedWithEmptyPaths 0.166
bypassIfExtensionAlreadyInNodeName 0.11
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.104
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.159
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.107
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.112
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.115

ResourceLinkerTest

ignoresNonExistingResource 0.004
ignoresExternalLinks 0
fingerPrintDoesNotLeaveTrailingDotForResourcesWithoutExtension 0.001
linkWithoutProtocol 0
We currently do not support links without protocol even though this style of links is common to be used nowadays
farFutureFingerPrintIsAddedForKnownResources 0
servletMappingIsCleanedUp 0.002
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0
farFutureFingerPrintCantBeAddedForUnknownResources 0.001
downloadPathPrefixIsCleanedUp 0
ignoresDotResourcesPrefixForExistingResource 0.001

InstallTextResourceTaskTest

differentEncoding 0.001
extensionIsNotStrippedFromResourceFile 0.003
extensionIsStrippedFromResourceFile 0.003
resourceTemplatesAreNotRewritten 0.004
resourceDoesntExist 0.003
installNewResource 0.003

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 1.408
matchesByLocation 0.274
matchesAllowedExtensionsByType 0.271

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.321
doesNotMatchExtensionIsForbidden 0.24
matchesAllowedExtensions 0.245
matchesAllowedDirectories 0.186

TemplateMigrationTaskTest

makeSureAdditionalTaskIsNotExecutedWhenMigrationIsNotPassing 0.012
templateThatIsNotEnabledWillNotBeHandled 0.003
templateWillBeDeletedWhenAutoImportTrueAndResourceExists 0.001
templateIsMigratedWhenAutoImportTrueAndNoResourceExist 0.001
taskWillFailWhenAutoImportFalseAndResourceExistsWithDifferentContent 0.004
templateIsMigratedWhenAutoImportTrueAndNoResourceExistAndTemplateIsInFolderThatDoesNotExistInDest 0.001
templateIsMigratedWhenAutoImportFalseAndNoResourceExist 0
templateIsMigratedWhenAutoImportFalseAndResourceInOtherOriginExist 0.005
templateWillBeDeletedWhenAutoImportFalseAndResourceExistsWithSameContent 0
makeSureAdditionalTaskIsExecutedWhenMigrationPasses 0.001
taskWillNotFailWhenRepositoryExceptionIsEncounteredWhileGettingSession 0.001
templateIsMigratedAndActivationStatusIsNotCopied 0.002
taskWillNotFailWhenNoTemplatesWorkspaceEncountered 0.001

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0.007

ResourcesModuleVersionHandlerTest

updateFrom262 0.528
upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.58
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.555
testUpgradeFrom15 0.613
testUpgradeTo201RemovesVersionCommand 0.497
updateFrom26 0.27
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.425
cleanInstallAddsByPassNode 0.357
updateFrom153DoesNotReBootstrapNonExistingYAMLTemplate 0.522
updateFrom247RemovesLegacyUriACLs 0.316
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.406
updateFrom247BootstrapsResourceVoter 0.284
testUpgradeTo201BootstrapsCommands 0.428
updateFrom247RemoveLegacyYamlTemplate 0.285
upgradeTo24InstallsMappingForNewResourceServlet 0.33
upgradeTo242ChangesJavascriptContentType 0.311

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 0.117
blankResourcesVoteFalse 0.142
allowsAcceptedExtensions 0.148
noResourceFilterIsConsideredAsWhiteListingEverything 0.103
filtersNotAcceptedExtensions 0.107

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0
testGetStreamRelativePath 0
testGetStream 0

InstallBinaryResourcesTaskTest

executeDontStripExtensions 0.001
executeStripExtensions 0.005
invalidJcrCharsAreReplaced 0.003

ResourcesServletTest

serveResourceWithCacheInfix 0.023
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.004
cachingOfResourcesIsDisabledInDevMode 0.004
resourceNotFoundIsNotProcessed2 0.005
newResourceIsServedWithLastModifiedHeaders 0.009
restrictedResourceTypesShouldReturn404 0.005
resourceIsServedWithContentTypeHeader 0.004
serveResourceWithSimpleCacheInfix 0.006
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.005
blankResourceReturns400 0.005

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.017
getHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.133
testRenderJavascriptDecoded 0.013
testOnRenderNoProcessed 0.012
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.013
testOnRenderProcessedByPass 0.103
testRenderCssDecoded 0.012
testOnRenderNoProcessedByPass 0.009
testOnRenderProcessed 0.01

InstallBinaryResourceTaskTest

execute 0.011
extensionIsNotStrippedFromResourceFile 0.007
extensionIsStrippedFromResourceFile 0.006
worksWhenResourceNodeIsAlreadyExisting 0.005
resourceDoesntExist 0.005

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallTextResourcesTaskTest

differentEncoding 0.116
settingExistingPropertyWithNullValueDoesNotThrowException 0.105
extensionIsNotStrippedFromResourceFile 0.103
extensionIsStrippedFromResourceFile 0.109

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.036
testResourceLoadedFromClassPath 0.048
testResourceLoadedFromContentNode 0.005
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.006
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.007
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.038

Failure Details

[Summary] [Package List] [Test Cases]


linkWithoutProtocol
skipped: We currently do not support links without protocol even though this style of links is common to be used nowadays
unmodifiedResourceReturns304
skipped: Until MGNLRES-139 is solved