Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ExpectResponse (0.34 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. 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