Make fixtures files template-able :)
So it can adapt to certain env (like tcp vs unix socket for docker suite) Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
ad60b301b7
commit
ecbfbd4de0
5 changed files with 149 additions and 4 deletions
16
integration/utils/traefikCmd.go
Normal file
16
integration/utils/traefikCmd.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package utils
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
var execCommand = exec.Command
|
||||
|
||||
// RunCommand runs the specified command with arguments and returns
|
||||
// the output and the error if any.
|
||||
func RunCommand(binary string, args ...string) (*exec.Cmd, string, error) {
|
||||
cmd := execCommand(binary, args...)
|
||||
out, err := cmd.CombinedOutput()
|
||||
output := string(out)
|
||||
return cmd, output, err
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue