Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for verifyExecTestOutput (0.26 sec)

  1. istioctl/pkg/proxystatus/proxystatus_test.go

    						},
    					},
    					Status: corev1.PodStatus{
    						Phase: corev1.PodRunning,
    					},
    				}, metav1.CreateOptions{})
    				assert.NoError(t, err)
    			}
    			verifyExecTestOutput(t, XdsStatusCommand(ctx), c)
    		})
    	}
    }
    
    func verifyExecTestOutput(t *testing.T, cmd *cobra.Command, c execTestCase) {
    	t.Helper()
    
    	var out bytes.Buffer
    	cmd.SetArgs(c.args)
    	cmd.SilenceUsage = true
    	cmd.SetOut(&out)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. istioctl/pkg/ztunnelconfig/ztunnelconfig_test.go

    	}
    
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.args, " ")), func(t *testing.T) {
    			verifyExecTestOutput(t, ZtunnelConfig(cli.NewFakeContext(&cli.NewFakeContextOption{
    				Results:   c.execClientConfig,
    				Namespace: "default",
    			})), c)
    		})
    	}
    }
    
    func verifyExecTestOutput(t *testing.T, cmd *cobra.Command, c execTestCase) {
    	t.Helper()
    
    	var out bytes.Buffer
    	cmd.SetArgs(c.args)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. istioctl/pkg/internaldebug/internal-debug_test.go

    						},
    					},
    					Status: corev1.PodStatus{
    						Phase: corev1.PodRunning,
    					},
    				}, metav1.CreateOptions{})
    				assert.NoError(t, err)
    			}
    			verifyExecTestOutput(t, DebugCommand(ctx), c)
    		})
    	}
    }
    
    func verifyExecTestOutput(t *testing.T, cmd *cobra.Command, c execTestCase) {
    	t.Helper()
    
    	var out bytes.Buffer
    	cmd.SetArgs(c.args)
    	cmd.SilenceUsage = true
    	cmd.SetOut(&out)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. istioctl/pkg/wait/wait_test.go

    			k.Dynamic().Resource(gvr.VirtualService).Namespace("default").Create(context.Background(),
    				newUnstructured("networking.istio.io/v1alpha3", "virtualservice", "default", "bar", int64(3)),
    				metav1.CreateOptions{})
    			verifyExecTestOutput(t, Cmd(cl), c)
    		})
    	}
    }
    
    type addObject interface {
    	Add(obj runtime.Object)
    }
    
    type execTestCase struct {
    	execClientConfig map[string][]byte
    	args             []string
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  5. istioctl/pkg/proxyconfig/proxyconfig_test.go

    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.args, " ")), func(t *testing.T) {
    			verifyExecTestOutput(t, ProxyConfig(cli.NewFakeContext(&cli.NewFakeContextOption{
    				Results:   c.execClientConfig,
    				Namespace: "default",
    			})), c)
    		})
    	}
    }
    
    func verifyExecTestOutput(t *testing.T, cmd *cobra.Command, c execTestCase) {
    	t.Helper()
    
    	var out bytes.Buffer
    	cmd.SetArgs(c.args)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 8.9K bytes
    - Viewed (0)
Back to top