Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for validateHTTPRoute (0.24 sec)

  1. pkg/config/validation/validation.go

    		for _, httpRoute := range virtualService.Http {
    			if httpRoute == nil {
    				errs = AppendValidation(errs, errors.New("http route may not be null"))
    				continue
    			}
    			errs = AppendValidation(errs, validateHTTPRoute(httpRoute, len(virtualService.Hosts) == 0, gatewaySemantics))
    		}
    		for _, tlsRoute := range virtualService.Tls {
    			errs = AppendValidation(errs, validateTLSRoute(tlsRoute, virtualService, gatewaySemantics))
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  2. pkg/config/validation/validation_test.go

    				Destination: &networking.Destination{Host: "foo.baz"},
    			}},
    		}, valid: false},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			if err := validateHTTPRoute(tc.route, false, false); (err.Err == nil) != tc.valid {
    				t.Fatalf("got valid=%v but wanted valid=%v: %v", err.Err == nil, tc.valid, err)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
Back to top