- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ExtractLoadAssignments (0.28 sec)
-
pilot/pkg/xds/xds_test.go
ConfigTemplateInput: SidecarTestConfig{ ImportedNamespaces: []string{"./*", "included/*"}, Resolution: "STATIC", }, }) proxy := s.SetupProxy(baseProxy()) endpoints := xdstest.ExtractLoadAssignments(s.Endpoints(proxy)) if !slices.EqualUnordered(endpoints["outbound|80||app.com"], []string{"1.1.1.1:80"}) { t.Fatalf("expected 1.1.1.1, got %v", endpoints["outbound|80||app.com"]) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 13.8K bytes - Viewed (0) -
pilot/pkg/xds/ads_test.go
ResourceNames: []string{clusterName}, VersionInfo: version, ResponseNonce: nonce, }) version = res.VersionInfo nonce = res.Nonce got := xdstest.MapKeys(xdstest.ExtractLoadAssignments(xdstest.UnmarshalClusterLoadAssignment(t, res.Resources))) if len(got) != 1 { t.Fatalf("expected 1 response, got %v", len(got)) } if got[0] != clusterName {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 30 17:25:17 UTC 2024 - 30.3K bytes - Viewed (0) -
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/xds/mesh_network_test.go
if w.expectations == nil { return } t.Run("unweighted", func(t *testing.T) { // wait for eds cache update retry.UntilSuccessOrFail(t, func() error { eps := xdstest.ExtractLoadAssignments(s.Endpoints(w.proxy)) for c, want := range w.expectations { got := eps[c] if !slices.EqualUnordered(got, want) { err := fmt.Errorf("cluster %s, expected %v, but got %v", c, want, got)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 24.6K bytes - Viewed (0)