- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ExtractLoadAssignments (0.32 sec)
-
pilot/pkg/xds/delta_test.go
ResponseNonce: nonce, ResourceNamesSubscribe: add, ResourceNamesUnsubscribe: remove, }) nonce = res.Nonce got := xdstest.MapKeys(xdstest.ExtractLoadAssignments(xdstest.UnmarshalClusterLoadAssignment(t, xdsserver.ResourcesToAny(res.Resources)))) if !reflect.DeepEqual(expect, got) { t.Fatalf("expected clusters %v got %v", expect, got) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 15.2K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceregistry_test.go
} func expectEndpoints(t *testing.T, s *xds.FakeDiscoveryServer, cluster string, expected []string, metadata *model.NodeMetadata) { t.Helper() retry.UntilSuccessOrFail(t, func() error { got := xdstest.ExtractLoadAssignments(s.Endpoints(s.SetupProxy(&model.Proxy{Metadata: metadata}))) sort.Strings(got[cluster]) sort.Strings(expected) if !reflect.DeepEqual(got[cluster], expected) {
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/networking/core/sidecar_simulation_test.go
t.Errorf("expected clusters: %v, got: %v", xdstest.MapKeys(tt.clusters), got) } for cname, c := range cmap { // Check the upstream endpoints match got := xdstest.ExtractLoadAssignments([]*endpoint.ClusterLoadAssignment{c.GetLoadAssignment()})[cname] if !reflect.DeepEqual(tt.clusters[cname], got) { t.Errorf("%v: expected endpoints %v, got %v", cname, tt.clusters[cname], got) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 84.7K bytes - Viewed (0)