2025-02-12 19:00:25 +00:00
|
|
|
package documentinit
|
2025-02-03 17:30:50 +00:00
|
|
|
|
|
|
|
|
import (
|
2025-03-05 12:05:46 +00:00
|
|
|
"testing"
|
|
|
|
|
|
2025-02-12 19:00:25 +00:00
|
|
|
"queryorchestration/internal/serviceconfig"
|
2026-01-12 17:46:07 +00:00
|
|
|
"queryorchestration/internal/serviceconfig/objectstore"
|
2025-02-12 19:00:25 +00:00
|
|
|
"queryorchestration/internal/serviceconfig/queue/documentsync"
|
2025-02-03 17:30:50 +00:00
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
)
|
|
|
|
|
|
2025-02-12 19:00:25 +00:00
|
|
|
type DocInitConfig struct {
|
|
|
|
|
serviceconfig.BaseConfig
|
|
|
|
|
documentsync.DocSyncConfig
|
2026-01-12 17:46:07 +00:00
|
|
|
objectstore.ObjectStoreConfig
|
2025-02-12 19:00:25 +00:00
|
|
|
}
|
|
|
|
|
|
2025-04-23 17:51:44 +00:00
|
|
|
func TestNewDocumentInitService(t *testing.T) {
|
2025-02-12 19:00:25 +00:00
|
|
|
svc := New(&DocInitConfig{})
|
2025-02-03 17:30:50 +00:00
|
|
|
assert.NotNil(t, svc)
|
2025-02-12 19:00:25 +00:00
|
|
|
|
2025-02-03 17:30:50 +00:00
|
|
|
}
|