174644b63c
add openapi infra * add openapi infra Includes generated stubs and all deps * generatetolocation * basesetupoffunctionsandclient * round1controllertests * passintegrationtests * cleanupfromfullsuite * storedjson * fixjsonyaml * fixtests Approved-by: Michael McGuinness
25 lines
562 B
Go
25 lines
562 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()
|
|
|
|
address, cleanup := test.CreateAPIWithDependencies(t, ctx, "queryService")
|
|
defer cleanup()
|
|
|
|
client, err := queryservice.NewClientWithResponses(address)
|
|
assert.Nil(t, err)
|
|
|
|
idRes, err := client.TriggerExportWithResponse(ctx, queryservice.ExportTrigger{})
|
|
assert.Nil(t, err)
|
|
assert.NotNil(t, idRes)
|
|
}
|