package main import "testing" func TestAIWorkerUsesIndependentGovernanceConfigurationWithoutOpeningSource(t *testing.T) { values := map[string]string{} get := func(k string) string { return values[k] } if configureQAProcessing(nil, get, "postgres://fixture@localhost/local") != nil { t.Fatal("disabled AI worker registered") } values["DOBOTAI_OPS_READ_ENABLED"] = "true" values["DOBOTAI_OPS_TENANT_KEY"] = "fixture-ai-worker" values["DOBOTAI_OPS_READ_DSN_FILE"] = "/nonexistent-fixture-source-secret" if configureQAProcessing(nil, get, "postgres://fixture@localhost/local") == nil { t.Fatal("AI worker still depends on source availability or was not registered") } }