enso/tools/http-test-helper
Radosław Waśko bdda1830b7
Integrate Cloud path resolver (#9662)
- 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.
2024-04-12 13:03:09 +00:00
..
src/main/java/org/enso/shttp Integrate Cloud path resolver (#9662) 2024-04-12 13:03:09 +00:00
www-files Make data-links behave more like 'symlinks' (#9485) 2024-03-22 17:01:54 +00:00
README.md Add tests for Enso Cloud auth + simple API mock for Enso_User (#8511) 2023-12-19 17:41:09 +00:00

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