Package io.specto.hoverfly.junit5.api
Annotation Type HoverflyConfig
-
@Target(ANNOTATION_TYPE) public @interface HoverflyConfig
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringabsoluteResponseBodyFilesPathOverride the default parent path for resolving the response body file.intadminPortThe Hoverfly admin port, default is set to use any randomized free portjava.lang.StringbinaryLocationOverrides the default path for Hoverfly binary and working directory.java.lang.StringcaCertPathCustom CA certificate for HoverflyLocalHoverflyConfig.overrideDefaultCaCert(String, String)java.lang.StringcaKeyPathKey for Hoverfly custom CA certLocalHoverflyConfig.overrideDefaultCaCert(String, String)booleancaptureAllHeadersBy default Hoverfly does not capture any request headers, enable this flag to capture all headersjava.lang.String[]captureHeadersA list of request headers to capturejava.lang.String[]clientAuthDestinationDestination filter to what target urls to enable mutual TLS authentication.java.lang.StringclientCaCertPathClient CA certificate file in classpath.java.lang.StringclientCertPathClient certificate file in classpath.java.lang.StringclientKeyPathClient key file in classpath.java.lang.String[]commandsSet additional commands for starting Hoverflyjava.lang.String[]destinationUse 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"booleandisableTlsVerificationConfigure Hoverfly to skip TLS verification.booleanenableIncrementalCaptureBy default Hoverfly exports the captured requests and responses to a new file by replacing any existing one.io.specto.hoverfly.junit.core.config.LogLevellogLevelSet Hoverfly log levelbooleanplainHttpTunnelingEnable 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-nettybooleanproxyLocalHostBy default Hoverfly does not proxy localhost requests, but you can enable it using this flagintproxyPortThe Hoverfly proxy port, default is set to use any randomized free portjava.lang.StringrelativeResponseBodyFilesPathOverride the default parent path for resolving the response body file (relative to the test resources folder).java.lang.StringremoteHostExternal Hoverfly instance hostnameRemoteHoverflyConfig.host(String)java.lang.Class<? extends io.specto.hoverfly.junit.core.SimulationPreprocessor>simulationPreprocessorjava.lang.StringsslCertificatePathDeprecated.java.lang.StringsslKeyPathDeprecated.booleanstatefulCaptureBy default Hoverfly only capture multiple identical requests once, enable this flag to capture all requests sequentiallyjava.lang.StringupstreamProxySet upstream proxy for hoverfly to connect to target hostbooleanwebServerEnable web server mode
-
-
-
-
enableIncrementalCapture
boolean enableIncrementalCapture
By default Hoverfly exports the captured requests and responses to a new file by replacing any existing one. Enable this option to import any existing simulation file and append new requests to it in capture mode.- Returns:
- the
HoverflyConfigfor further customizations
- Default:
- false
-
-
-
relativeResponseBodyFilesPath
java.lang.String relativeResponseBodyFilesPath
Override the default parent path for resolving the response body file (relative to the test resources folder). The default parent path is set to the default hoverfly test resources folder which is test/resources/hoverfly/- Default:
- ""
-
-