Surefire Report

Summary

[Summary] [Package List] [Test Cases]



TestsErrors FailuresSkippedSuccess RateTime
29300299.317%2.399


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


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
TestHttpAsyncCacheJiraNumber11471000100%0.388
TestAsyncProtocolAllowedBehavior2000100%0
TestCachingHttpAsyncClient5300198.113%0.336
TestAsyncProtocolRequirements23200199.569%1.661
TestAsyncProtocolDeviations5000100%0.014


Test Cases

[Summary] [Package List] [Test Cases]

TestHttpAsyncCacheJiraNumber1147

testIssue11470.388

TestAsyncProtocolAllowedBehavior

testNonSharedCacheReturnsStaleResponseWhenRevalidationFailsForProxyRevalidate0
testNonSharedCacheMayCacheResponsesWithCacheControlPrivate0

TestCachingHttpAsyncClient

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

TestAsyncProtocolRequirements

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

TestAsyncProtocolDeviations

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


Failure Details

[Summary] [Package List] [Test Cases]



testUsesVirtualHostForCacheKey
skipped: skipped
testOPTIONSRequestsAreWrittenThroughToOrigin
skipped: skipped