3 meta = with lib.maintainers; {
4 maintainers = [ mguentner Luflosi ];
7 nodes.machine = { config, ... }: {
14 extraGroups = [ config.services.kubo.group ];
24 with subtest("FUSE mountpoint"):
25 machine.fail("echo a | su bob -l -c 'ipfs add --quieter'")
26 # The FUSE mount functionality is broken as of v0.13.0. This is still the case with v0.29.0.
27 # See https://github.com/ipfs/kubo/issues/9044.
28 # Workaround: using CID Version 1 avoids that.
29 ipfs_hash = machine.succeed(
30 "echo fnord3 | su alice -l -c 'ipfs add --quieter --cid-version=1'"
33 machine.succeed(f"cat /ipfs/{ipfs_hash} | grep fnord3")
35 with subtest("Unmounting of /ipns and /ipfs"):
36 # Force Kubo to crash and wait for it to restart
37 machine.systemctl("kill --signal=SIGKILL ipfs.service")
38 machine.wait_for_unit("ipfs.service", timeout = 30)
40 machine.succeed(f"cat /ipfs/{ipfs_hash} | grep fnord3")