Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RunSubCommand (0.08 sec)

  1. cmd/kubeadm/test/cmd/util.go

    			command, args, retcode, stdout, stderr)
    	}
    	return stdout, stderr, retcode, nil
    }
    
    // RunSubCommand is a utility function for kubeadm testing that executes a Cobra sub command
    func RunSubCommand(t *testing.T, subCmds []*cobra.Command, command string, output io.Writer, args ...string) error {
    	subCmd := getSubCommand(t, subCmds, command)
    	subCmd.SetOut(output)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 01 12:47:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/certs_test.go

    			// exec renew
    			renewCmds := getRenewSubCommands(os.Stdout, tmpDir)
    			args := fmt.Sprintf("--cert-dir=%s", tmpDir)
    			if len(test.Args) > 0 {
    				args = test.Args + " " + args
    			}
    			err := cmdtestutil.RunSubCommand(t, renewCmds, test.command, io.Discard, args)
    			// certs renew doesn't support positional Args
    			if (err != nil) != test.expectedError {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 21 13:26:12 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top