- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for UnmarshalRouteConfiguration (3.56 sec)
-
pilot/test/xdstest/extract.go
res := map[string]*tls.Secret{} for _, a := range secrets { scrt := UnmarshalAny[tls.Secret](t, a) res[scrt.Name] = scrt } return res } func UnmarshalRouteConfiguration(t test.Failer, resp []*anypb.Any) []*route.RouteConfiguration { un := make([]*route.RouteConfiguration, 0, len(resp)) for _, r := range resp { u := &route.RouteConfiguration{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 19 22:42:42 UTC 2023 - 13.9K bytes - Viewed (0) -
pilot/pkg/xds/ads_test.go
func TestEnvoyRDSUpdatedRouteRequest(t *testing.T) { expectRoutes := func(resp *discovery.DiscoveryResponse, expected ...string) { t.Helper() got := xdstest.MapKeys(xdstest.ExtractRouteConfigurations(xdstest.UnmarshalRouteConfiguration(t, resp.Resources))) if !reflect.DeepEqual(expected, got) { t.Fatalf("expected routes %v got %v", expected, got) } } s := xdsfake.NewFakeDiscoveryServer(t, xdsfake.FakeOptions{})
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 30 17:25:17 UTC 2024 - 30.3K bytes - Viewed (0)