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

31 lines
707 B
Go
Raw Normal View History

package endtoend
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()
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)
2025-01-15 19:45:51 +00:00
idRes, err := client.TriggerExportWithResponse(ctx, queryservice.ExportTrigger{})
assert.NoError(t, err)
assert.NotNil(t, idRes)
}