Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ExtractLoadAssignments (0.21 sec)

  1. 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)
  2. 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)
Back to top