Skip to content

Commit 1e74962

Browse files
committed
Update docs
1 parent 7973bc7 commit 1e74962

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

docs/pages/corefunctionality/configuration.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ If you are developing behind a cooperate proxy, you can configure Hoverfly to us
5353
localConfigs().upstreamProxy(new InetSocketAddress("127.0.0.1", 8900))
5454
5555
56+
By default Hoverfly binary is copied to the system temporary folder to run. In some cases, you may not have permission to write to the temporary folder, eg. in CI server,
57+
what you can do is to specify a different Hoverfly working directory:
58+
59+
.. code-block:: java
60+
61+
localConfigs().binaryLocation("/absolute/path/to/hoverfly/directory")
62+
63+
5664
Logging
5765
-------
5866
Hoverfly logs to SLF4J by default, meaning that you have control of Hoverfly logs using JAVA logging framework.
@@ -221,4 +229,4 @@ endpoint authentication without the need for username and password.
221229
.withAuthHeader() // this will get auth token from an environment variable named 'HOVERFLY_AUTH_TOKEN'
222230
223231
remoteConfigs()
224-
.withAuthHeader("some.token") // pass in token directly
232+
.withAuthHeader("some.token") // pass in token directly

src/main/java/io/specto/hoverfly/junit/core/config/LocalHoverflyConfig.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ public LocalHoverflyConfig addCommands(String... commands) {
162162
return this;
163163
}
164164

165+
/**
166+
* Overrides the default path for Hoverfly binary and working directory.
167+
* @param binaryLocation absolute path for the Hoverfly working directory
168+
* @return the {@link LocalHoverflyConfig} for further customizations
169+
*/
165170
public HoverflyConfig binaryLocation(String binaryLocation) {
166171
this.binaryLocation = binaryLocation;
167172
return this;

0 commit comments

Comments
 (0)