27 lines
476 B
Go
27 lines
476 B
Go
package integration_test
|
|
|
|
import (
|
|
"context"
|
|
serviceinterfaces "queryorchestration/api/serviceInterfaces"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestQuery(t *testing.T) {
|
|
ctx := context.Background()
|
|
|
|
conn, cleanup := createAPIDependencies(t, ctx, "queryservice")
|
|
defer cleanup()
|
|
|
|
client := serviceinterfaces.NewQueryServiceClient(conn)
|
|
|
|
id := "sample_id"
|
|
|
|
_, err := client.Get(ctx, &serviceinterfaces.IdMessage{
|
|
Id: id,
|
|
})
|
|
|
|
assert.Nil(t, err)
|
|
}
|