mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 21:12:44 +03:00
bdda1830b7
- Closes #9363 - Cleans up the Cloud mock as it got a bit messy. It still implements the bare minimum to be able to test basic secret and auth handling logic 'offline' (added very simple path resolution, only handling the minimum set of cases for the tests to work). - Adds first implementation of caching Cloud replies. - Currently only caching the `Enso_User.current`. This is a simple one to cache because we do not expect it to ever change, so it can be safely cached for a long period of time (I chose 2h to make it still refresh from time to time while not being noticeable). - We may try using this for caching other values in future PRs. |
||
---|---|---|
.. | ||
src/main/java/org/enso/shttp | ||
www-files | ||
README.md |
HTTP Test Helper
A simple HTTP Request/Response clone of httpbin for testing purposes, extended with additional functionality allowing for testing Enso Cloud features.
Usage
It can be compiled like any other SBT project i.e.
sbt> http-test-helper/compile
To run, simply invoke the main
method with the appropriate hostname and port:
sbt> http-test-helper/run localhost 8080