Commit Graph

102 Commits

Author SHA1 Message Date
pkova
e3dee40ac7 tests: fix subscription test now that we don't %heed anymore 2024-04-19 17:27:46 +03:00
pkova
f1fde3e460 ames, gall: refactor clog handling to not migrate %fact 2024-04-19 16:45:47 +03:00
Liam Fitzgerald
11d28f2e53 ames: fix tests 2023-12-13 09:51:37 -05:00
Liam Fitzgerald
bb92924de1 ames: fix failing tests 2023-12-08 14:05:47 -05:00
Liam Fitzgerald
a382f168fd Merge remote-tracking branch 'origin/next/kelvin/411' into lf/back-to-school-arc 2023-12-07 18:58:51 -05:00
Joe Bryan
4ff2b98386
Merge branch 'next/kelvin/411' into fitz-bug-fix 2023-11-15 14:21:58 -05:00
Liam Fitzgerald
833d4c871c ames: fix tests for new path schema 2023-10-20 15:01:43 +01:00
Liam Fitzgerald
6887c0e5b2 Merge remote-tracking branch 'origin/next/kelvin/411' into lf/back-to-school-arc 2023-10-18 14:16:32 +01:00
Liam Fitzgerald
fd0e0f4d37 gall: tests, fix key handling 2023-10-17 13:10:04 +01:00
pkova
d92abaab4b tests: fix test broken by %nail 2023-10-13 17:24:21 +03:00
Pyry Kovanen
679cd0b3e8
Merge pull request #6827 from urbit/develop
Merge develop to next/kelvin/411
2023-10-12 15:58:13 +03:00
Joe Bryan
eddaa489bc test: fixes failing test by accepting +shas jet as the spec 2023-10-05 18:32:11 -04:00
Joe Bryan
409b1d6a30 test: adds (failing) unit tests for +shas 2023-10-05 18:27:13 -04:00
Joe Bryan
8b1e66c6a1 Merge branch 'next/kelvin/411' into next/hoon/138 2023-10-04 21:58:48 -04:00
fang
14266c8d46
eyre: GETting non-existent channels 404s
Contrary to the argument made by 4affae8, this is the _actually correct_
behavior. Not creating server-side resources in response to GETs
respects the expected method semantics, and more importantly, serving a
404 is an important signal for clients trying to connect to a channel
they were using previously. Without that, they have no way of telling
whether, when reconnecting, if their channel was reaped in the mean time
or not.

The "empty PUT" affordance provided by 34148f9 makes requiring a PUT
request for channel creation more reasonable.

We leave the general refactoring done by #6789 in place, but do
emphasize the reasoning given here with a few additional comments.
2023-10-04 22:42:50 +02:00
Liam Fitzgerald
6c90331fc7 tests: update for less slog noise 2023-09-29 16:27:07 +01:00
Liam Fitzgerald
352130a545 ames: update tests to cover encrypted remote scry 2023-09-29 15:50:15 +01:00
Liam Fitzgerald
792d42d9cc pill: update solid 2023-09-26 14:19:07 +01:00
Liam Fitzgerald
ab3a4b05f8 Merge remote-tracking branch 'origin/jb/chum' into lf/back-to-school-arc 2023-09-26 10:10:31 +01:00
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
fang
4affae8181 eyre: GETting non-existent channels creates them
Previously, a channel could only be created by sending a PUT request,
and a GET request to receive the channel's stream would only succeed
after channel creation had happened that way. This forces client
libraries, that generally have an explicit "set up" step before allowing
normal operation, to do strange things, like sending faux pokes
(commonly hi-ing oneself) before connecting to the channel's stream as
normal.

Here, we update the GET request handling for channels to allow requests
for non-existent channels. When this happens, the channel will be
created, and eyre tracks the request as normal.

We do some... gentle restructuring... of +on-get-request:by-channel to
let the new creation case share code with the "already exists" codepath.
In the process, we find that duct-to-key was never getting updated in
the case where we replace the original channel request/connection with
the new incoming one. We fix this, it's trivial. We also identify two
other areas with vaguely-incorrect behavior, but consider them less
important and out of scope.

We also add a test case for "create channel through GET".
2023-09-19 19:12:25 +03:00
fang
b427c9e800 eyre: serve 503 if bound agent is not running
Previously, for endpoints bound to agents, we would pass the request
onto the agent even if the agents wasn't currently running.

