555b6d420b
Document Result Endpoint * testing * cleantesting * progress * query * lint * readme * dockerclient * api * passtest * tests * test
28 lines
581 B
Go
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)
|
|
}
|