kubo/test
Marcin Rataj 6df07bd5a6 fix: wire --config-file flag across all commands
the --config-file global flag was defined but not properly used by most
commands. this fixes the flag to work consistently, allowing config to
be stored separately from the repo.

useful for Kubernetes deployments where config comes from a ConfigMap
and data lives on a PersistentVolume.

changes:
- fsrepo: add InitWithUserConfig/OpenWithUserConfig that respect custom
  config paths
- fsrepo: fix InitWithUserConfig to create version/datastore_spec even
  when config file already exists (pre-populated from ConfigMap)
- commands: update all commands that open repo to use the new functions
- daemon: add CONFIGURATION FILE MANAGEMENT section to help text
  explaining difference between --init-config (one-time copy) and
  --config-file (persistent external path)
- init: clarify that default-config template preserves Identity
2025-12-20 05:15:11 +01:00
..
3nodetest feat(fuse): Expose MFS as FUSE mount point (#10781) 2025-05-06 21:55:53 +02:00
api-startup misc: Remove some dead code 2018-03-21 01:34:04 +01:00
bench fix: error during config when running benchmarks (#10495) 2024-08-28 18:21:16 +02:00
bin Replace go-random with random-data from go-test package (#10731) 2025-02-24 13:42:39 -08:00
cli fix: wire --config-file flag across all commands 2025-12-20 05:15:11 +01:00
dependencies chore: update go-libp2p 0.46 (#11105) 2025-12-16 19:03:08 +01:00
integration refactor: replace context.WithCancel with t.Context (#11083) 2025-11-28 16:39:55 +01:00
sharness test: verifyWorkerRun and helptext (#11063) 2025-11-17 18:51:33 +01:00
unit feat: add basic CLI tests using Go Test 2022-12-12 09:43:09 -05:00
.gitignore test: add IPFS-BUILD-OPTIONS to .gitignore 2015-04-06 18:06:24 +02:00
ipfs-test-lib.sh test: fix Docker tests in GH Actions (#9812) 2023-04-12 09:03:11 +02:00
README.md test/README: update sharness test coverage 2015-04-02 11:56:49 +02:00
Rules.mk ci: Coverage and Junit xmls in one run 2018-10-29 18:44:49 +01:00
sharness_test_coverage_helper.sh Fix typos and cleanup 2020-04-20 22:00:01 +03:00

Sharness test command coverage

Module Online Test Offline Test
object t0051 t0051
ls t0045 t0045
cat t0040
dht
bitswap
block t0050
daemon t0030 N/A
init N/A t0020
add t0040
config t0021 t0021
version t0060 t0010
ping
diag
mount t0030
name t0110 t0100
pin t0080
get t0090 t0090
refs t0080
repo gc t0080
id
bootstrap t0120 t0120
swarm
update
commands