Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
119 0 0 2 98.319% 11.809

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% 0.784
info.magnolia.module.resources.renderers 14 0 0 0 100% 0.421
info.magnolia.module.resources.setup 62 0 0 0 100% 7.25
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.007
info.magnolia.module.resources 34 0 0 2 94.118% 3.347

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.767
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.017

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.122
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.299

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.019
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.018
InstallResourceTaskTest 4 0 0 0 100% 0.006
InstallTextResourcesTaskTest 4 0 0 0 100% 0.559
InstallTextResourceTaskTest 6 0 0 0 100% 0.017
ResourceCleanUpTaskTest 12 0 0 0 100% 1.653
ResourcesModuleVersionHandlerTest 14 0 0 0 100% 4.958
TemplateMigrationTaskTest 13 0 0 0 100% 0.019
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.001

info.magnolia.module.resources.loaders

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

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
DelegateResourceVoterTest 5 0 0 0 100% 2.66
ResourceLinkerTest 10 0 0 1 90% 0.031
ResourcesModuleResourceFilterTest 3 0 0 0 100% 0.549
ResourcesServletTest 11 0 0 1 90.909% 0.107
ResourceTypesTest 5 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 1.649
blankResourcesVoteFalse 0.299
allowsAcceptedExtensions 0.261
noResourceFilterIsConsideredAsWhiteListingEverything 0.248
filtersNotAcceptedExtensions 0.203

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.005
testGetStreamRelativePath 0.001
testGetStream 0.001

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.209
doesNotMatchExtensionIsForbidden 0.192
matchesAllowedExtensions 0.199
matchesAllowedDirectories 0.167

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.017
getHandleWhenExtensionIsSavedInPropertyOfNode 0

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.028
testResourceLoadedFromClassPath 0.044
testResourceLoadedFromContentNode 0.005
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.005
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.006
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.034

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.13
testRenderJavascriptDecoded 0.015
testOnRenderNoProcessed 0.012
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.013
testOnRenderProcessedByPass 0.086
testRenderCssDecoded 0.013
testOnRenderNoProcessedByPass 0.016
testOnRenderProcessed 0.014

ResourceLinkerTest

ignoresNonExistingResource 0.028
ignoresExternalLinks 0
fingerPrintDoesNotLeaveTrailingDotForResourcesWithoutExtension 0
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.001
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0
farFutureFingerPrintCantBeAddedForUnknownResources 0.001
downloadPathPrefixIsCleanedUp 0
ignoresDotResourcesPrefixForExistingResource 0.001

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 0.191
matchesByLocation 0.192
matchesAllowedExtensionsByType 0.166

ResourcesServletTest

serveResourceWithCacheInfix 0.02
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.01
cachingOfResourcesIsDisabledInDevMode 0.01
resourceNotFoundIsNotProcessed2 0.011
newResourceIsServedWithLastModifiedHeaders 0.009
restrictedResourceTypesShouldReturn404 0.011
resourceIsServedWithContentTypeHeader 0.01
serveResourceWithSimpleCacheInfix 0.009
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.008
blankResourceReturns400 0.009

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallBinaryResourcesTaskTest

executeDontStripExtensions 0.011
executeStripExtensions 0.004
invalidJcrCharsAreReplaced 0.004

InstallBinaryResourceTaskTest

execute 0.003
extensionIsNotStrippedFromResourceFile 0.004
extensionIsStrippedFromResourceFile 0.004
worksWhenResourceNodeIsAlreadyExisting 0.004
resourceDoesntExist 0.003

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0.005
testResourceDoesntExist 0
testInstallNewResource 0
testDifferentPlatformEncoding 0.001

InstallTextResourcesTaskTest

differentEncoding 0.138
settingExistingPropertyWithNullValueDoesNotThrowException 0.165
extensionIsNotStrippedFromResourceFile 0.132
extensionIsStrippedFromResourceFile 0.124

InstallTextResourceTaskTest

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

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.171
cleansUpBinaryPropertiesAnyway 0.135
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.128
cleanUpMagnoliaPropertiesAnyway 0.117
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.158
doNothingIfConstructedWithEmptyPaths 0.185
bypassIfExtensionAlreadyInNodeName 0.122
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.112
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.174
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.113
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.125
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.113

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.455
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.442
testUpgradeFrom15 0.491
testUpgradeTo201RemovesVersionCommand 0.397
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.381
cleanInstallAddsByPassNode 0.343
updateFrom153DoesNotReBootstrapNonExistingYAMLTemplate 0.453
updateFrom247RemovesLegacyUriACLs 0.242
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.367
updateFrom247BootstrapsResourceVoter 0.233
testUpgradeTo201BootstrapsCommands 0.381
updateFrom247RemoveLegacyYamlTemplate 0.237
upgradeTo24InstallsMappingForNewResourceServlet 0.279
upgradeTo242ChangesJavascriptContentType 0.257

TemplateMigrationTaskTest

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

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0.001

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