Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 159 for responses (0.15 sec)

  1. pkg/xds/server_test.go

    				ResourceNames: []string{},
    			},
    			response: false,
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if response, _ := ShouldRespond(tt.proxy, "test", tt.request); response != tt.response {
    				t.Fatalf("Unexpected value for response, expected %v, got %v", tt.response, response)
    			}
    			if tt.name != "reconnect" && tt.response {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. cni/pkg/plugin/cnieventclient.go

    	if err != nil {
    		return err
    	}
    	var response *http.Response
    	response, err = cniClient.client.Post(cniClient.url, "application/json", bytes.NewBuffer(eventData))
    	if err != nil {
    		return err
    	}
    	defer response.Body.Close()
    
    	if response.StatusCode != http.StatusOK {
    		return fmt.Errorf("unable to push CNI event, error was %d", response.StatusCode)
    	}
    
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. pilot/cmd/pilot-agent/status/server_test.go

    	"istio.io/istio/pkg/test/util/retry"
    )
    
    type handler struct {
    	// LastALPN stores the most recent ALPN requested. This is needed to determine info about a request,
    	// since the appProber strips all headers/responses.
    	lastAlpn *atomic.String
    }
    
    const (
    	testHeader      = "Some-Header"
    	testHeaderValue = "some-value"
    	testHostValue   = "test.com:9999"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. pkg/kube/adapter.go

    	Request *AdmissionRequest `json:"request,omitempty"`
    
    	// Response describes the attributes for the admission response.
    	Response *AdmissionResponse `json:"response,omitempty"`
    }
    
    // AdmissionRequest describes the admission.Attributes for the admission request.
    type AdmissionRequest struct {
    	// UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 10 16:40:00 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  5. pkg/envoy/admin.go

    	}
    	return buffer, nil
    }
    
    func doHTTPPost(requestURL, contentType, body string) (*bytes.Buffer, error) {
    	response, err := http.Post(requestURL, contentType, strings.NewReader(body))
    	if err != nil {
    		return nil, err
    	}
    	defer func() { _ = response.Body.Close() }()
    
    	var b bytes.Buffer
    	if _, err := io.Copy(&b, response.Body); err != nil {
    		return nil, err
    	}
    	return &b, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 19 20:22:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. security/pkg/server/ca/server_test.go

    		}
    		response, err := server.CreateCertificate(ctx, request)
    
    		s, _ := status.FromError(err)
    		code := s.Code()
    		if code != c.code {
    			t.Errorf("Case %s: expecting code to be (%d) but got (%d): %s", id, c.code, code, s.Message())
    		} else if c.code == codes.OK {
    			if len(response.CertChain) != len(mockCertChain) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/sidecar.go

    	Config() (*admin.ConfigDump, error)
    	ConfigOrFail(t test.Failer) *admin.ConfigDump
    
    	// WaitForConfig queries the Envoy configuration an executes the given accept handler. If the
    	// response is not accepted, the request will be retried until either a timeout or a response
    	// has been accepted.
    	WaitForConfig(accept func(*admin.ConfigDump) (bool, error), options ...retry.Option) error
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 03:49:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. tests/integration/security/egress_gateway_origination_test.go

    		},
    		Check: check.And(
    			check.NoErrorAndStatus(statusCode),
    			check.Each(func(r echoClient.Response) error {
    				if _, f := r.RequestHeaders["Handled-By-Egress-Gateway"]; useGateway && !f {
    					return fmt.Errorf("expected to be handled by gateway. response: %s", r)
    				}
    				return nil
    			})),
    	}
    }
    
    func newTLSGatewayTest(t framework.TestContext) *echotest.T {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. tests/integration/security/filebased_tls_origination/egress_gateway_origination_test.go

    							},
    							Check: check.And(
    								check.NoError(),
    								check.Status(tc.code),
    								check.Each(func(r echoClient.Response) error {
    									if _, f := r.RequestHeaders["Handled-By-Egress-Gateway"]; tc.gateway && !f {
    										return fmt.Errorf("expected to be handled by gateway. response: %s", r)
    									}
    									return nil
    								})),
    						}
    
    						internalClient[0].CallOrFail(t, opts)
    					})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  10. pkg/test/echo/common/scheme/scheme.go

    	WebSocket Instance = "ws"
    	TCP       Instance = "tcp"
    	UDP       Instance = "udp"
    	// TLS sends a TLS connection and reports back the properties of the TLS connection
    	// This is similar to `openssl s_client`
    	// Response data is not returned; only information about the TLS handshake.
    	TLS Instance = "tls"
    	// DNS does a DNS query and reports back the results.
    	DNS Instance = "dns"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 17:19:22 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top