radicle-heartwood-lfs/radicle-node/src
Fintan Halpenny 821a6b6c08
node: test do not fetch from owned refs
To ensure the behaviour of ignoring references that are owned by the
local peer a test case is added.

The case has two peers: alice and bob, where alice creates a new
repository. bob fetches to be up-to-date with alice. alice, in turn,
creates an issue and fetches from bob -- which should be successful.

If the refspec:

    ^refs/namespaces/<alice>/*

was not in place, her fetch from bob would fail since the signed
references would not be a fast-forward.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-03-08 11:33:42 +00:00
..
address node: Use millisecond precision for timestamps 2023-02-14 20:31:40 +01:00
runtime radicle: accept Scope as track_repo argument 2023-03-08 11:29:34 +00:00
service node: determine fetching namespace based on repo policy 2023-03-08 11:33:41 +00:00
test node: test do not fetch from owned refs 2023-03-08 11:33:42 +00:00
tests node: test do not fetch from owned refs 2023-03-08 11:33:42 +00:00
wire node: use enum for fetch direction 2023-03-08 10:12:54 +00:00
address.rs Remove unused type 2022-10-18 12:37:01 +02:00
bounded.rs node: Complete the "relay" seed test 2023-02-14 20:31:40 +01:00
clock.rs node: Use millisecond precision for timestamps 2023-02-14 20:31:40 +01:00
control.rs radicle: accept Scope as track_repo argument 2023-03-08 11:29:34 +00:00
deserializer.rs Replace `quickcheck` with `qcheck` 2022-12-04 20:40:54 +01:00
lib.rs crypto: Cleanup `hash` module 2023-02-17 10:51:27 +01:00
logger.rs Rust 1.67 2023-02-04 19:30:29 +01:00
main.rs node: Minor logging improvements 2023-03-06 15:39:07 +01:00
runtime.rs node: improve fetch 2023-03-08 11:29:34 +00:00
service.rs node: determine fetching namespace based on repo policy 2023-03-08 11:33:41 +00:00
signals.rs node: Handle `SIGINT` and `SIGTERM` properly 2023-02-14 13:28:16 +01:00
sql.rs Use database transactions where appropriate 2022-11-08 09:39:23 +01:00
test.rs node: Create shared test environment 2023-02-07 10:46:12 +01:00
tests.rs radicle: accept Scope as track_repo argument 2023-03-08 11:29:34 +00:00
wire.rs crypto: Cleanup `hash` module 2023-02-17 10:51:27 +01:00
worker.rs node: improve fetch 2023-03-08 11:29:34 +00:00