@Target(value=ANNOTATION_TYPE)
public @interface HoverflyConfig
| Modifier and Type | Optional Element and Description |
|---|---|
int |
adminPort
The Hoverfly admin port, default is set to use any randomized free port
|
java.lang.String |
caCertPath
Custom CA certificate for Hoverfly
LocalHoverflyConfig.overrideDefaultCaCert(String, String) |
java.lang.String |
caKeyPath
Key for Hoverfly custom CA cert
LocalHoverflyConfig.overrideDefaultCaCert(String, String) |
boolean |
captureAllHeaders
By default Hoverfly does not capture any request headers, enable this flag to capture all headers
|
java.lang.String[] |
captureHeaders
A list of request headers to capture
|
java.lang.String[] |
clientAuthDestination
Destination filter to what target urls to enable mutual TLS authentication.
|
java.lang.String |
clientCaCertPath
Client CA certificate file in classpath.
|
java.lang.String |
clientCertPath
Client certificate file in classpath.
|
java.lang.String |
clientKeyPath
Client key file in classpath.
|
java.lang.String[] |
commands
Set additional commands for starting Hoverfly
|
java.lang.String[] |
destination
Use this destination filter to set which hostname to simulate or capture, for example setting this to "hoverfly.io"
will only simulate or capture requests to "hoverfly.io"
|
boolean |
disableTlsVerification
Configure Hoverfly to skip TLS verification.
|
io.specto.hoverfly.junit.core.config.LogLevel |
logLevel
Set Hoverfly log level
|
boolean |
plainHttpTunneling
Enable this flag allows Hoverfly to handle CONNECT requests for non-TLS tunnelling, making it possible to work with Netty-based HTTP client such as reactor-netty
|
boolean |
proxyLocalHost
By default Hoverfly does not proxy localhost requests, but you can enable it using this flag
|
int |
proxyPort
The Hoverfly proxy port, default is set to use any randomized free port
|
java.lang.String |
remoteHost
External Hoverfly instance hostname
RemoteHoverflyConfig.host(String) |
java.lang.Class<? extends io.specto.hoverfly.junit.core.SimulationPreprocessor> |
simulationPreprocessor |
java.lang.String |
sslCertificatePath
Deprecated.
|
java.lang.String |
sslKeyPath
Deprecated.
|
boolean |
statefulCapture
By default Hoverfly only capture multiple identical requests once, enable this flag to capture all requests sequentially
|
java.lang.String |
upstreamProxy
Set upstream proxy for hoverfly to connect to target host
|
boolean |
webServer
Enable web server mode
|
public abstract int adminPort
public abstract int proxyPort
public abstract boolean proxyLocalHost
public abstract java.lang.String[] destination
public abstract boolean captureAllHeaders
public abstract java.lang.String[] captureHeaders
public abstract boolean statefulCapture
@Deprecated public abstract java.lang.String sslCertificatePath
LocalHoverflyConfig.sslCertificatePath(String)@Deprecated public abstract java.lang.String sslKeyPath
LocalHoverflyConfig.sslKeyPath(String)public abstract java.lang.String caCertPath
LocalHoverflyConfig.overrideDefaultCaCert(String, String)public abstract java.lang.String caKeyPath
LocalHoverflyConfig.overrideDefaultCaCert(String, String)public abstract java.lang.String remoteHost
RemoteHoverflyConfig.host(String)public abstract boolean plainHttpTunneling
public abstract boolean disableTlsVerification
public abstract java.lang.String upstreamProxy
public abstract java.lang.Class<? extends io.specto.hoverfly.junit.core.SimulationPreprocessor> simulationPreprocessor
public abstract java.lang.String[] commands
public abstract io.specto.hoverfly.junit.core.config.LogLevel logLevel
public abstract java.lang.String clientCertPath
public abstract java.lang.String clientKeyPath