kubernetesk8s.io/kubernetes/cmd/kubeadm/test/cmd Index | Files

package kubeadm

import "k8s.io/kubernetes/cmd/kubeadm/test/cmd"

Index

Functions

func AssertSubCommandHasFlags

func AssertSubCommandHasFlags(t *testing.T, subCmds []*cobra.Command, command string, flags ...string)

AssertSubCommandHasFlags is a utility function for kubeadm testing that assert if a Cobra sub command has expected flags

func RunCmd

func RunCmd(command string, args ...string) (string, string, error)

Forked from test/e2e/framework because the e2e framework is quite bloated for our purposes here, and modified to remove undesired logging.

func RunSubCommand

func RunSubCommand(t *testing.T, subCmds []*cobra.Command, command string, args ...string)

RunSubCommand is a utility function for kubeadm testing that executes a Cobra sub command

Source Files

util.go

Version
v1.8.1
Published
Oct 11, 2017
Platform
js/wasm
Imports
5 packages
Last checked
1 second ago

Tools for package owners.