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

25 lines
562 B
Go
Raw Normal View History

package integration_test
import (
"context"
"queryorchestration/internal/test"
2025-01-15 19:45:51 +00:00
queryservice "queryorchestration/pkg/queryService"
"testing"
"github.com/stretchr/testify/assert"
)
func TestExportService(t *testing.T) {
ctx := context.Background()
2025-01-15 19:45:51 +00:00
address, cleanup := test.CreateAPIWithDependencies(t, ctx, "queryService")
defer cleanup()
2025-01-15 19:45:51 +00:00
client, err := queryservice.NewClientWithResponses(address)
assert.Nil(t, err)
2025-01-15 19:45:51 +00:00
idRes, err := client.TriggerExportWithResponse(ctx, queryservice.ExportTrigger{})
assert.Nil(t, err)
assert.NotNil(t, idRes)
}