Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.401
info.magnolia.module.resources.renderers 14 0 0 0 100% 0.675
info.magnolia.module.resources.setup 62 0 0 0 100% 13.917
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.015
info.magnolia.module.resources 34 0 0 2 94.118% 5.834

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% 1.372
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.029

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.237
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.438

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.025
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.005
InstallResourceTaskTest 4 0 0 0 100% 0.011
InstallTextResourcesTaskTest 4 0 0 0 100% 0.853
InstallTextResourceTaskTest 6 0 0 0 100% 0.005
ResourceCleanUpTaskTest 12 0 0 0 100% 3.597
ResourcesModuleVersionHandlerTest 14 0 0 0 100% 9.389
TemplateMigrationTaskTest 13 0 0 0 100% 0.031
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.015

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
DelegateResourceVoterTest 5 0 0 0 100% 4.795
ResourceLinkerTest 10 0 0 1 90% 0.051
ResourcesModuleResourceFilterTest 3 0 0 0 100% 0.793
ResourcesServletTest 11 0 0 1 90.909% 0.193
ResourceTypesTest 5 0 0 0 100% 0.002

Test Cases

[Summary] [Package List] [Test Cases]

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 2.794
blankResourcesVoteFalse 0.731
allowsAcceptedExtensions 0.487
noResourceFilterIsConsideredAsWhiteListingEverything 0.42
filtersNotAcceptedExtensions 0.363

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.012
testGetStreamRelativePath 0.003
testGetStream 0

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.373
doesNotMatchExtensionIsForbidden 0.412
matchesAllowedExtensions 0.292
matchesAllowedDirectories 0.295

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.028
getHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.04
testResourceLoadedFromClassPath 0.06
testResourceLoadedFromContentNode 0.007
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.009
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.039
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.082

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.162
testRenderJavascriptDecoded 0.021
testOnRenderNoProcessed 0.019
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.02
testOnRenderProcessedByPass 0.151
testRenderCssDecoded 0.022
testOnRenderNoProcessedByPass 0.023
testOnRenderProcessed 0.02

ResourceLinkerTest

ignoresNonExistingResource 0.044
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.002
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0.001
farFutureFingerPrintCantBeAddedForUnknownResources 0.001
downloadPathPrefixIsCleanedUp 0.001
ignoresDotResourcesPrefixForExistingResource 0

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 0.253
matchesByLocation 0.262
matchesAllowedExtensionsByType 0.278

ResourcesServletTest

serveResourceWithCacheInfix 0.042
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.018
cachingOfResourcesIsDisabledInDevMode 0.019
resourceNotFoundIsNotProcessed2 0.02
newResourceIsServedWithLastModifiedHeaders 0.016
restrictedResourceTypesShouldReturn404 0.018
resourceIsServedWithContentTypeHeader 0.012
serveResourceWithSimpleCacheInfix 0.014
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.018
blankResourceReturns400 0.016

ResourceTypesTest

testDetermineTypeCss 0.001
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0.001
testDetermineTypeBinary 0

InstallBinaryResourcesTaskTest

testExecuteDontStripExtensions 0.02
testInvalidJcrCharsAreReplaced 0.003
testExecuteStripExtensions 0.002

InstallBinaryResourceTaskTest

testExecute 0.001
testExtensionIsNotStrippedFromResourceFile 0.001
testResourceDoesntExist 0.001
worksWhenResourceNodeIsAlreadyExisting 0.001
testExtensionIsStrippedFromResourceFile 0.001

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0.006
testResourceDoesntExist 0
testInstallNewResource 0.003
testDifferentPlatformEncoding 0.002

InstallTextResourcesTaskTest

differentEncoding 0.241
settingExistingPropertyWithNullValueDoesNotThrowException 0.193
extensionIsNotStrippedFromResourceFile 0.186
extensionIsStrippedFromResourceFile 0.233

InstallTextResourceTaskTest

testExtensionIsNotStrippedFromResourceFile 0
testResourceTemplatesAreNotRewritten 0.001
testResourceDoesntExist 0.001
testInstallNewResource 0
testDifferentEncoding 0.002
testExtensionIsStrippedFromResourceFile 0.001

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.238
cleansUpBinaryPropertiesAnyway 0.205
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.224
cleanUpMagnoliaPropertiesAnyway 0.296
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.349
doNothingIfConstructedWithEmptyPaths 0.358
bypassIfExtensionAlreadyInNodeName 0.373
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.325
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.365
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.305
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.257
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.302

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.816
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 1.048
testUpgradeFrom15 1.074
testUpgradeTo201RemovesVersionCommand 0.834
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.631
cleanInstallAddsByPassNode 0.661
updateFrom153DoesNotReBootstrapNonExistingYAMLTemplate 0.737
updateFrom247RemovesLegacyUriACLs 0.403
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.67
updateFrom247BootstrapsResourceVoter 0.343
testUpgradeTo201BootstrapsCommands 0.656
updateFrom247RemoveLegacyYamlTemplate 0.467
upgradeTo24InstallsMappingForNewResourceServlet 0.541
upgradeTo242ChangesJavascriptContentType 0.508

TemplateMigrationTaskTest

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

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