Files
query-orchestration/test/queryService/exportservice_test.go
T
Michael McGuinness c78ca26a6f Merged in feature/export (pull request #91)
export

* export
2025-03-05 19:37:06 +00:00

35 lines
757 B
Go

package endtoend
import (
"context"
"testing"
"queryorchestration/internal/test"
queryservice "queryorchestration/pkg/queryService"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
)
func TestExportService(t *testing.T) {
ctx := context.Background()
c, cleanup := test.CreateServiceNetwork(t, ctx, &test.ServiceNetworkConfig{
Name: test.QueryService,
Env: map[string]string{
"JOB_SYNC_URL": "/i/am/here",
"QUERY_VERSION_SYNC_URL": "iamthere",
},
})
defer cleanup()
client, err := queryservice.NewClientWithResponses(c.URI)
assert.NoError(t, err)
id := uuid.New()
idRes, err := client.TriggerExportWithResponse(ctx, id, queryservice.ExportTrigger{})
assert.NoError(t, err)
assert.NotNil(t, idRes)
}