Surefire Report

Summary

[Summary] [Package List] [Test Cases]



TestsErrors FailuresSkippedSuccess RateTime
29300299.317%2.149


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.149


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.3
TestAsyncProtocolRequirements23200199.569%1.706
TestHttpAsyncCacheJiraNumber11471000100%0.129
TestAsyncProtocolAllowedBehavior2000100%0.005
TestAsyncProtocolDeviations5000100%0.009


Test Cases

[Summary] [Package List] [Test Cases]

TestCachingHttpAsyncClient

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

TestAsyncProtocolRequirements

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

TestHttpAsyncCacheJiraNumber1147

testIssue11470.129

TestAsyncProtocolAllowedBehavior

testNonSharedCacheReturnsStaleResponseWhenRevalidationFailsForProxyRevalidate0.004
testNonSharedCacheMayCacheResponsesWithCacheControlPrivate0.001

TestAsyncProtocolDeviations

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


Failure Details

[Summary] [Package List] [Test Cases]



testUsesVirtualHostForCacheKey
skipped: skipped
testOPTIONSRequestsAreWrittenThroughToOrigin
skipped: skipped