Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 44 for NewOrFail (0.13 sec)

  1. tests/integration/pilot/headers_test.go

    	"istio.io/istio/pkg/util/sets"
    )
    
    func TestProxyHeaders(t *testing.T) {
    	framework.NewTest(t).
    		RequireIstioVersion("1.19").
    		Run(func(t framework.TestContext) {
    			ns := namespace.NewOrFail(t, t, namespace.Config{Prefix: "proxy-headers", Inject: true})
    			cfg := echo.Config{
    				Namespace: ns,
    				Ports:     ports.All(),
    				Service:   "no-headers",
    				Subsets: []echo.SubsetConfig{
    					{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 20 16:01:31 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. tests/integration/pilot/ingress_test.go

    				"host":            apps.A.Config().ClusterLocalFQDN(),
    				"imagePullPolicy": t.Settings().Image.PullPolicy,
    			}
    
    			t.NewSubTest("minimal").Run(func(t framework.TestContext) {
    				gatewayNs := namespace.NewOrFail(t, t, namespace.Config{Prefix: "custom-gateway-minimal", Inject: inject})
    				_ = t.ConfigIstio().Eval(gatewayNs.Name(), templateParams, `apiVersion: v1
    kind: Service
    metadata:
      name: custom-gateway
      labels:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  3. tests/integration/pilot/revisioned_upgrade_test.go

    	installRevisionOrFail(t, fromVersion, configs)
    	revision := strings.ReplaceAll(fromVersion, ".", "-")
    	revisionedNamespace := namespace.NewOrFail(t, t, namespace.Config{
    		Prefix:   revision,
    		Inject:   true,
    		Revision: revision,
    	})
    
    	var revisionedInstance echo.Instance
    	builder := deployment.New(t)
    	builder.With(&revisionedInstance, echo.Config{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. tests/integration/ambient/cnirepair/main_test.go

    	return nil
    }
    
    func TestTrafficWithCNIRepair(t *testing.T) {
    	framework.NewTest(t).
    		TopLevel().
    		Run(func(t framework.TestContext) {
    			apps := common_deploy.NewOrFail(t, t, common_deploy.Config{
    				NoExternalNamespace: true,
    				IncludeExtAuthz:     false,
    			})
    			common.RunAllTrafficTests(t, i, apps.SingleNamespaceView())
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jun 09 09:12:45 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. tests/integration/pilot/proxyconfig/proxyconfig_test.go

    	namespace string
    	config    string
    }
    
    func TestProxyConfig(t *testing.T) {
    	framework.NewTest(t).
    		RequireIstioVersion("1.13").
    		Run(func(ctx framework.TestContext) {
    			ns := namespace.NewOrFail(ctx, ctx, namespace.Config{
    				Prefix: "pc-test",
    				Inject: true,
    			})
    			cases := []struct {
    				name string
    				// namespace, labels, and annotations for the echo instance
    				pcAnnotation string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. tests/integration/pilot/cni_race_test.go

    		Run(func(t framework.TestContext) {
    			if !i.Settings().EnableCNI {
    				t.Skip("CNI race condition mitigation is only tested when CNI is enabled.")
    			}
    			c := t.Clusters().Default()
    
    			ns := namespace.NewOrFail(t, t, namespace.Config{
    				Prefix: "cni-race",
    				Inject: true,
    			})
    
    			// Create a echo deployment in the cni-race namespace.
    			t.Logf("Deploy an echo instance in namespace %v...", ns.Name())
    			deployment.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 16:52:52 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/common/deployment/echos.go

    		apps.External.LoadValues(echos)
    	}
    
    	if err := g.Wait().ErrorOrNil(); err != nil {
    		return nil, err
    	}
    
    	return apps, nil
    }
    
    // NewOrFail calls New and fails if an error is returned.
    func NewOrFail(t test.Failer, ctx resource.Context, cfg Config) *Echos {
    	t.Helper()
    	out, err := New(ctx, cfg)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return out
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 20 16:01:31 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. tests/integration/ambient/cacert_rotation_test.go

    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			t.Skip("https://github.com/istio/istio/issues/49648")
    			istioCfg := istio.DefaultConfigOrFail(t, t)
    			istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{})
    			namespace.ClaimOrFail(t, t, istioCfg.SystemNamespace)
    			newX509 := getX509FromFile(t, "ca-cert-alt-2.pem")
    
    			sa := apps.Captured[0].ServiceAccountName()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 03:28:36 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. tests/integration/security/cacert_rotation/main_test.go

    `
    	cfg.ControlPlaneValues = cfgYaml
    }
    
    func TestReachability(t *testing.T) {
    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			istioCfg := istio.DefaultConfigOrFail(t, t)
    			istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{})
    			namespace.ClaimOrFail(t, t, istioCfg.SystemNamespace)
    
    			from := apps.EchoNamespace.A
    			to := apps.EchoNamespace.B
    			fromAndTo := from.Append(to)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. tests/integration/pilot/validation_test.go

    							}
    
    							if !valid {
    								ym, err = yml.ApplyAnnotation(ym, constants.AlwaysReject, "true")
    								if err != nil {
    									t.Fatal(err)
    								}
    							}
    
    							ns := namespace.NewOrFail(t, t, namespace.Config{
    								Prefix: "validation",
    							})
    
    							applyFiles := t.WriteYAMLOrFail(t, "apply", ym)
    							dryRunErr := cluster.ApplyYAMLFilesDryRun(ns.Name(), applyFiles...)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 13 15:19:36 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top