2025-02-12 19:00:25 +00:00
|
|
|
package documentsync_test
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
2025-03-05 12:05:46 +00:00
|
|
|
"queryorchestration/internal/serviceconfig/queue/documentsync"
|
|
|
|
|
|
2025-02-12 19:00:25 +00:00
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func TestGetDocumentSyncURL(t *testing.T) {
|
|
|
|
|
cfg := documentsync.DocSyncConfig{}
|
|
|
|
|
|
|
|
|
|
name := cfg.GetDocumentSyncURL()
|
|
|
|
|
assert.Equal(t, "", name)
|
|
|
|
|
|
|
|
|
|
cfg.DocumentSyncURL = "name"
|
|
|
|
|
name = cfg.GetDocumentSyncURL()
|
|
|
|
|
assert.Equal(t, "name", name)
|
|
|
|
|
assert.Equal(t, cfg.DocumentSyncURL, name)
|
|
|
|
|
}
|