Merged in feature/chatbot1 (pull request #223)
Chatbot functionality * baseline working * missing test file * more tests
This commit is contained in:
@@ -188,6 +188,12 @@ func initializeTestConfig(t testing.TB, cfg *ControllerConfig) {
|
||||
// Reset the singleton config state for testing
|
||||
serviceconfig.ResetConfigInitOnceTestOnly()
|
||||
|
||||
// Chatbot config is loaded via env tags during InitializeConfig and
|
||||
// has required+notEmpty fields. Provide test placeholder values so
|
||||
// the loader accepts the parse; production env supplies real values.
|
||||
t.Setenv("CHATBOT_SERVICE_URL", "http://chatbot.test:8000")
|
||||
t.Setenv("CHATBOT_API_KEY", "test-api-key")
|
||||
|
||||
// Initialize the base configuration
|
||||
err := serviceconfig.InitializeConfig(cfg)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user