Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
116 0 0 2 98.276% 30.948

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% 2.722
info.magnolia.module.resources.renderers 14 0 0 0 100% 1.141
info.magnolia.module.resources.setup 59 0 0 0 100% 17.047
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.031
info.magnolia.module.resources 34 0 0 2 94.118% 10.007

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% 2.678
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.044

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.325
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.816

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.05
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.062
InstallTextResourcesTaskTest 4 0 0 0 100% 1.567
InstallTextResourceTaskTest 6 0 0 0 100% 0.047
ResourceCleanUpTaskTest 12 0 0 0 100% 4.516
ResourcesModuleVersionHandlerTest 15 0 0 0 100% 10.719
TemplateMigrationTaskTest 13 0 0 0 100% 0.08
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.006

info.magnolia.module.resources.loaders

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

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
DelegateResourceVoterTest 5 0 0 0 100% 7.812
ResourceLinkerTest 10 0 0 1 90% 0.043
ResourcesModuleResourceFilterTest 3 0 0 0 100% 1.794
ResourcesServletTest 11 0 0 1 90.909% 0.358
ResourceTypesTest 5 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 4.031
blankResourcesVoteFalse 1.259
allowsAcceptedExtensions 0.926
noResourceFilterIsConsideredAsWhiteListingEverything 0.789
filtersNotAcceptedExtensions 0.807

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.025
testGetStreamRelativePath 0.005
testGetStream 0.001

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.876
doesNotMatchExtensionIsForbidden 0.551
matchesAllowedExtensions 0.658
matchesAllowedDirectories 0.593

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.043
getHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.079
testResourceLoadedFromClassPath 0.089
testResourceLoadedFromContentNode 0.02
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.022
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.028
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.087

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.372
testRenderJavascriptDecoded 0.062
testOnRenderNoProcessed 0.039
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.029
testOnRenderProcessedByPass 0.242
testRenderCssDecoded 0.024
testOnRenderNoProcessedByPass 0.026
testOnRenderProcessed 0.022

ResourceLinkerTest

ignoresNonExistingResource 0.034
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.001
servletMappingIsCleanedUp 0.004
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0.001
farFutureFingerPrintCantBeAddedForUnknownResources 0.001
downloadPathPrefixIsCleanedUp 0
ignoresDotResourcesPrefixForExistingResource 0.001

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 0.471
matchesByLocation 0.38
matchesAllowedExtensionsByType 0.943

ResourcesServletTest

serveResourceWithCacheInfix 0.074
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.044
cachingOfResourcesIsDisabledInDevMode 0.05
resourceNotFoundIsNotProcessed2 0.027
newResourceIsServedWithLastModifiedHeaders 0.03
restrictedResourceTypesShouldReturn404 0.033
resourceIsServedWithContentTypeHeader 0.017
serveResourceWithSimpleCacheInfix 0.02
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.042
blankResourceReturns400 0.021

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallBinaryResourcesTaskTest

executeDontStripExtensions 0.023
executeStripExtensions 0.011
invalidJcrCharsAreReplaced 0.016

InstallBinaryResourceTaskTest

execute 0.013
extensionIsNotStrippedFromResourceFile 0.009
extensionIsStrippedFromResourceFile 0.009
worksWhenResourceNodeIsAlreadyExisting 0.015
resourceDoesntExist 0.016

InstallTextResourcesTaskTest

differentEncoding 0.505
settingExistingPropertyWithNullValueDoesNotThrowException 0.384
extensionIsNotStrippedFromResourceFile 0.33
extensionIsStrippedFromResourceFile 0.348

InstallTextResourceTaskTest

differentEncoding 0.004
extensionIsNotStrippedFromResourceFile 0.011
extensionIsStrippedFromResourceFile 0.008
resourceTemplatesAreNotRewritten 0.009
resourceDoesntExist 0.007
installNewResource 0.008

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.47
cleansUpBinaryPropertiesAnyway 0.509
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.345
cleanUpMagnoliaPropertiesAnyway 0.298
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.276
doNothingIfConstructedWithEmptyPaths 0.768
bypassIfExtensionAlreadyInNodeName 0.348
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.234
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.394
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.272
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.349
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.253

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.753
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.737
testUpgradeFrom15 0.918
testUpgradeTo201RemovesVersionCommand 0.862
updateFrom26 0.466
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.845
cleanInstallAddsByPassNode 0.896
updateFrom153DoesNotReBootstrapNonExistingYAMLTemplate 0.937
updateFrom247RemovesLegacyUriACLs 0.499
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.729
updateFrom247BootstrapsResourceVoter 0.509
testUpgradeTo201BootstrapsCommands 0.743
updateFrom247RemoveLegacyYamlTemplate 0.561
upgradeTo24InstallsMappingForNewResourceServlet 0.68
upgradeTo242ChangesJavascriptContentType 0.584

TemplateMigrationTaskTest

makeSureAdditionalTaskIsNotExecutedWhenMigrationIsNotPassing 0.018
templateThatIsNotEnabledWillNotBeHandled 0.003
templateWillBeDeletedWhenAutoImportTrueAndResourceExists 0.003
templateIsMigratedWhenAutoImportTrueAndNoResourceExist 0.026
taskWillFailWhenAutoImportFalseAndResourceExistsWithDifferentContent 0.011
templateIsMigratedWhenAutoImportTrueAndNoResourceExistAndTemplateIsInFolderThatDoesNotExistInDest 0.001
templateIsMigratedWhenAutoImportFalseAndNoResourceExist 0.001
templateIsMigratedWhenAutoImportFalseAndResourceInOtherOriginExist 0.001
templateWillBeDeletedWhenAutoImportFalseAndResourceExistsWithSameContent 0.001
makeSureAdditionalTaskIsExecutedWhenMigrationPasses 0.002
taskWillNotFailWhenRepositoryExceptionIsEncounteredWhileGettingSession 0.003
templateIsMigratedAndActivationStatusIsNotCopied 0.006
taskWillNotFailWhenNoTemplatesWorkspaceEncountered 0.004

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0.006

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