Files
query-orchestration/test/queryAPI/exportservice_test.go
T
Michael McGuinness 555b6d420b Merged in feature/docresult (pull request #105)
Document Result Endpoint

* testing

* cleantesting

* progress

* query

* lint

* readme

* dockerclient

* api

* passtest

* tests

* test
2025-03-17 18:14:15 +00:00

28 lines
581 B
Go

package endtoend
import (
"context"
"testing"
"queryorchestration/internal/test"
queryapi "queryorchestration/pkg/queryAPI"
"github.com/stretchr/testify/assert"
)
func TestExportService(t *testing.T) {
ctx := context.Background()
c, cleanup := test.CreateAPINetwork(t, ctx, &test.ServiceNetworkConfig{
API: test.QueryAPI,
})
defer cleanup()
client, err := queryapi.NewClientWithResponses(c.URI)
assert.NoError(t, err)
idRes, err := client.TriggerExportWithResponse(ctx, "CLIENT_ID", queryapi.ExportTrigger{})
assert.NoError(t, err)
assert.NotNil(t, idRes)
}