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

30 lines
623 B
Go
Raw Normal View History

package endtoend
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) {
ctx := context.Background()
c, cleanup := test.CreateAPINetwork(t, ctx, &test.ServiceNetworkConfig{
API: test.QueryAPI,
})
defer cleanup()
client, err := queryapi.NewClientWithResponses(c.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)
}