67a50bac0a
Add get, list, create, deprecate query service integration tests * showtestlines * more config * roundone * splituptests * splitfurther
24 lines
540 B
Go
24 lines
540 B
Go
package integration_test
|
|
|
|
import (
|
|
"context"
|
|
serviceinterfaces "queryorchestration/api/serviceInterfaces"
|
|
"queryorchestration/internal/test"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestExportService(t *testing.T) {
|
|
ctx := context.Background()
|
|
|
|
conn, cleanup := test.CreateAPIWithDependencies(t, ctx, "queryService")
|
|
defer cleanup()
|
|
|
|
expClient := serviceinterfaces.NewExportServiceClient(conn)
|
|
|
|
idRes, err := expClient.Trigger(ctx, &serviceinterfaces.ExportTrigger{})
|
|
assert.Nil(t, err)
|
|
assert.NotNil(t, idRes)
|
|
}
|