Surefire Report

Summary

[Summary] [Package List] [Test Cases]



TestsErrors FailuresSkippedSuccess RateTime
29300299.317%2.431


Note: failures are anticipated and checked for with assertions while errors are unanticipated.



Package List

[Summary] [Package List] [Test Cases]



PackageTestsErrors FailuresSkippedSuccess RateTime
org.apache.http.impl.client.cache29300299.317%2.431


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

org.apache.http.impl.client.cache

ClassTestsErrors FailuresSkippedSuccess RateTime
TestCachingHttpAsyncClient5300198.113%0.359
TestAsyncProtocolRequirements23200199.569%1.877
TestHttpAsyncCacheJiraNumber11471000100%0.187
TestAsyncProtocolAllowedBehavior2000100%0.003
TestAsyncProtocolDeviations5000100%0.005


Test Cases

[Summary] [Package List] [Test Cases]

TestCachingHttpAsyncClient

testUsesVirtualHostForCacheKey 0
skipped
testReturns304ForIfNoneMatchPassesIfRequestServedFromOrigin0.193
testSetsRouteInContextOnCacheHit0.004
testVariantsMissServerReturns304CacheReturns3040.006
testReturns304ForIfModifiedSinceHeaderIfRequestServedFromCache0.006
testReturns304ForIfNoneMatchHeaderIfRequestServedFromCache0.004
testIfOnlyIfCachedAndNoCacheEntryBackendNotCalled0.002
testSocketTimeoutExceptionIsNotSilentlyCatched0.003
testIfOnlyIfCachedAndEntryNotSuitableBackendNotCalled0.003
testSetsModuleGeneratedResponseContextForCacheOptionsResponse0.002
testTreatsCacheIOExceptionsAsCacheMiss0.002
testReturns200ForIfNoneMatchHeaderFails0.004
testSetsViaHeaderOnResponseIfRequestServedFromCache0.003
testSetsCacheMissContextIfRequestNotServableFromCache0.002
testReturns200ForOptionsFollowedByGetIfAuthorizationHeaderAndSharedCache0.004
testDoesNotSetConnectionInContextOnCacheHit0.003
testNonCompliantRequestWrapsAndReThrowsProtocolException0.005
testSetsResponseInContextOnCacheHit0.002
testReturns304ForIfNoneMatchHeaderAndIfModifiedSinceIfRequestServedFromCache0.003
testReturns200ForIfNoneMatchFailsIfRequestServedFromOrigin0.005
testNewerCacheableResponsesReplaceExistingCacheEntry0.005
testReturns200ForIfModifiedSinceDateIsInvalid0.003
testSetViaHeaderIfValidationFailsButNotRequired0.003
testSetsModuleResponseContextIfValidationFailsButNotRequired0.003
testDoesNotSend304ForNonConditionalRequest0.005
testIfOnlyIfCachedAndEntryExistsAndIsSuitableReturnsEntry0.003
testNoEntityForIfNoneMatchRequestNotYetInCache0.003
testSetsCacheHitContextIfRequestServedFromCache0.002
testCanCacheAResponseWithoutABody0.002
testSetsRequestInContextOnCacheHit0.002
testResponseIsGeneratedWhenCacheEntryIsUsable0.002
testSetsModuleResponseContextIfValidationRequiredButFailed0.002
testReturns304ForIfModifiedSinceHeaderIf304ResponseInCache0.003
testSetsViaHeaderOnResponseIfRequestNotServableFromCache0.002
testVariantMissServerIfReturns304CacheReturns2000.005
testSetsRequestSentInContextOnCacheHit0.002
testIsSharedCache0.001
testSetsModuleGeneratedResponseContextForFatallyNoncompliantRequest0.001
testReturns200ForIfModifiedSinceDateIsLess0.004
testOlderCacheableResponsesDoNotGoIntoCache0.003
testSuitableCacheEntryDoesNotCauseBackendRequest0.003
testNotModifiedResponseUpdatesCacheEntryWhenNoEntity0.004
testSetsViaHeaderOnResponseForCacheMiss0.003
testSetsTargetHostInContextOnCacheHit0.003
testNonCacheableResponseIsNotCachedAndIsReturnedAsIs0.002
testSetsViaHeaderIfRequestWasSuccessfullyValidated0.003
testReturns200ForIfNoneMatchHeaderFailsIfModifiedSinceIgnored0.004
testCacheableResponsesGoIntoCache0.004
testNotModifiedResponseWithVaryUpdatesCacheEntryWhenNoEntity0.005
testSetsValidatedContextIfRequestWasSuccessfullyValidated0.005
testReturns200ForIfModifiedSinceFailsIfRequestServedFromOrigin0.005
testRecordsClientProtocolInViaHeaderIfRequestNotServableFromCache0.003
testReturns304ForIfModifiedSincePassesIfRequestServedFromOrigin0.003

