oxen-mq/tests
Jason Rhinelander 3b86eb1341 1.1.0: invocation-time SN auth; failure responses
This replaces the recognition of SN status to be checked per-command
invocation rather than on connection.  As this breaks the API quite
substantially, though doesn't really affect the functionality, it seems
suitable to bump the minor version.

This requires a fundamental shift in how the calling application tells
LokiMQ about service nodes: rather than using a callback invoked on
connection, the application now has to call set_active_sns() (or the
more efficient update_active_sns(), if changes are readily available) to
update the list whenever it changes.  LokiMQ then keeps this list
internally and uses it when determining whether to invoke.

This release also brings better request responses on errors: when a
request fails, the data argument will now be set to the failure reason,
one of:

- TIMEOUT
- UNKNOWNCOMMAND
- NOT_A_SERVICE_NODE (the remote isn't running in SN mode)
- FORBIDDEN (auth level denies the request)
- FORBIDDEN_SN (SN required and the remote doesn't see us as a SN)

Some of these (UNKNOWNCOMMAND, NOT_A_SERVICE_NODE, FORBIDDEN) were
already sent by remotes, but there was no connection to a request and so
they would log a warning, but the request would have to time out.

These errors (minus TIMEOUT, plus NO_REPLY_TAG signalling that a command
is a request but didn't include a reply tag) are also sent in response
to regular commands, but they simply result in a log warning showing the
error type and the command that caused the failure when received.
2020-04-12 19:57:19 -03:00
..
Catch2@b3b07215d1 Add initial test suite with some batch job tests 2020-02-06 18:10:26 -04:00
CMakeLists.txt 1.1.0: invocation-time SN auth; failure responses 2020-04-12 19:57:19 -03:00
common.h 1.1.0: invocation-time SN auth; failure responses 2020-04-12 19:57:19 -03:00
main.cpp Add initial test suite with some batch job tests 2020-02-06 18:10:26 -04:00
test_batch.cpp Add more locks around assertions 2020-03-21 12:56:13 -03:00
test_commands.cpp 1.1.0: invocation-time SN auth; failure responses 2020-04-12 19:57:19 -03:00
test_connect.cpp 1.1.0: invocation-time SN auth; failure responses 2020-04-12 19:57:19 -03:00
test_failures.cpp 1.1.0: invocation-time SN auth; failure responses 2020-04-12 19:57:19 -03:00
test_requests.cpp 1.1.0: invocation-time SN auth; failure responses 2020-04-12 19:57:19 -03:00
test_string_view.cpp Fixed string_view c++17 compatibility 2020-02-24 22:20:56 -04:00