Surefire Report

Summary

[Summary] [Package List] [Test Cases]



TestsErrors FailuresSkippedSuccess RateTime
29200199.658%1.939


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.cache29200199.658%1.939


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.18
TestAsyncProtocolAllowedBehavior2000100%0
TestCachingHttpAsyncClient52000100%0.269
TestAsyncProtocolRequirements23200199.569%1.476
TestAsyncProtocolDeviations5000100%0.014


Test Cases

[Summary] [Package List] [Test Cases]

TestHttpAsyncCacheJiraNumber1147

testIssue11470.18

TestAsyncProtocolAllowedBehavior

testNonSharedCacheReturnsStaleResponseWhenRevalidationFailsForProxyRevalidate0
testNonSharedCacheMayCacheResponsesWithCacheControlPrivate0

TestCachingHttpAsyncClient

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

TestAsyncProtocolRequirements

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

TestAsyncProtocolDeviations

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


Failure Details

[Summary] [Package List] [Test Cases]



testOPTIONSRequestsAreWrittenThroughToOrigin
skipped: skipped