Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for WorkloadsOrFail (0.27 sec)

  1. pkg/test/framework/components/echo/workload.go

    type WorkloadContainer interface {
    	// Workloads retrieves the list of all deployed workloads for this Echo service.
    	// Guarantees at least one workload, if error == nil.
    	Workloads() (Workloads, error)
    	WorkloadsOrFail(t test.Failer) Workloads
    	MustWorkloads() Workloads
    
    	// Clusters where the workloads are deployed.
    	Clusters() cluster.Clusters
    }
    
    // Workload provides an interface for a single deployed echo server.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 19:46:28 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. tests/integration/pilot/piggyback_test.go

    			workloads := []echo.Instances{apps.A, apps.Sotw}
    			istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{Cluster: t.Clusters().Default()})
    			for _, workload := range workloads {
    				podName := workload[0].WorkloadsOrFail(t)[0].PodName()
    				namespace := workload.Config().Namespace.Name()
    
    				retry.UntilSuccessOrFail(t, func() error {
    					args := []string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. pkg/test/framework/components/echo/match/matchers_test.go

    }
    
    func (f fakeInstance) Addresses() []string {
    	panic("implement me")
    }
    
    func (f fakeInstance) Workloads() (echo.Workloads, error) {
    	panic("implement me")
    }
    
    func (f fakeInstance) WorkloadsOrFail(test.Failer) echo.Workloads {
    	panic("implement me")
    }
    
    func (f fakeInstance) MustWorkloads() echo.Workloads {
    	panic("implement me")
    }
    
    func (f fakeInstance) Clusters() cluster.Clusters {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. pkg/test/framework/components/echo/instances.go

    			return nil, err
    		}
    		out = append(out, ws...)
    	}
    
    	if len(out) == 0 {
    		return nil, errors.New("got 0 workloads")
    	}
    
    	return out, nil
    }
    
    func (i Instances) WorkloadsOrFail(t test.Failer) Workloads {
    	t.Helper()
    	out, err := i.Workloads()
    	if err != nil {
    		t.Fatal(err)
    	}
    	return out
    }
    
    func (i Instances) MustWorkloads() Workloads {
    	out, err := i.Workloads()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 18:26:17 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. tests/integration/pilot/vm_test.go

    			})
    		})
    }
    
    func disconnectProxy(t framework.TestContext, pilot string, instance echo.Instance) {
    	proxyID := strings.Join([]string{instance.WorkloadsOrFail(t)[0].PodName(), instance.Config().Namespace.Name()}, ".")
    	cmd := "pilot-discovery request GET /debug/force_disconnect?proxyID=" + proxyID
    	stdOut, _, err := t.Clusters().Default().
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. tests/integration/pilot/proxyconfig/proxyconfig_test.go

    			if attempts > 0 {
    				err := i.Restart()
    				if err != nil {
    					return fmt.Errorf("failed to restart echo instance: %v", err)
    				}
    			}
    			attempts++
    			for _, w := range i.WorkloadsOrFail(t) {
    				w := w
    				for k, v := range values {
    					// can we rely on printenv being in the container once distroless is default?
    					out, _, err := i.Config().Cluster.PodExec(w.PodName(), i.Config().Namespace.Name(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. tests/integration/ambient/baseline_test.go

    		for _, src := range apps.All {
    			for _, srcWl := range src.WorkloadsOrFail(t) {
    				srcWl := srcWl
    				t.NewSubTestf("from %v %v", src.Config().Service, srcWl.Address()).Run(func(t framework.TestContext) {
    					for _, dst := range apps.All {
    						for _, dstWl := range dst.WorkloadsOrFail(t) {
    							t.NewSubTestf("to %v %v", dst.Config().Service, dstWl.Address()).Run(func(t framework.TestContext) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  8. tests/integration/security/pass_through_filter_chain_test.go

    										// to a pod, we just set it to the WorkloadPort.
    										ServicePort: p.WorkloadPort,
    									},
    									Count: echo.DefaultCallsPerWorkload() * to.WorkloadsOrFail(t).Len(),
    								}
    
    								allow := allowValue(expect.mtlsSucceeds)
    								if from.Config().IsNaked() {
    									allow = allowValue(expect.plaintextSucceeds)
    								}
    
    								if allow {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/kube/instance.go

    			if wl.Address() != filter.Address() {
    				filtered = true
    				break
    			}
    		}
    		if !filtered {
    			final = append(final, wl)
    		}
    	}
    	return final, nil
    }
    
    func (c *instance) WorkloadsOrFail(t test.Failer) echo.Workloads {
    	t.Helper()
    	out, err := c.Workloads()
    	if err != nil {
    		t.Fatal(err)
    	}
    	return out
    }
    
    func (c *instance) MustWorkloads() echo.Workloads {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 16 18:55:23 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. pkg/test/framework/components/echo/echotest/filters_test.go

    }
    
    func (f fakeInstance) Addresses() []string {
    	panic("implement me")
    }
    
    func (f fakeInstance) Workloads() (echo.Workloads, error) {
    	panic("implement me")
    }
    
    func (f fakeInstance) WorkloadsOrFail(test.Failer) echo.Workloads {
    	panic("implement me")
    }
    
    func (f fakeInstance) MustWorkloads() echo.Workloads {
    	panic("implement me")
    }
    
    func (f fakeInstance) Clusters() cluster.Clusters {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top