shrub/tests/sys/vane
fang 34148f9f44 eyre: allow PUTting empty channel-request list
Previously, we would reject this with a 400 error. Considering the
request body is expected to contain "array of requests" and that arrays
may be empty, we really should not be rejecting the requests.

Prior to 156ca21472, sending the empty array would have been convenient
for channel creation. Empty arrays getting rejected forced clients to
inject a faux poke (commonly hi-ing oneself). With that recent change,
the most common case for wanting to PUT the empty list of requests is
largely obsolete, but one can still imagine it being useful for clients
that want to keep their channel alive without necessarily being
connected to it. This also implements sloppier clients from running into
400 responses when they submit an empty "command queue" for whatever.

Regardless, there seems to be no clear reason why the empty request list
_shouldn't_ be accepted and processed as normal.

We add a small test to ensure eyre accepts this.
2023-09-19 19:12:25 +03:00
..
ames.hoon Merge branch 'next/kelvin/412' into tinnus/local-provenance 2023-06-07 20:38:05 +12:00
behn.hoon tests: move to root, out of pkg/arvo 2023-01-18 16:50:42 +01:00
clay.hoon tests: move to root, out of pkg/arvo 2023-01-18 16:50:42 +01:00
eyre.hoon eyre: allow PUTting empty channel-request list 2023-09-19 19:12:25 +03:00
gall.hoon tests: move to root, out of pkg/arvo 2023-01-18 16:50:42 +01:00
iris.hoon tests: move to root, out of pkg/arvo 2023-01-18 16:50:42 +01:00
khan.hoon tests: fix tests for provenance 2023-05-23 01:55:55 +12:00