Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 159 for responses (0.2 sec)

  1. pkg/test/echo/response.go

    import (
    	"fmt"
    	"net/http"
    	"sort"
    	"strings"
    )
    
    // HeaderType is a helper enum for retrieving Headers from a Response.
    type HeaderType string
    
    const (
    	RequestHeader  HeaderType = "request"
    	ResponseHeader HeaderType = "response"
    )
    
    // Response represents a response to a single echo request.
    type Response struct {
    	// RequestURL is the requested URL. This differs from URL, which is the just the path.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 01 01:05:45 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  2. tests/integration/security/egress_sidecar_tls_origination_test.go

    					return fmt.Errorf("unexpected error: %w", err)
    				}
    				if !strings.Contains(err.Error(), exRsp.ErrorMessage) {
    					return fmt.Errorf("expected response error message %s but got %w and the response code is %+v",
    						exRsp.ErrorMessage, err, result.Responses)
    				}
    				return nil
    			}
    			return check.And(check.NoErrorAndStatus(exRsp.StatusCode), check.BodyContains(exRsp.ErrorMessage)).Check(result, nil)
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. pilot/pkg/model/telemetry.go

    	// Additionally, fetch relevant access logging configurations
    	tml := mergeLogs(c.Logging, t.meshConfig, workloadMode(class))
    
    	// The above result is in a nested map to deduplicate responses. This loses ordering, so we convert to
    	// a list to retain stable naming
    	allKeys := sets.New[string]()
    	for k, v := range tml {
    		if v.Disabled {
    			continue
    		}
    		allKeys.Insert(k)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 18:14:09 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. pilot/pkg/xds/discovery.go

    	}
    	s.JwtKeyResolver = model.NewJwksResolver(
    		model.JwtPubKeyEvictionDuration, model.JwtPubKeyRefreshInterval,
    		model.JwtPubKeyRefreshIntervalOnFailure, model.JwtPubKeyRetryInterval)
    
    	// Flush cached discovery responses when detecting jwt public key change.
    	s.JwtKeyResolver.PushFunc = func() {
    		s.ConfigUpdate(&model.PushRequest{Full: true, Reason: model.NewReasonStats(model.UnknownTrigger)})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 20:21:09 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. tests/integration/telemetry/policy/helper_test.go

    							// the expected response from a blackhole test case will have err
    							// set; use the length of the expected code to ignore this condition
    							if err != nil && tc.Expected.StatusCode > 0 {
    								return fmt.Errorf("request failed: %v", err)
    							}
    							codeStr := strconv.Itoa(tc.Expected.StatusCode)
    							for i, r := range result.Responses {
    								if codeStr != r.Code {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. tests/integration/security/fuzz/fuzz_test.go

    	if !strings.Contains(stdout, "Prescan: original token Response Code: 200") {
    		t.Fatalf("could not find prescan check, please make sure the jwt_tool.py completed successfully")
    	}
    	errCases := []string{}
    	scanStarted := false
    	for _, line := range strings.Split(stdout, "\n") {
    		if scanStarted {
    			// First check the response is a valid test case.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. pilot/pkg/bootstrap/server.go

    }
    
    // initRegistryEventHandlers sets up event handlers for config and service updates
    func (s *Server) initRegistryEventHandlers() {
    	log.Info("initializing registry event handlers")
    	// Flush cached discovery responses whenever services configuration change.
    	serviceHandler := func(prev, curr *model.Service, event model.Event) {
    		pushReq := &model.PushRequest{
    			Full:           true,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  8. pkg/adsc/adsc.go

    	// Retrieved configurations can be stored using the common istio model interface.
    	Store model.ConfigStore
    
    	// Retrieved endpoints can be stored in the memory registry. This is used for CDS and EDS responses.
    	Registry *memory.ServiceDiscovery
    
    	// LocalCacheDir is set to a base name used to save fetched resources.
    	// If set, each update will be saved.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 05 22:18:49 UTC 2024
    - 35K bytes
    - Viewed (0)
  9. tests/integration/pilot/common/routing.go

    				Check: check.And(
    					check.OK(),
    					ConsistentHostChecker,
    				),
    				PropagateResponse: func(req *http.Request, res *http.Response) {
    					scopes.Framework.Infof("invoking propagate response")
    					if res == nil {
    						scopes.Framework.Infof("no response")
    						return
    					}
    					if res.Cookies() == nil {
    						scopes.Framework.Infof("no cookies")
    						return
    					}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  10. pilot/cmd/pilot-agent/status/testserver/server.go

    package testserver
    
    import (
    	"net"
    	"net/http"
    	"net/http/httptest"
    )
    
    // CreateAndStartServer starts a server and returns the response passed.
    func CreateAndStartServer(response string) *httptest.Server {
    	return createHTTPServer(createDefaultFuncMap(response))
    }
    
    func createHTTPServer(handlers map[string]func(rw http.ResponseWriter, _ *http.Request)) *httptest.Server {
    	mux := http.NewServeMux()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 26 17:53:14 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top