Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 156 for Dialer (0.1 sec)

  1. pkg/test/framework/components/istio/istio.go

    	// Values returns the operator values for the installed control plane.
    	Values() (OperatorValues, error)
    	ValuesOrFail(test.Failer) OperatorValues
    	// MeshConfig used by the Istio installation.
    	MeshConfig() (*meshconfig.MeshConfig, error)
    	MeshConfigOrFail(test.Failer) *meshconfig.MeshConfig
    	// UpdateMeshConfig used by the Istio installation.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 30 17:47:34 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. pkg/test/failer_test.go

    		if err := Wrap(func(t Failer) {
    			t.Fatalf("failed")
    		}); err == nil {
    			t.Fatalf("expected error, got none")
    		}
    	})
    	t.Run("success", func(t *testing.T) {
    		if err := Wrap(func(t Failer) {}); err != nil {
    			t.Fatalf("expected no error, got: %v", err)
    		}
    	})
    	t.Run("cleanup", func(t *testing.T) {
    		done := false
    		if err := Wrap(func(t Failer) {
    			t.Cleanup(func() {
    				done = true
    			})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 07 18:42:17 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  3. pkg/test/framework/components/echo/kube/sidecar.go

    	msg := &admin.ServerInfo{}
    	if err := s.adminRequest("server_info", msg); err != nil {
    		return nil, err
    	}
    
    	return msg, nil
    }
    
    func (s *sidecar) InfoOrFail(t test.Failer) *admin.ServerInfo {
    	t.Helper()
    	info, err := s.Info()
    	if err != nil {
    		t.Fatal(err)
    	}
    	return info
    }
    
    func (s *sidecar) Config() (*admin.ConfigDump, error) {
    	msg := &admin.ConfigDump{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 03:49:49 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. pkg/kube/kclient/clienttest/direct.go

    	"istio.io/istio/pkg/kube/controllers"
    	"istio.io/istio/pkg/kube/kclient"
    	"istio.io/istio/pkg/test"
    )
    
    type directClient[T controllers.Object, PT any, TL runtime.Object] struct {
    	kclient.Writer[T]
    	t      test.Failer
    	client kube.Client
    }
    
    func (d *directClient[T, PT, TL]) Get(name, namespace string) T {
    	api := kubeclient.GetClient[T, TL](d.client, namespace)
    	res, err := api.Get(context.Background(), name, metav1.GetOptions{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. pilot/test/util/diff.go

    func CompareContent(t test.Failer, content []byte, goldenFile string) {
    	t.Helper()
    	golden := ReadGoldenFile(t, content, goldenFile)
    	CompareBytes(t, content, golden, goldenFile)
    }
    
    // ReadGoldenFile reads the content of the golden file and fails the test if an error is encountered
    func ReadGoldenFile(t test.Failer, content []byte, goldenFile string) []byte {
    	t.Helper()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 05 08:53:20 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. pkg/kube/kclient/clienttest/test_helpers.go

    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/util/sets"
    )
    
    type TestClient[T controllers.Object] struct {
    	c kclient.ReadWriter[T]
    	t test.Failer
    	TestWriter[T]
    }
    
    type TestWriter[T controllers.Object] struct {
    	c kclient.Writer[T]
    	t test.Failer
    }
    
    func (t TestClient[T]) Get(name, namespace string) T {
    	return t.c.Get(name, namespace)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/config/source.go

    	TemplateOrFail(t test.Failer) *param.Template
    
    	// MustTemplate calls Template and panics if an error occurs.
    	MustTemplate() *param.Template
    
    	// YAML reads the yaml from this Source. If this source contains parameters,
    	// it is evaluated as a template.
    	YAML() (string, error)
    
    	// YAMLOrFail calls GetYAML and fails if an error occurs.
    	YAMLOrFail(t test.Failer) string
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  8. pkg/test/util/file/file.go

    		}
    	}
    	return res, nil
    }
    
    func ReadDirOrFail(t test.Failer, filePath string, extensions ...string) []string {
    	t.Helper()
    	res, err := ReadDir(filePath, extensions...)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return res
    }
    
    func WriteOrFail(t test.Failer, filePath string, contents []byte) {
    	t.Helper()
    	err := os.WriteFile(filePath, contents, os.ModePerm)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 17 02:22:22 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  9. pkg/test/framework/resource/config/plan.go

    	Factory
    
    	// Copy returns a deep copy of this Plan.
    	Copy() Plan
    
    	// Apply this config.
    	Apply(opts ...apply.Option) error
    	ApplyOrFail(t test.Failer, opts ...apply.Option)
    
    	// Delete this config.
    	Delete() error
    	DeleteOrFail(t test.Failer)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 27 17:09:00 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  10. pkg/fuzz/util.go

    	for _, c := range [][]byte{
    		{},
    		[]byte("."),
    		bytes.Repeat([]byte("."), 1000),
    	} {
    		f.Add(c)
    	}
    }
    
    // T Returns the underlying test.Failer. Should be avoided where possible; in oss-fuzz many functions do not work.
    func (h Helper) T() test.Failer {
    	return h.t
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 30 15:31:14 UTC 2022
    - 3.4K bytes
    - Viewed (0)
Back to top