TestAsyncProtocolRequirements

testMustIncludeProxyAuthenticateHeaderFromAnOrigin407Response0.121
testSharedCacheMayCacheAuthorizedResponsesWithCacheControlPublic0.016
testGenerates504IfCannotRevalidateAMustRevalidateEntry0.005
testCannotCombinePartialResponseIfCacheEntryDoesNotHaveACacheValidator0.008
testResponsesToTRACEsAreNotCached0.006
testOrderOfMultipleContentEncodingHeadersIsPreservedOnResponses0.005
testOrderOfMultipleAllowHeadersIsPreservedOnResponses0.004
testConditionalRequestWhereAllValidatorsMatchMayBeServedFromCache0.013
testHEADResponseWithUpdatedContentMD5FieldMakeACacheEntryStale0.01
testDoesNotModifyContentMD5HeaderOnRequest0.006
test205ResponsesDoNotContainMessageBodies0.003
testDoesNotAddContentLocationToRequestIfNotPresent0.002
testValidationMustUseETagIfProvidedByOriginServer0.007
testTransmitsAgeHeaderIfIncomingAgeHeaderTooBig0.004
testOrderOfMultipleViaHeadersIsPreservedOnRequests0.006
testStripsBadlyDatedWarningsFromForwardedResponses0.006
testDoesNotAddEtagToOriginResponse0.003
testCacheIsNotUsedWhenRespondingToRequestWithCacheControlNoCache0.005
test206ResponseToIfRangeWithStrongValidatorReturnsAllEntityHeaders0.006
test304ResponseGeneratedFromCacheIncludesExpiresCacheControlAndOrVaryIfResponseMightDiffer0.012
testForwardedTRACERequestsDoNotIncludeAnEntity0.002
testUpdatesWarningHeadersOnValidation0.006
testWarnDatesAreAddedToWarningsOnLowerProtocolVersions0.005
test206ContainsContentLocationIfA200ResponseWouldHaveIncludedIt0.005
testRequestsNotExpecting100ContinueBehaviorShouldNotSetExpectContinueHeader0.004
test206ResponseReturnedToClientMustHaveDateHeader0.003
testDoesNotAddContentTypeHeaderToCachedResponseWithNoTransformIfNotPresent0.004
testMustDiscardCachedPartialResponseIfCacheValidatorsDoNotStronglyMatchAndDateHeadersAreEqual0.004
testExpect100ContinueIsNotSentIfThereIsNoRequestBody0.002
testDoesNotForwardOPTIONSWhenMaxForwardsIsZeroOnAbsoluteURIRequest0.002
testDoesNotAddContentTypeToRequestIfNotPresent0.002
testUnknownHeadersOnResponsesAreForwarded0.003
testOrderOfMultipleContentEncodingHeadersIsPreservedOnRequests0.001
testDoesNotAddLastModifiedToRequestIfNotPresent0.002
test100ContinueResponsesAreNotForwardedTo1_0ClientsWhoDidNotAskForThem0.002
testRequestsWithLowerProtocolVersionsGetUpgradedTo1_10.004
testOrderOfMultipleAcceptHeaderValuesIsPreservedOnRequests0.002
testDoesNotModifyServerResponseHeader0.002
testDoesNotAddContentEncodingHeaderToCachedResponseWithNoTransformIfNotPresent0.003
testDELETERequestsAreWrittenThroughToOrigin0.002
testMustDiscardLeastRecentPartialResponseIfCacheValidatorsDoNotStronglyMatch0.004
testRemovesWarningHeaderIfAllWarnValuesAreBadlyDated0.003
testPostInvalidatesCacheForThatUriInContentLocationHeader0.005
testDoesNotAddContentTypeHeaderToRequestIfNotPresent0.002
test2xxWarningsAreNotDeletedAfterSuccessfulRevalidation0.005
testNoStoreOnResponseIsNotStoredInCache0.002
test302ResponseWithoutExplicitCacheabilityIsNotReturnedFromCache0.002
testExpiresHeaderMatchesDateIfAddedToCacheHit0.002
testLowerOriginResponsesUpgradedToOurVersion1_10.004
test206ResponseGeneratedFromCacheMustHaveContentRangeOrMultipartByteRangesContentType0.003
testSharedCacheMustUseNewRequestHeadersWhenRevalidatingAuthorizedResponsesWithMustRevalidate0.003
testProperlyFormattedViaHeaderIsAddedToResponses0.004
testHigher1_XProtocolVersionsDowngradeTo1_10.003
testExpectHeadersAreForwardedOnRequests0
testCacheMissOnGETUsesOriginResponse0.003
testOrderOfMultipleAcceptCharsetHeadersIsPreservedOnRequests0.002
testDELETEWithIfNoneMatchWeakETagIsNotAllowed0.002
testDoesNotModifyContentLocationHeaderOnRequest0.002
testPutDoesNotInvalidateCacheForUriInContentLocationHeadersFromOtherHosts0.004
test304ResponseGeneratedFromCacheIncludesContentLocationIfOriginResponseDid0.003
testOrderOfMultipleAcceptEncodingHeadersIsPreservedOnRequests0.003
testHEADResponseWithUpdatedLastModifiedFieldMakeACacheEntryStale0.005
testDeleteInvalidatesCacheForThatUriInLocationHeader0.005
testSubrangeGETWithWeakETagIsNotAllowed0.001
testOrderOfMultipleWWWAuthenticateHeadersIsPreservedOnResponses0.003
testCONNECTRequestsAreWrittenThroughToOrigin0.002
testCachedResponsesWithMissingDateHeadersShouldBeAssignedOne0.003
testExpiresHeaderEqualToDateHeaderIsTreatedAsStale0.004
testDoesNotTransmitNoCacheDirectivesWithFieldsDownstream0.002
testExpiresHeaderMatchesDateIfAddedToOriginResponse0.002
testNoCacheOnFieldIsNotReturnedWithoutRevalidation0.003
test206ResponseIsNotCombinedWithPreviousContentIfETagDoesNotMatch0.004
testSubrangeGETMustUseStrongComparisonForCachedResponse0.002
testOrderOfMultipleWarningHeadersIsPreservedOnRequests0.003
testMustNotAddMultipartByteRangeContentTypeTo416Response0.002
testCacheControlPrivateIsNotCacheableBySharedCache0.003
testOrderOfMultiplePragmaHeadersIsPreservedOnRequests0.002
testSharedCacheMustRevalidateAuthorizedResponsesWhenSMaxAgeIsZero0.004
test206ResponseIsNotCombinedWithPreviousContentIfLastModifiedDoesNotMatch0.004
testPutDoesNotInvalidateCacheForUriInLocationHeadersFromOtherHosts0.004
testMultiHeadersAreSuccessfullyReplacedOn304Validation0.003
testResponsesToPUTsAreNotCached0.001
testCacheWithoutSupportForRangeAndContentRangeHeadersDoesNotCacheA206Response0.002
testNoStoreOnResponseIsNotStoredInCacheEvenWithContraryIndicators0.002
testDoesNotModifyContentLocationHeaderFromOrigin0.002
testOrderOfMultipleViaHeadersIsPreservedOnResponses0.003
testNoCacheCannotSatisfyASubsequentRequestWithoutRevalidationEvenWithContraryIndications0.003
testMustDiscardLeastRecentPartialResponseIfCachedResponseDoesNotHaveCacheValidator0.003
test1xxWarningsAreDeletedAfterSuccessfulRevalidation0.004
testDoesNotAddContentRangeHeaderToCachedResponseWithNoTransformIfNotPresent0.003
testOrderOfMultipleContentEncodingHeaderValuesIsPreserved0.002
testDoesNotAddContentMD5ToRequestIfNotPresent0.002
testDoesNotModifyContentEncodingHeaderOnCachedResponseWithNoTransform0.002
test206ResponseToConditionalRangeRequestDoesNotIncludeOtherEntityHeaders0.002
test206ResponseGeneratedFromCacheMustHaveDateHeader0.002
testDoesNotModifyAllowHeaderWithUnknownMethods0.002
testStaleEntryWithMustRevalidateIsNotUsedWithoutRevalidatingWithOrigin0.004
testOrderOfMultipleCacheControlHeadersIsPreservedOnResponses0.001
testSharedCacheMustUseNewRequestHeadersWhenRevalidatingAuthorizedResponsesWithSMaxAge0.003
testPutInvalidatesCacheForThatUriInRelativeContentLocationHeader0.004
testNoStoreOnRequestIsNotStoredInCacheEvenIfResponseMarkedCacheable0.002
testMustReturnAFreshEnoughCacheEntryIfItHasIt0.001
testDoesNotModifyContentLocationFromOriginOnCacheHit0.003
testPutInvalidatesCacheForThatUriInLocationHeader0.004
testUnknownHeadersOnRequestsAreForwarded0.002
testOrderOfMultipleCacheControlHeadersIsPreservedOnRequests0.002
testIncompleteResponseMustNotBeReturnedToClientWithoutMarkingItAs2060.002
testDoesNotModifyLastModifiedFromOriginOnCacheHit0.002
testDoesNotAddContentRangeHeaderToRequestIfNotPresent0.002
testDELETEWithIfMatchWeakETagIsNotAllowed0.001
testDoesNotModifyContentMD5HeaderFromOrigin0.002
test303ResponsesAreNotCached0.002
testResponsesToDELETEsAreNotCached0.002
testConditionalRequestWhereNotAllValidatorsMatchCannotBeServedFromCache0.004
testMustDiscardLeastRecentPartialResponseIfIncomingRequestDoesNotHaveCacheValidator0.004
testCacheIsNotUsedWhenRespondingToRequestWithPragmaNoCache0.003
testOrderOfMultiplePragmaHeadersIsPreservedOnResponses0.002
testCannotCombinePartialResponseIfCacheValidatorsDoNotStronglyMatch0.003
testDoesNotModifyExpiresHeaderFromOrigin0.003
testExpiresZeroHeaderIsTreatedAsStale0.004
testPUTWithIfNoneMatchWeakETagIsNotAllowed0.001
testResponseToAHEADRequestMustNotHaveABody0.002
testOrderOfMultipleExpectHeadersIsPreservedOnRequests0.002
testUnknownResponseStatusCodesAreNotCached1.019
testDoesNotAddContentRangeToRequestIfNotPresent0.003
testDoesNotAddContentLocationToOriginResponse0.004
testHEADResponseWithUpdatedContentLengthFieldMakeACacheEntryStale0.007
testDoesNotModifyContentRangeHeaderOnCachedResponseWithNoTransform0.005
testDoesNotAddContentMD5ToOriginResponse0.003
testDoesNotAddETagHeaderOnCacheHit0.005
testAgeHeaderPopulatedFromCacheEntryCurrentAge0.002
testViaHeaderOnResponseProperlyRecordsOriginProtocol0.003
testMustServeAppropriateErrorOrWarningIfNoOriginCommunicationPossible0.002
test206ResponseGeneratedFromCacheMustHaveABodyThatMatchesContentLengthHeaderIfPresent0.002
testPostDoesNotInvalidateCacheForUriInContentLocationHeadersFromOtherHosts0.006
testNonmatchingVariantCannotBeServedFromCacheUnlessConditionallyValidated0.011
test304ResponseGeneratedFromCacheIncludesEtagIfOriginResponseDid0.005
testForwardsUnknownHeadersOnRequestsFromHigherProtocolVersions0.005
testWarning110IsAddedToStaleResponses0.005
testPOSTRequestsAreWrittenThroughToOrigin0.002
testGenerates504IfSharedCacheCannotRevalidateAProxyRevalidateEntry0.005
testDoesNotModifyETagHeaderOnRequest0.004
testPUTRequestsAreWrittenThroughToOrigin0.002
testMalformedExpiresHeaderIsTreatedAsStale0.005
testDoesNotAddETagToRequestIfNotPresent0.003
test304ResponseGeneratedFromCacheIncludesDateHeader0.007
testSharedCacheMayCacheAuthorizedResponsesWithMustRevalidate0.004
testStaleEntryWithProxyRevalidateOnSharedCacheIsNotUsedWithoutRevalidatingWithOrigin0.005
testCannotServeFromCacheForVaryStar0.005
test206ResponsesAreNotCachedIfTheCacheDoesNotSupportRangeAndContentRangeHeaders0.006
test204ResponsesDoNotContainMessageBodies0
testDoesNotAddContentTypeHeaderToOriginResponseWithNoTransformIfNotPresent0.003
testOrderOfMultipleTransferEncodingsInSingleHeadersIsPreserved0.003
testPutInvalidatesCacheForThatUriInContentLocationHeader0.007
testUnknownMethodRequestsAreWrittenThroughToOrigin0.002
testDoesNotAddAMaxForwardsHeaderToForwardedOPTIONSRequests0.001
testDeleteInvalidatesCacheForThatUriInRelativeContentLocationHeader0.005
testStripsBadlyDatedWarningsFromStoredResponses0.003
testCannotCombinePartialResponseIfIncomingResponseDoesNotHaveACacheValidator0.003
testDeleteDoesNotInvalidateCacheForUriInLocationHeadersFromOtherHosts0.004
test304GeneratedFromCacheOnWeakValidatorDoesNotIncludeOtherEntityHeaders0.002
testPUTWithIfMatchWeakETagIsNotAllowed0.001
testOrderOfMultipleTransferEncodingHeadersIsPreserved0.002
testDoesNotAddContentEncodingHeaderToOriginResponseWithNoTransformIfNotPresent0.003
testDoesNotModifyContentTypeHeaderFromOriginResponseWithNoTransform0.002
testOrderOfMultipleContentLanguageHeadersIsPreservedOnResponses0.002
testHEADResponseWithUpdatedETagFieldMakeACacheEntryStale0.005
testDoesNotAddLastModifiedToOriginResponse0.002
testPostDoesNotInvalidateCacheForUriInLocationHeadersFromOtherHosts0.003
testDeleteToUriInvalidatesCacheForThatUri0.005
testDoesNotModifyLastModifiedHeaderFromOrigin0.002
test200ResponseToOPTIONSWithNoBodyShouldIncludeContentLengthZero0.001
testUpdatedEndToEndHeadersFrom304ArePassedOnResponseAndUpdatedInCacheEntry0.006
testDoesNotModifyContentMD5FromOriginOnCacheHit0
testPostInvalidatesCacheForThatUriInLocationHeader0.002
testAttachesWarningHeaderWhenGeneratingStaleResponse0
testMustDiscardLeastRecentPartialResponseIfCacheValidatorsDoNotStronglyMatchEvenIfResponsesOutOfOrder0.002
testHigherMajorProtocolVersionsOnRequestSwitchToTunnelBehavior0.001
testDoesNotAddContentLocationHeaderOnCacheHit0.002
testDoesNotAddContentMD5HeaderOnCacheHit0.003
testPostToUriInvalidatesCacheForThatUri0.005
testOPTIONSRequestsAreWrittenThroughToOrigin 0
skipped
test304ResponseWithDateHeaderForwardedFromOriginIncludesDateHeader0.002
testMustReturnACacheEntryIfItCanRevalidateIt0.003
testNoStoreOnRequestIsNotStoredInCache0.001
testDeleteDoesNotInvalidateCacheForUriInContentLocationHeadersFromOtherHosts0.004
testHeuristicCacheOlderThan24HoursHasWarningAttached0.002
testPostInvalidatesCacheForRelativeUriInContentLocationHeader0.006
testDoesNotModifyContentEncodingHeaderFromOriginResponseWithNoTransform0.002
testDoesNotModifyContentRangeHeaderFromOriginResponseWithNoTransform0.001
testTransferCodingsAreNotSentToAnHTTP_1_0Client0.003
testDoesNotAddContentEncodingHeaderToRequestIfNotPresent0.002
testOrderOfMultipleContentLanguageHeadersIsPreservedOnRequests0.001
testNotModifiedOfNonCachedEntityShouldRevalidateWithUnconditionalGET0.004
testCacheControlPrivateOnFieldIsNotReturnedBySharedCache0.003
testDoesNotModifyExpiresHeaderFromOriginOnCacheHit0.003
testCacheEntryIsUpdatedWithNewFieldValuesIn304Response0.004
testDoesNotModifyContentTypeHeaderOnCachedResponseWithNoTransform0.003
testDoesNotAddContentEncodingToRequestIfNotPresent0.002
testNoCacheCannotSatisfyASubsequentRequestWithoutRevalidation0.003
testMustIncludeAllowHeaderFromAnOrigin405Response0.002
testDoesNotModifyLastModifiedHeaderOnRequest0.002
testResponsesToPOSTWithoutCacheControlOrExpiresAreNotCached0.002
testVaryStarIsNotGeneratedByProxy0.003
testDoesNotModifyEtagFromOriginOnCacheHit0.002
testViaHeaderOnRequestProperlyRecordsClientProtocol0.002
testTRACERequestsAreWrittenThroughToOrigin0.002
testDecrementsMaxForwardsWhenForwardingOPTIONSRequest0.002
testMustIncludeWWWAuthenticateHeaderOnAnOrigin401Response0.001
testRetainsWarningHeadersReceivedFromUpstream0.002
testOrderOfMultipleAllowHeadersIsPreservedOnRequests0.002
testPutToUriInvalidatesCacheForThatUri0.004
testDeleteInvalidatesCacheForThatUriInContentLocationHeader0.005
testProperlyFormattedViaHeaderIsAddedToRequests0.003
testRequestsExpecting100ContinueBehaviorShouldSetExpectHeader0.002
testResponsesToOPTIONSAreNotCacheable0.002
testCannotUseVariantCacheEntryIfNotAllSelectingRequestHeadersMatch0.004
testOrderOfMultipleParametersInContentEncodingHeaderIsPreserved0.003
testDoesNotAddLastModifiedHeaderOnCacheHit0.002
test206ResponseIncludesVariantHeadersIfValueMightDiffer0.005
testSharedCacheMustNotNormallyCacheAuthorizedResponses0.003
testKeepsMostRecentDateHeaderForFreshResponse0.003
testDoesNotModifyEtagHeaderFromOrigin0.002
testResponseToA1_0RequestShouldUse1_10.002
testOrderOfMultipleAcceptLanguageHeadersIsPreservedOnRequests0.002
test304ResponseDoesNotContainABody0.001
testSharedCacheMayCacheAuthorizedResponsesWithSMaxAgeHeader0.002
testDoesNotAddContentRangeHeaderToOriginResponseWithNoTransformIfNotPresent0.002
testCacheDoesNotAssumeContentLocationHeaderIndicatesAnotherCacheableResource0.002
test206ContainsETagIfA200ResponseWouldHaveIncludedIt0.002
testResponseIncludesCacheEntryEndToEndHeadersForResponseAfter304Validation0.004
testMustNotUseMultipartByteRangeContentTypeOnCacheGenerated416Responses0.002

TestHttpAsyncCacheJiraNumber1147

testIssue11470.187

TestAsyncProtocolAllowedBehavior

testNonSharedCacheReturnsStaleResponseWhenRevalidationFailsForProxyRevalidate0.002
testNonSharedCacheMayCacheResponsesWithCacheControlPrivate0.001

TestAsyncProtocolDeviations

testPassesOnOrigin407WithoutAProxyAuthenticateHeader0
testPassesOnOrigin401ResponseWithoutWWWAuthenticateHeader0.001
testOPTIONSRequestsWithBodiesAndNoContentTypeHaveOneSupplied0.002
testPassesOnOrigin405WithoutAllowHeader0.001
testPartialContentIsNotReturnedToAClientThatDidNotAskForIt0.001


Failure Details

[Summary] [Package List] [Test Cases]



testUsesVirtualHostForCacheKey
skipped: skipped
testOPTIONSRequestsAreWrittenThroughToOrigin
skipped: skipped