kubo/test/cli/testutils
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
..
pinningservice test: port remote pinning tests to Go (#9720) 2023-03-30 07:46:35 -04:00
asserts.go test: fix flaky rcmgr test 2023-03-15 22:45:56 -04:00
cids.go feat: add basic CLI tests using Go Test 2022-12-12 09:43:09 -05:00
files.go feat: port pins CLI test 2022-12-16 07:39:52 -05:00
json.go feat: port pins CLI test 2022-12-16 07:39:52 -05:00
random.go feat: port pins CLI test 2022-12-16 07:39:52 -05:00
requires.go feat: add basic CLI tests using Go Test 2022-12-12 09:43:09 -05:00
strings.go test: port peering test from sharness to Go 2023-03-13 10:54:53 -04:00