kubo/test/cli/harness
Hector Sanjuan 46324f085d fix: disable telemetry in test profile (#10931)
* Tests: disable telemetry in tests by default

Disable the plugin in cli tests and sharness by default. Enable only in
telemetry tests.

There are cases when tests get stuck or get killed and leave daemons hanging around. We don't want to be getting telemetry from those.

* sharness: attempt to fix

* sharness: add missing --bool flag

* fix(ci): add omitempty to Plugin.Config field

The sharness problem is that when the telemetry plugin is configured
initially with 'ipfs config --bool', it creates a structure without
the 'Config: null' field, but when the config is copied and replaced,
it expects the structure to be preserved.

Adding omitempty ensures the Config field is omitted from JSON when
nil, making the config structure consistent between initial creation
and replacement operations.

---------

Co-authored-by: Marcin Rataj <lidel@lidel.org>
(cherry picked from commit 15f723a15e)
2025-08-27 16:26:50 +02:00
..
buffer.go test: fix autoclient flakiness (#9769) 2023-03-29 11:56:25 -04:00
harness.go style: gofumpt and godot [skip changelog] (#10081) 2023-08-17 14:02:08 +02:00
http_client.go test: port gateway sharness tests to Go tests 2023-01-17 21:27:54 +01:00
ipfs.go fix: Provide according to Reprovider.Strategy (#10886) 2025-08-08 10:56:44 +02:00
log.go test: port peering test from sharness to Go 2023-03-13 10:54:53 -04:00
node.go fix: disable telemetry in test profile (#10931) 2025-08-27 16:26:50 +02:00
nodes.go fix: harness tests random panic (#10933) 2025-08-27 16:26:42 +02:00
pbinspect.go feat(config): ipfs add and Import options for controling UnixFS DAG Width (#10774) 2025-04-15 22:56:38 +02:00
peering.go fix(ci): make NewRandPort thread-safe (#10921) 2025-08-18 22:12:22 +02:00
run.go tests(cli/harness): use unused Verbose flag to pipe daemon outputs (#10601) 2024-11-27 19:35:15 +01:00