damondouglas commented on code in PR #29488:
URL: https://github.com/apache/beam/pull/29488#discussion_r1398311423
##########
sdks/go/test/integration/io/rrio/rrio_test.go:
##########
@@ -0,0 +1,139 @@
+package rrio
+
+import (
+ "context"
+ "fmt"
+ "github.com/apache/beam/sdks/v2/go/pkg/beam"
+ "github.com/apache/beam/sdks/v2/go/pkg/beam/io/rrio"
+ "github.com/apache/beam/sdks/v2/go/pkg/beam/testing/passert"
+ "github.com/apache/beam/sdks/v2/go/pkg/beam/testing/ptest"
+ echo
"github.com/apache/beam/sdks/v2/go/test/integration/io/rrio/echo/v1"
+ "github.com/golang/protobuf/proto"
+ "google.golang.org/grpc"
+ "google.golang.org/grpc/credentials/insecure"
+ "reflect"
+ "testing"
+ "time"
+)
+
+//go:generate cp -R
../../../../../../.test-infra/mock-apis/src/main/go/internal/proto/echo echo
+
+const (
+ echoShouldNeverExceedQuotaId = "echo-should-never-exceed-quota"
+ timeout = time.Hour * 3
+)
+
+func init() {
+ beam.RegisterType(reflect.TypeOf((*echoClient)(nil)).Elem())
+ beam.RegisterDoFn(encodeFn)
+}
+
+func TestExecute(t *testing.T) {
+ client := &echoClient{
+ Address: "localhost:50051",
Review Comment:
Ultimately this will come from a cli flag
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]