7001ca854c
Queuing Changes and Cfg Testing * staarting * staarting * startedpush * note * save * mocking * removederrs * fixtests * cleanuperrs * newenvsetup * preppingtests * queue * mmovetocfgpassunittests * sortoutconfig * passinginteg * deps * fixtests
27 lines
600 B
Go
27 lines
600 B
Go
package integration_test
|
|
|
|
import (
|
|
"context"
|
|
"queryorchestration/internal/test"
|
|
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,
|
|
})
|
|
defer cleanup()
|
|
|
|
client, err := queryservice.NewClientWithResponses(c.URI)
|
|
assert.NoError(t, err)
|
|
|
|
idRes, err := client.TriggerExportWithResponse(ctx, queryservice.ExportTrigger{})
|
|
assert.NoError(t, err)
|
|
assert.NotNil(t, idRes)
|
|
}
|