kuttl
kuttl copied to clipboard
KEP05: CMD Utilities
According to KEP-05:
The cmd package should provide conveniences for running arbitrary commands (i.e. shelling out) from Go code in integration tests.
Current functionality:
- Providing an Exec function that returns exit status, stdout and stderr
package cmd
func Exec(
command string,
arguments []string,
environmentVariables map[string]string,
) (
exitStatus int,
stdout *bytes.Buffer,
stderr *bytes.Buffer,
error error,
)