Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UpdateCassette = false
UpdateCassette is true when we are updating the cassette
Functions ¶
func CreateRecordedScwClient ¶
CreateRecordedScwClient creates a new scw.Client that records all HTTP requests in a cassette. This cassette is then replayed whenever tests are executed again. This means that once the requests are recorded in the cassette, no more real HTTP request must be made to run the tests.
It is important to call add a `defer recorder.Stop()` so the given cassette files are correctly closed and saved after the requests.
To update the cassette files, add `UPDATE` to the environment variables. When using `UPDATE`, also the `SCW_ACCESS_KEY` and `SCW_SECRET_KEY` must be set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.