Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

tests: neutral example values for the OTLP forward

Claudea41f3d79b672
diff --git a/cli/beacon/cmd/endpoint_test.go b/cli/beacon/cmd/endpoint_test.go
index cf98f3bc..1ba312bd 100644
--- a/cli/beacon/cmd/endpoint_test.go
+++ b/cli/beacon/cmd/endpoint_test.go
@@ -449,13 +449,13 @@ func TestOTLPForwardOptions(t *testing.T) {
t.Fatalf("otlpForwardOptions() with no flags = %#v, %v; want nil, nil so repair keeps the existing forward", got, err)
}
- endpointOpts.otlpForwardEndpoint = "otel.tokenize.example:4317"
- endpointOpts.otlpForwardHeaders = []string{"authorization=Bearer a=b", "x-org=rho"}
+ endpointOpts.otlpForwardEndpoint = "otel.backend.example:4317"
+ endpointOpts.otlpForwardHeaders = []string{"authorization=Bearer a=b", "x-org=example"}
got, err := otlpForwardOptions()
if err != nil {
t.Fatal(err)
}
- if got.Endpoint != "otel.tokenize.example:4317" || got.Headers["authorization"] != "Bearer a=b" || got.Headers["x-org"] != "rho" {
+ if got.Endpoint != "otel.backend.example:4317" || got.Headers["authorization"] != "Bearer a=b" || got.Headers["x-org"] != "example" {
t.Fatalf("otlpForwardOptions() = %#v", got)
}
diff --git a/cli/beacon/internal/endpoint/collector/collector_test.go b/cli/beacon/internal/endpoint/collector/collector_test.go
index a924a42b..757d005b 100644
--- a/cli/beacon/internal/endpoint/collector/collector_test.go
+++ b/cli/beacon/internal/endpoint/collector/collector_test.go
@@ -431,8 +431,8 @@ func TestConfigYAMLForwardsFilteredRedactedOTLPWhenConfigured(t *testing.T) {
for _, tc := range []struct {
protocol, endpoint, exporter string
}{
- {endpointconfig.OTLPForwardProtocolGRPC, "otel.tokenize.example:4317", "otlp/forward"},
- {endpointconfig.OTLPForwardProtocolHTTP, "https://otel.tokenize.example", "otlphttp/forward"},
+ {endpointconfig.OTLPForwardProtocolGRPC, "otel.backend.example:4317", "otlp/forward"},
+ {endpointconfig.OTLPForwardProtocolHTTP, "https://otel.backend.example", "otlphttp/forward"},
} {
t.Run(tc.protocol, func(t *testing.T) {
cfg := testConfig(t)
diff --git a/cli/beacon/internal/endpoint/config/config_test.go b/cli/beacon/internal/endpoint/config/config_test.go
index 9be757b7..e30941d2 100644
--- a/cli/beacon/internal/endpoint/config/config_test.go
+++ b/cli/beacon/internal/endpoint/config/config_test.go
@@ -262,7 +262,7 @@ func TestSaveLoadOTLPForwardKeepsHeaderValuesOutOfConfigJSON(t *testing.T) {
testenv.SetHome(t, home)
cfg := Default(true, filepath.Join(home, "logs", "runtime.jsonl"))
cfg.Destinations = &Destinations{OTLPForward: &OTLPForward{
- Endpoint: " https://otel.tokenize.example ",
+ Endpoint: " https://otel.backend.example ",
Protocol: "http",
Headers: map[string]string{"authorization": "Bearer secret"},
}}
@@ -295,7 +295,7 @@ func TestSaveLoadOTLPForwardKeepsHeaderValuesOutOfConfigJSON(t *testing.T) {
t.Fatalf("Load returned error: %v", err)
}
forward := loaded.Destinations.OTLPForward
- if !forward.Enabled || forward.Endpoint != "https://otel.tokenize.example" || forward.Protocol != OTLPForwardProtocolHTTP || forward.Headers["authorization"] != "Bearer secret" {
+ if !forward.Enabled || forward.Endpoint != "https://otel.backend.example" || forward.Protocol != OTLPForwardProtocolHTTP || forward.Headers["authorization"] != "Bearer secret" {
t.Fatalf("OTLP forward did not round-trip: %#v", forward)
}
if strings.Join(forward.Harnesses, ",") != "claude_code,codex_cli,codex_desktop" {