Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ExpectResponse (0.22 sec)

  1. pilot/pkg/xds/delta_test.go

    		ResourceNamesSubscribe: []string{},
    	})
    	resp := ads.ExpectResponse()
    	assertResources(resp, "outbound|80||test-1.default", "outbound|8080||eds.test.svc.cluster.local", "inbound|80||")
    	assert.Equal(t, resp.RemovedResources, nil)
    
    	// On remove, just get the removal
    	s.MemRegistry.RemoveService("test-1.default")
    	resp = ads.ExpectResponse()
    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/xds/workload_test.go

    		expectRemoved(ads.ExpectResponse(), "/127.0.0.2")
    
    		// Once we create it, we should get a push
    		createPod(s, "pod2", "sa", "127.0.0.2", "node")
    		expect(ads.ExpectResponse(), "Kubernetes//Pod/default/pod2")
    
    		// TODO: implement pod update; this actually cannot really be done without waypoints or VIPs
    		deletePod(s, "pod")
    		expectRemoved(ads.ExpectResponse(), "Kubernetes//Pod/default/pod")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  3. pilot/pkg/xds/deltaadstest.go

    	for {
    		select {
    		case <-a.context.Done():
    			return
    		case r := <-a.responses:
    			log.Infof("drained response %v", r.TypeUrl)
    		}
    	}
    }
    
    // ExpectResponse waits until a response is received and returns it
    func (a *DeltaAdsTest) ExpectResponse() *discovery.DeltaDiscoveryResponse {
    	a.t.Helper()
    	select {
    	case <-time.After(a.timeout):
    		a.t.Fatalf("did not get response in time")
    	case resp := <-a.responses:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Feb 04 03:39:42 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. pilot/pkg/xds/adstest.go

    	for {
    		select {
    		case <-a.context.Done():
    			return
    		case r := <-a.responses:
    			log.Infof("drained response %v", r.TypeUrl)
    		}
    	}
    }
    
    // ExpectResponse waits until a response is received and returns it
    func (a *AdsTest) ExpectResponse(t test.Failer) *discovery.DiscoveryResponse {
    	t.Helper()
    	select {
    	case <-time.After(a.timeout):
    		t.Fatalf("did not get response in time")
    	case resp := <-a.responses:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Feb 04 03:39:42 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. pilot/pkg/xds/ads_test.go

    	// A push should get a response for both
    	s.Discovery.ConfigUpdate(&model.PushRequest{Full: true})
    	ads.ExpectResponse(t)
    	ads.ExpectResponse(t)
    	// Close the connection and reconnect
    	ads.Cleanup()
    	ads = s.ConnectADS()
    
    	// Send a request for EDS version 1 - we do not explicitly ACK this.
    	ads.Request(t, &discovery.DiscoveryRequest{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview_test.go

    	)
    
    	testcases := []struct {
    		name       string
    		attrs      *admission.VersionedAttributes
    		invocation *generic.WebhookInvocation
    
    		expectRequest  func(uid types.UID) runtime.Object
    		expectResponse runtime.Object
    		expectErr      string
    	}{
    		{
    			name: "no supported versions",
    			invocation: &generic.WebhookInvocation{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/webhook_converter_test.go

    				Response: &v1.ConversionResponse{},
    			},
    			ExpectResponse: &v1.ConversionReview{},
    		},
    		{
    			Name:     "v1beta1",
    			Versions: []string{"v1beta1", "v1", "v2"},
    			ExpectRequest: &v1beta1.ConversionReview{
    				Request:  &v1beta1.ConversionRequest{UID: "uid", DesiredAPIVersion: "foo/v1", Objects: objects},
    				Response: &v1beta1.ConversionResponse{},
    			},
    			ExpectResponse: &v1beta1.ConversionReview{},
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 15:27:39 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go

    					content, _ := io.ReadAll(result.Body)
    					if e, a := expectStatus, result.StatusCode; e != a {
    						t.Log(string(content))
    						t.Errorf("expected %v, got %v", e, a)
    					}
    					if tc.ExpectResponse != nil {
    						tc.ExpectResponse(t, result, content)
    					}
    
    					// Make sure error responses come back with status objects in all encodings, including unknown encodings
    					if !delegateCalled && expectStatus >= 300 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 15:27:39 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  9. security/pkg/nodeagent/sds/sdsservice_test.go

    		cert.ExpectNoResponse(t)
    		root.ExpectNoResponse(t)
    
    		s.UpdateSecret(testResourceName, pushSecret)
    		s.Verify(cert.ExpectResponse(t), Expectation{
    			ResourceName: testResourceName,
    			CertChain:    fakePushCertificateChain,
    			Key:          fakePushPrivateKey,
    		})
    		// No need to push a new root if just the cert changes
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 17 20:12:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top