Here, we make eyre check to see if the agent is actually running, before
passing the request on. If the bound agent is not running, eyre serves a
503 synchronously instead.

This way, we avoid cluttering up the gall queue for the bound agent.
2023-09-18 15:52:28 +03:00
Liam Fitzgerald
12c9e64297 temp commit 2023-09-17 15:54:43 +01:00
pkova
9929fcc6fb tests: revert test now that dead flow consolidation is default off 2023-09-14 23:13:24 +03:00
fang
f87871f0c1
tests: update eyre tests with new wire format
See also a9e3ebb
2023-08-11 11:48:23 +02:00
pkova
64ba325463 tests: fix tests broken by dead flow consolidation 2023-07-28 16:33:34 +03:00
yosoyubik
b359239f3d Merge branch 'develop' into next/kelvin/412 2023-06-28 12:52:18 +02:00
fang
c33ddfa101
Merge branch 'next/kelvin/412' into m/eyre-mirage 2023-06-26 13:47:39 +02:00
Ted Blackman
4c1b4c943d
Merge pull request #6639 from urbit/as/bif
hoon: refactor unnecessary parameter to bif:by
2023-06-20 12:14:27 -04:00
Ted Blackman
88b3e4bc48
Merge pull request #6640 from urbit/as/rut
hoon: remove rut:by, duplicate of urn:by
2023-06-19 13:22:55 -04:00
Alex Shelkovnykov
9509254a2d hoon: remove rut:by, duplicate of urn:by 2023-06-17 13:37:26 -04:00
Alex Shelkovnykov
fe34f55a04 hoon: refactor unnecessary parameter to bif:by 2023-06-17 13:30:18 -04:00
fang
41048b21e2
tests: update for new eauth architecture
Tag names have been changed, communication direction is now
client->host, and other changes which heavily affect the tests.
2023-06-16 21:20:20 +02:00
Quodss
3581667798
Add regression tests
Added regression tests as asked by @joemfb to test that currying and composition gates strip faces and that the subject of a gate returned by ++curr nests under the head of curried gate's subject.
2023-06-13 18:53:27 +02:00
Josh Lehman
82aae2f9e3
Merge pull request #6630 from urbit/jb/insane
hoon: fixes (sane %t) for multi-byte glyphs
2023-06-09 08:17:16 -07:00
Mikołaj Paraniak
e5ed5135be tests: adds +fitz aura compatibility tests 2023-06-08 10:40:32 +08:00
Tinnus Napbus
7c3a1c4d7c Merge branch 'next/kelvin/412' into tinnus/local-provenance 2023-06-07 20:38:05 +12:00
Ted Blackman
fc5598718b Merge branch 'develop' into next/kelvin/412 2023-06-06 12:50:11 -04:00
yosoyubik
385ede5c89 tests: remove misleading comment 2023-06-05 15:43:55 +02:00
yosoyubik
7b15f5c022 ames: fix tests 2023-06-05 11:41:39 +02:00
yosoyubik
6696f587be Merge branch 'next/kelvin/412' into i/6103/abet-pure 2023-06-01 17:46:36 +02:00
yosoyubik
8b518f4bfe Merge branch 'develop' into next/kelvin/412 2023-06-01 17:39:42 +02:00
Joe Bryan
e92878d778 test: adds failing multi-byte-glyph sanity 2023-05-31 14:32:39 -04:00
Tinnus Napbus
0105be6459 Merge branch 'develop' into tinnus/local-provenance 2023-05-31 12:52:53 +12:00
Tinnus Napbus
df53148183 tests: change sock to sack 2023-05-30 23:38:26 +12:00
yosoyubik
96e3bdcf11 Merge branch 'develop' into i/6103/abet-pure 2023-05-30 10:38:39 +02:00
yosoyubik
ff0584807a ames: fix grq tests 2023-05-30 10:33:13 +02:00
yosoyubik
4f27ac7329 ames: use %deep task in test-nack 2023-05-30 10:33:13 +02:00
Joe Bryan
d4b900bf3f
Merge pull request #6612 from urbit/i/6611/lose-boon
ames: correctly %lose a %boon we crashed on
2023-05-26 11:19:57 -04:00
Joe Bryan
6443e80bdc tests: adds failing misordered fine response test 2023-05-24 13:00:44 -04:00