- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 28 for NewFakeDiscoveryServer (0.73 sec)
-
tests/fuzz/xds_fuzzer.go
testing.Init() } func FuzzXds(data []byte) int { t := &testing.T{} // Use crd.ParseInputs to verify data _, _, err := crd.ParseInputs(string(data)) if err != nil { return 0 } s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{ ConfigString: string(data), }) proxy := s.SetupProxy(&model.Proxy{ ConfigNamespace: "app", }) _ = s.Listeners(proxy) _ = s.Routes(proxy) return 1
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 12 18:20:36 UTC 2024 - 1.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceregistry_test.go
Port: 8080, }} expectServiceEndpoints(t, fx, expectedSvc, 80, instances) }) t.Run("Service selects WorkloadEntry with targetPort number", func(t *testing.T) { s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{}) ei := s.Discovery.Env.EndpointIndex makeService(t, s.KubeClient().Kube(), &v1.Service{ ObjectMeta: metav1.ObjectMeta{ Name: "service", Namespace: namespace, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 51.2K bytes - Viewed (0) -
pilot/pkg/xds/eds_test.go
asdc2Locality = "region2/zone2/subzone2" edsIncSvc = "eds.test.svc.cluster.local" edsIncVip = "10.10.1.2" ) func TestIncrementalPush(t *testing.T) { s := xdsfake.NewFakeDiscoveryServer(t, xdsfake.FakeOptions{ ConfigString: mustReadFile(t, "tests/testdata/config/destination-rule-all.yaml") + mustReadFile(t, "tests/testdata/config/static-weighted-se.yaml"), }) ads := s.Connect(nil, nil, watchAll)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 20:58:47 UTC 2024 - 39.6K bytes - Viewed (0) -
pilot/pkg/xds/rds_test.go
// ignore it. If we ignore the route, the listeners can get stuck waiting forever. "sidecar_badroute", sidecarID(app3Ip, "app3"), []string{"ht&p"}, }, } s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{}) for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { ads := s.ConnectADS().WithType(v3.RouteType).WithID(tt.node)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 12 18:20:36 UTC 2024 - 2.1K bytes - Viewed (0) -
pilot/pkg/xds/vm_test.go
// exercises the full XDS flow. func TestRegistration(t *testing.T) { // TODO: allow fake XDS to be "authenticated" test.SetForTest(t, &features.ValidateWorkloadEntryIdentity, false) ds := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{}) ds.Store().Create(config.Config{ Meta: config.Meta{ GroupVersionKind: gvk.WorkloadGroup, Name: "wg", Namespace: "namespace", },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 12 18:20:36 UTC 2024 - 2.3K bytes - Viewed (0) -
pilot/pkg/networking/apigen/apigen_test.go
) // Creates an in-process discovery server, using the same code as Istiod, but // backed by an in-memory config and endpoint Store. func initDS(t *testing.T) *xds.FakeDiscoveryServer { ds := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{}) sd := ds.MemRegistry sd.AddHTTPService("fortio1.fortio.svc.cluster.local", "10.10.10.1", 8081) sd.SetEndpoints("fortio1.fortio.svc.cluster.local", "", []*model.IstioEndpoint{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 12 18:20:36 UTC 2024 - 2.3K bytes - Viewed (0) -
pilot/pkg/xds/sds_test.go
t.Run(tt.name, func(t *testing.T) { if tt.proxy.Metadata == nil { tt.proxy.Metadata = &model.NodeMetadata{} } tt.proxy.Metadata.ClusterID = constants.DefaultClusterName s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{ KubernetesObjects: []runtime.Object{genericCert, genericMtlsCert, genericMtlsCertCrl, genericMtlsCertSplit, genericMtlsCertSplitCa}, }) cc := s.KubeClient().Kube().(*fake.Clientset)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 13 20:55:20 UTC 2024 - 17.7K bytes - Viewed (0) -
pilot/pkg/xds/ecds_test.go
"istio.io/istio/pkg/config/schema/gvk" "istio.io/istio/pkg/config/schema/kind" "istio.io/istio/pkg/spiffe" "istio.io/istio/pkg/util/sets" ) func TestECDS(t *testing.T) { s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{ ConfigString: mustReadFile(t, "./testdata/ecds.yaml"), }) ads := s.ConnectADS().WithType(v3.ExtensionConfigurationType) wantExtensionConfigName := "extension-config"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 12K bytes - Viewed (0) -
pilot/pkg/networking/grpcgen/grpcecho_test.go
wg := sync.WaitGroup{} var cfgs []config.Config discoveryOpts.ListenerBuilder = func() (net.Listener, error) { return net.Listen("tcp", "127.0.0.1:0") } // Start XDS server cgt.ds = xds.NewFakeDiscoveryServer(t, discoveryOpts) _, xdsPorts, _ := net.SplitHostPort(cgt.ds.Listener.Addr().String()) xdsPort, _ := strconv.Atoi(xdsPorts) cgt.xdsPort = xdsPort for i, s := range servers { if s.namespace == "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 12 18:20:36 UTC 2024 - 8.3K bytes - Viewed (0) -
pilot/pkg/xds/bench_test.go
}{ {1, 100}, {10, 10}, {100, 10}, {1000, 1}, } for _, tt := range tests { b.Run(fmt.Sprintf("%d/%d", tt.endpoints, tt.services), func(b *testing.B) { s := xds.NewFakeDiscoveryServer(b, xds.FakeOptions{ Configs: createEndpointsConfig(tt.endpoints, tt.services, numNetworks), NetworksWatcher: mesh.NewFixedNetworksWatcher(&meshconfig.MeshNetworks{ Networks: createGateways(numNetworks),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 19.7K bytes - Viewed (0)