kubo/test/cli
Gus Eggert a24cfb89a5
test: port remote pinning tests to Go (#9720)
This also means that rb-pinning-service-api is no longer required for
running remote pinning tests. This alone saves at least 3 minutes in
test runtime in CI because we don't need to checkout the repo, build
the Docker image, run it, etc.

Instead this implements a simple pinning service in Go that the test
runs in-process, with a callback that can be used to control the async
behavior of the pinning service (e.g. simulate work happening
asynchronously like transitioning from "queued" -> "pinning" ->
"pinned").

This also adds an environment variable to Kubo to control the MFS
remote pin polling interval, so that we don't have to wait 30 seconds
in the test for MFS changes to be repinned. This is purely for tests
so I don't think we should document this.

This entire test suite runs in around 2.5 sec on my laptop, compared to
the existing 3+ minutes in CI.
2023-03-30 07:46:35 -04:00
..
harness test: port remote pinning tests to Go (#9720) 2023-03-30 07:46:35 -04:00
testutils test: port remote pinning tests to Go (#9720) 2023-03-30 07:46:35 -04:00
basic_commands_test.go feat: Reduce RM code footprint 2023-03-06 12:46:58 +01:00
completion_test.go feat: add basic CLI tests using Go Test 2022-12-12 09:43:09 -05:00
delegated_routing_http_test.go feat: add client-side metrics for routing-v1 client 2023-03-27 18:19:28 -04:00
dht_autoclient_test.go test: fix autoclient flakiness (#9769) 2023-03-29 11:56:25 -04:00
dht_legacy_test.go test: port routing DHT tests to Go (#9709) 2023-03-29 19:28:55 -04:00
gateway_test.go feat: remove writable gateway (#9743) 2023-03-27 15:19:55 +02:00
init_test.go feat: add basic CLI tests using Go Test 2022-12-12 09:43:09 -05:00
must.go test: port remote pinning tests to Go (#9720) 2023-03-30 07:46:35 -04:00
peering_test.go feat: add identify option to swarm peers command 2023-03-30 04:34:57 +00:00
ping_test.go feat: add basic CLI tests using Go Test 2022-12-12 09:43:09 -05:00
pinning_remote_test.go test: port remote pinning tests to Go (#9720) 2023-03-30 07:46:35 -04:00
pins_test.go feat: port pins CLI test 2022-12-16 07:39:52 -05:00
rcmgr_test.go fix: future proof with > rcmgr.DefaultLimit for new enum rcmgr values 2023-03-16 13:41:24 +01:00
routing_dht_test.go test: port routing DHT tests to Go (#9709) 2023-03-29 19:28:55 -04:00
stats_test.go fix: stats dht command when Routing.Type=auto (#9538) 2023-01-13 00:38:38 +01:00
swarm_test.go feat: add identify option to swarm peers command 2023-03-30 04:34:57 +00:00