Uses of Class
org.mockserver.model.HttpChaosProfile
Packages that use HttpChaosProfile
Package
Description
-
Uses of HttpChaosProfile in org.mockserver.client
Methods in org.mockserver.client with parameters of type HttpChaosProfileModifier and TypeMethodDescriptionMockServerClient.setServiceChaos(String host, HttpChaosProfile chaos) Register a service-scoped HTTP chaos profile for an upstream host.MockServerClient.setServiceChaos(String host, HttpChaosProfile chaos, long ttlMillis) Register a service-scoped HTTP chaos profile for an upstream host that auto-reverts afterttlMillismilliseconds (a "dead-man's switch" so the chaos self-heals even ifMockServerClient.removeServiceChaos(String)/MockServerClient.clearServiceChaos()is never called).ForwardChainExpectation.withChaos(HttpChaosProfile chaos) Set a declarative HTTP chaos/fault injection profile for this expectation. -
Uses of HttpChaosProfile in org.mockserver.mock
Methods in org.mockserver.mock that return HttpChaosProfileMethods in org.mockserver.mock with parameters of type HttpChaosProfile -
Uses of HttpChaosProfile in org.mockserver.mock.action.http
Methods in org.mockserver.mock.action.http that return HttpChaosProfileModifier and TypeMethodDescriptionReturns the chaos profile registered for the given host, ornullif none (or it has expired — an expired entry is removed lazily here).ServiceChaosRegistry.patch(String host, HttpChaosProfile partial) Applies JSON Merge Patch semantics to the chaos profile for the given host.Methods in org.mockserver.mock.action.http that return types with arguments of type HttpChaosProfileModifier and TypeMethodDescriptionServiceChaosRegistry.entries()Returns a snapshot copy of the current, non-expired host → profile mappings.Methods in org.mockserver.mock.action.http with parameters of type HttpChaosProfileModifier and TypeMethodDescriptionServiceChaosRegistry.patch(String host, HttpChaosProfile partial) Applies JSON Merge Patch semantics to the chaos profile for the given host.voidServiceChaosRegistry.put(String host, HttpChaosProfile profile) Register (or replace) the chaos profile for the given host with no expiry.voidServiceChaosRegistry.put(String host, HttpChaosProfile profile, long ttlMillis) Register (or replace) the chaos profile for the given host, optionally with a time-to-live after which it auto-expires. -
Uses of HttpChaosProfile in org.mockserver.model
Methods in org.mockserver.model that return HttpChaosProfileModifier and TypeMethodDescriptionHttpChaosProfile.copy()Returns a copy of this profile with all fields duplicated.static HttpChaosProfileHttpChaosProfile.httpChaosProfile()HttpChaosProfile.withDegradationRampMillis(Long degradationRampMillis) HttpChaosProfile.withDropConnectionProbability(Double dropConnectionProbability) HttpChaosProfile.withErrorProbability(Double errorProbability) HttpChaosProfile.withErrorStatus(Integer errorStatus) HttpChaosProfile.withFailRequestCount(Integer failRequestCount) HttpChaosProfile.withGraphqlErrorCode(String graphqlErrorCode) HttpChaosProfile.withGraphqlErrorMessage(String graphqlErrorMessage) HttpChaosProfile.withGraphqlErrors(Boolean graphqlErrors) HttpChaosProfile.withGraphqlNullifyData(Boolean graphqlNullifyData) HttpChaosProfile.withLatency(Delay latency) HttpChaosProfile.withMalformedBody(Boolean malformedBody) HttpChaosProfile.withOutageAfterMillis(Long outageAfterMillis) HttpChaosProfile.withOutageDurationMillis(Long outageDurationMillis) HttpChaosProfile.withQuotaErrorStatus(Integer quotaErrorStatus) HttpChaosProfile.withQuotaLimit(Integer quotaLimit) HttpChaosProfile.withQuotaName(String quotaName) HttpChaosProfile.withQuotaWindowMillis(Long quotaWindowMillis) HttpChaosProfile.withRetryAfter(String retryAfter) HttpChaosProfile.withSlowResponseChunkDelay(Delay slowResponseChunkDelay) HttpChaosProfile.withSlowResponseChunkSize(Integer slowResponseChunkSize) HttpChaosProfile.withSucceedFirst(Integer succeedFirst) HttpChaosProfile.withTruncateBodyAtFraction(Double truncateBodyAtFraction) -
Uses of HttpChaosProfile in org.mockserver.serialization.model
Methods in org.mockserver.serialization.model that return HttpChaosProfileConstructors in org.mockserver.serialization.model with parameters of type HttpChaosProfile