kubo/cmd/ipfs
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
..
dist docs: bulk spelling edits (#9544) 2023-02-20 23:37:10 +01:00
util go fmt 2022-05-03 14:09:38 -04:00
.gitignore make: rework makefiles for non-recursive make and add sharness coverage 2017-02-12 01:18:40 +01:00
add_migrations.go chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00
daemon_linux.go go fmt 2022-05-03 14:09:38 -04:00
daemon_other.go go fmt 2022-05-03 14:09:38 -04:00
daemon.go chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00
debug.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
dnsresolve_test.go fix dns test 2021-05-10 21:04:55 -07:00
init.go chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00
ipfs.go ci: add stylecheck to golangci-lint (#9334) 2022-10-06 10:18:40 -04:00
main.go chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00
pinmfs_test.go chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00
pinmfs.go test: port remote pinning tests to Go (#9720) 2023-03-30 07:46:35 -04:00
Rules.mk refactor: rename to kubo 2022-07-06 18:40:37 +02:00
runmain_test.go chore: replace ioutil with io and os (#8969) 2022-06-14 12:37:02 -04:00