Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for NewOrFail (0.16 sec)

  1. tests/integration/pilot/analyze_test.go

    			g := NewWithT(t)
    
    			ns1 := namespace.NewOrFail(t, t, namespace.Config{
    				Prefix: "istioctl-analyze-1",
    				Inject: true,
    			})
    			ns2 := namespace.NewOrFail(t, t, namespace.Config{
    				Prefix: "istioctl-analyze-2",
    				Inject: true,
    			})
    
    			applyFileOrFail(t, ns1.Name(), gatewayFile)
    			applyFileOrFail(t, ns2.Name(), gatewayFile)
    
    			istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. pkg/test/framework/components/gcemetadata/gcemetadata.go

    func New(ctx resource.Context, c Config) (i Instance, err error) {
    	return newKube(ctx, c)
    }
    
    // NewOrFail returns a new GCE Metadata Server instance or fails test.
    func NewOrFail(t test.Failer, ctx resource.Context, c Config) Instance {
    	t.Helper()
    	i, err := New(ctx, c)
    	if err != nil {
    		t.Fatalf("gcemetadata.NewOrFail: %v", err)
    	}
    
    	return i
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. tests/integration/ambient/waypoint_test.go

    func TestWaypoint(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(t framework.TestContext) {
    			nsConfig := namespace.NewOrFail(t, t, namespace.Config{
    				Prefix: "waypoint",
    				Inject: false,
    				Labels: map[string]string{
    					constants.DataplaneModeLabel: "ambient",
    				},
    			})
    
    			istioctl.NewOrFail(t, t, istioctl.Config{}).InvokeOrFail(t, []string{
    				"waypoint",
    				"apply",
    				"--namespace",
    				nsConfig.Name(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. tests/integration/pilot/istioctl_test.go

    func TestVersion(t *testing.T) {
    	// nolint: staticcheck
    	framework.
    		NewTest(t).RequiresSingleCluster().
    		Run(func(t framework.TestContext) {
    			cfg := i.Settings()
    
    			istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{Cluster: t.Environment().Clusters()[0]})
    			args := []string{"version", "--remote=true", fmt.Sprintf("--istioNamespace=%s", cfg.SystemNamespace)}
    
    			output, _ := istioCtl.InvokeOrFail(t, args)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. tests/integration/pilot/piggyback_test.go

    		NewTest(t).RequiresSingleCluster().
    		RequiresLocalControlPlane().
    		RequireIstioVersion("1.10.0").
    		Run(func(t framework.TestContext) {
    			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()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. tests/integration/pilot/revisions/uninstall_test.go

    func TestUninstallByRevision(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(t framework.TestContext) {
    			t.NewSubTest("uninstall_revision").Run(func(t framework.TestContext) {
    				istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{})
    				uninstallCmd := []string{
    					"uninstall",
    					"--revision=" + stableRevision, "--skip-confirmation",
    				}
    				out, _, err := istioCtl.Invoke(uninstallCmd)
    				if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. pkg/test/framework/components/namespace/namespace.go

    	cfg.overwriteRevisionIfEmpty(ctx.Settings().Revisions.Default())
    	return newKube(ctx, cfg)
    }
    
    // NewOrFail calls New and fails test if it returns error
    func NewOrFail(t test.Failer, ctx resource.Context, nsConfig Config) Instance {
    	t.Helper()
    	i, err := New(ctx, nsConfig)
    	if err != nil {
    		t.Fatalf("namespace.NewOrFail: %v", err)
    	}
    	return i
    }
    
    // GetAll returns all namespaces that have exist in the context.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 18:12:14 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. tests/integration/operator/install_test.go

    // TestInstallCommandInput tests istioctl install command with different input arguments
    func TestInstallCommandInput(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(ctx framework.TestContext) {
    			istioCtl := istioctl.NewOrFail(ctx, ctx, istioctl.Config{})
    			testCases := []installTestCase{
    				{
    					command:   []string{"install", "--dry-run", "--revision", ""},
    					errString: InvalidRevision,
    				},
    				{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 14:30:43 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. tests/integration/pilot/analysis/analysis_test.go

    )
    
    func TestWait(t *testing.T) {
    	// nolint: staticcheck
    	framework.NewTest(t).
    		RequiresSingleCluster().
    		RequiresLocalControlPlane().
    		Run(func(t framework.TestContext) {
    			ns := namespace.NewOrFail(t, t, namespace.Config{
    				Prefix: "default",
    				Inject: true,
    			})
    			t.ConfigIstio().YAML(ns.Name(), `
    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: reviews
    spec:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. tests/integration/pilot/revisions/revision_tag_test.go

    				},
    				{
    					"default tag-injects for istio injection enabled",
    					"default",
    					"stable",
    					"istio-injection=enabled",
    					"",
    				},
    			}
    
    			istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{Cluster: t.Clusters().Default()})
    			baseArgs := []string{"tag"}
    			for _, tc := range tcs {
    				t.NewSubTest(tc.name).Run(func(t framework.TestContext) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top