Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR enables the automatic mocking of http requests made during running the tests. Instead of going to the server (defined in the view config of a test), we are now looking first if the data already exists in 'test/mocked-responses'. If it does exists, we take the data from there and don't request it from the server. If the data is not there, we make the original http request and store the received data in a file. Therefore, the actual http request should always only happen on the local machine. Travis should always have persisted data and does no longer depend on the availability of a server.
This also enables the use of artificial test data that only exists on a local server.
The procedure of adding new tests and view configs will not change. We can just add view configs as usual. Storing the data in local files and using the data from there happens automatically.
Note, that this PR activates the request mocking only for the DenseDataExtremaTests. Other (or new) tests can be added on an as-needed basis.
To make the tests more resilient.
Fixes #___
Checklist