Files
query-orchestration/test/queryAPI/exportservice_test.go
T

31 lines
631 B
Go
Raw Normal View History

package endtoend_test
import (
"context"
"testing"
"queryorchestration/internal/test"
queryapi "queryorchestration/pkg/queryAPI"
2025-03-19 11:54:14 +00:00
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
)
func TestExportService(t *testing.T) {
2025-04-25 17:02:50 +00:00
t.Parallel()
ctx := context.Background()
cfg := &Config{}
c, cleanup := test.CreateAPINetwork(t, ctx, cfg, test.QueryAPI)
defer cleanup()
client, err := queryapi.NewClientWithResponses(c.API.URI)
2025-03-19 11:54:14 +00:00
require.NoError(t, err)
idRes, err := client.TriggerExportWithResponse(ctx, "CLIENT_ID", queryapi.ExportTrigger{})
2025-03-19 11:54:14 +00:00
require.NoError(t, err)
assert.NotNil(t, idRes)
}