mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration/fixtures: Move the 'tests/integration/fixtures' directory up and update references.
I moved the files up as they are shared between e2e & integrational tests.
This commit is contained in:
@@ -24,6 +24,7 @@ import (
|
||||
"go.etcd.io/etcd/tests/v3/integration"
|
||||
"go.etcd.io/etcd/v3/clientv3"
|
||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||
"go.etcd.io/etcd/v3/proxy/grpcproxy"
|
||||
|
||||
"go.uber.org/zap"
|
||||
"google.golang.org/grpc"
|
||||
@@ -114,8 +115,8 @@ func newClusterProxyServer(lg *zap.Logger, endpoints []string, t *testing.T) *cl
|
||||
cts.server.Serve(cts.l)
|
||||
}()
|
||||
|
||||
Register(lg, client, "test-prefix", cts.l.Addr().String(), 7)
|
||||
cts.cp, cts.donec = NewClusterProxy(lg, client, cts.l.Addr().String(), "test-prefix")
|
||||
grpcproxy.Register(lg, client, "test-prefix", cts.l.Addr().String(), 7)
|
||||
cts.cp, cts.donec = grpcproxy.NewClusterProxy(lg, client, cts.l.Addr().String(), "test-prefix")
|
||||
cts.caddr = cts.l.Addr().String()
|
||||
pb.RegisterClusterServer(cts.server, cts.cp)
|
||||
close(servec)
|
||||
|
||||
@@ -24,6 +24,7 @@ import (
|
||||
"go.etcd.io/etcd/tests/v3/integration"
|
||||
"go.etcd.io/etcd/v3/clientv3"
|
||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||
"go.etcd.io/etcd/v3/proxy/grpcproxy"
|
||||
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
@@ -76,7 +77,7 @@ func newKVProxyServer(endpoints []string, t *testing.T) *kvproxyTestServer {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
kvp, _ := NewKvProxy(client)
|
||||
kvp, _ := grpcproxy.NewKvProxy(client)
|
||||
|
||||
kvts := &kvproxyTestServer{
|
||||
kp: kvp,
|
||||
|
||||
@@ -22,6 +22,7 @@ import (
|
||||
"go.etcd.io/etcd/v3/clientv3"
|
||||
"go.etcd.io/etcd/v3/clientv3/naming"
|
||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||
"go.etcd.io/etcd/v3/proxy/grpcproxy"
|
||||
|
||||
"go.uber.org/zap"
|
||||
gnaming "google.golang.org/grpc/naming"
|
||||
@@ -45,7 +46,7 @@ func TestRegister(t *testing.T) {
|
||||
t.Fatalf("len(ups) expected 0, got %d (%v)", len(ups), ups)
|
||||
}
|
||||
|
||||
donec := Register(zap.NewExample(), cli, testPrefix, paddr, 5)
|
||||
donec := grpcproxy.Register(zap.NewExample(), cli, testPrefix, paddr, 5)
|
||||
|
||||
ups, err = wa.Next()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user