Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for InvokeOrFail (0.17 sec)

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

    	// Invoke invokes an istioctl command and returns the output and exception.
    	// stdout and stderr will be returned as different strings
    	Invoke(args []string) (string, string, error)
    
    	// InvokeOrFail calls Invoke and fails tests if it returns en err
    	InvokeOrFail(t test.Failer, args []string) (string, string)
    }
    
    // Config is structured config for the istioctl component
    type Config struct {
    	// Cluster to be used in a multicluster environment
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 14 22:20:09 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. tests/integration/operator/verify_test.go

    				"--set", "tag=" + s.Image.Tag,
    				"--set", "values.global.variant=" + s.Image.Variant,
    				"--manifests=" + ManifestPath,
    				"-y",
    			}
    			istioCtl.InvokeOrFail(t, installCmd)
    
    			verifyCmd := []string{
    				"verify-install",
    			}
    			out, _ := istioCtl.InvokeOrFail(t, verifyCmd)
    			if !strings.Contains(out, "verified successfully") {
    				t.Fatalf("verify-install failed: %v", out)
    			}
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. tests/integration/pilot/revisions/uninstall_test.go

    			// Uninstall with a different file (should have no effect)
    			istioCtl.InvokeOrFail(t, []string{"uninstall", "-f", randomFileName, "-r" + canaryRevision, "--skip-confirmation"})
    
    			// Check the webhook still exists
    			validateWebhookExistence()
    
    			// Uninstall with the correct file
    			istioCtl.InvokeOrFail(t, []string{"uninstall", "-f=" + customFileName, "-r=" + canaryRevision, "--skip-confirmation"})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. pkg/test/framework/components/istioctl/kube.go

    	if err.String() != "" {
    		scopes.Framework.Infof("istioctl error: %v", strings.TrimSpace(err.String()))
    	}
    	return out.String(), err.String(), fErr
    }
    
    // InvokeOrFail implements Instance
    func (c *kubeComponent) InvokeOrFail(t test.Failer, args []string) (string, string) {
    	output, stderr, err := c.Invoke(args)
    	if err != nil {
    		t.Logf("Unwanted exception for 'istioctl %s': %v", strings.Join(args, " "), err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 29 02:29:02 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. tests/integration/operator/install_test.go

    			})
    			assert.Error(t, err)
    
    			// Here we should have two activated webhooks, but dry-run should not report any error, which
    			// means the re-installation can be done successfully.
    			output, outErr := istioCtl.InvokeOrFail(t, []string{"install", "--dry-run"})
    			if !strings.Contains(output, "Made this installation the default for cluster-wide operations.") {
    				t.Errorf("install expects to succeed but didn't")
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 14:30:43 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. tests/integration/operator/uninstall_test.go

    					"--hub=" + s.Image.Hub,
    					"--tag=" + tag,
    					"--manifests=" + ManifestPath,
    				}
    				// install istio with default config for the first time by running operator init command
    				istioCtl.InvokeOrFail(t, initCmd)
    				t.TrackResource(&operatorDumper{rev: ""})
    
    				if _, err := cs.Kube().CoreV1().Namespaces().Create(context.TODO(), &corev1.Namespace{
    					ObjectMeta: metav1.ObjectMeta{
    						Name: IstioNamespace,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. tests/integration/pilot/revisions/revision_tag_test.go

    }
    
    func verifyRevision(t framework.TestContext, i istioctl.Instance, podName, podNamespace, revision string) {
    	t.Helper()
    	pcArgs := []string{"pc", "bootstrap", podName, "-n", podNamespace}
    	bootstrapConfig, _ := i.InvokeOrFail(t, pcArgs)
    	expected := fmt.Sprintf("\"discoveryAddress\": \"istiod-%s.istio-system.svc:15012\"", revision)
    	if !strings.Contains(bootstrapConfig, expected) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. tests/integration/pilot/analysis/analysis_test.go

      hosts:
      - reviews
      http:
      - route:
        - destination:
            host: reviews
    `).ApplyOrFail(t)
    			istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{Cluster: t.Clusters().Default()})
    			istioCtl.InvokeOrFail(t, []string{"x", "wait", "-v", "VirtualService", "reviews." + ns.Name()})
    		})
    }
    
    func TestAnalysisWritesStatus(t *testing.T) {
    	// nolint: staticcheck
    	framework.NewTest(t).
    		RequiresLocalControlPlane().
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. pkg/test/framework/components/ambient/waypoint.go

    			}
    		})
    
    	}
    }
    
    func DeleteWaypoint(t framework.TestContext, ns namespace.Instance, waypoint string) {
    	istioctl.NewOrFail(t, t, istioctl.Config{}).InvokeOrFail(t, []string{
    		"waypoint",
    		"delete",
    		"--namespace",
    		ns.Name(),
    		waypoint,
    	})
    	waypointError := retry.UntilSuccess(func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top