func convertServiceYaml(generated []byte) []byte {
	generated = regexp.MustCompile(`git_branch: .*`).ReplaceAll(generated, []byte("git_branch: master"))
	generated = regexp.MustCompile(`git_url: .*`).ReplaceAll(generated, []byte("git_url: git@github.com:cloud66/starter.git"))
	return generated
}
NOTE: starter will be detected as the test projects git repo, so in order
for tests to always work we replace the current starter branch (which may
change) to 'master' in the generated file.
package main_test
import (
	"github.com/cloud66-oss/starter/common"
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	"io/ioutil"
	"os"
	"os/exec"
	"regexp"
)
func runStarter() (string, error) {
	command := exec.Command(binPath)
	command_out, err := command.Output()
	output := string(command_out)
	return output, err
}
func runStarterWithProjectNoTemplates(projectFixture string) (string, error) {
	command := exec.Command(binPath, "-y", "-p", projectFixture+"/src", "-g", "dockerfile, c66-service, docker-compose")
	command_out, err := command.Output()
	output := string(command_out)
	return output, err
}
func runStarterWithProject(projectFixture string) (string, error) {
	command := exec.Command(binPath, "-y", "-p", projectFixture+"/src", "-templates", "templates/", "-g", "dockerfile, c66-service, docker-compose")
	command_out, err := command.Output()
	output := string(command_out)
	return output, err
}
func runStarterWithProjectGeneratingOnlyDockerfile(projectFixture string) (string, error) {
	command := exec.Command(binPath, "-y", "-p", projectFixture+"/src", "-templates", "templates/")
	command_out, err := command.Output()
	output := string(command_out)
	return output, err
}
func runStarterWithProjectGeneratingOnlyDockerCompose(projectFixture string) (string, error) {
	command := exec.Command(binPath, "-y", "-p", projectFixture+"/src", "-g", "docker-compose")
	command_out, err := command.Output()
	output := string(command_out)
	return output, err
}
func runStarterWithProjectGeneratingServiceYmlFromDockerCompose(projectFixturePath string) (string, error) {
	command := exec.Command(binPath, "-y", "-p", projectFixturePath+"/src", "-g", "service.yml")
	command_out, err := command.Output()
	output := string(command_out)
	return output, err
}
func runStarterWithProjectGeneratingKubernetesYmlFromServiceYml(projectFixturePath string) (string, error) {
	command := exec.Command(binPath, "-y", "-p", projectFixturePath+"/src", "-g", "kubernetes")
	command_out, err := command.Output()
	output := string(command_out)
	return output, err
}
func cleanupGeneratedFiles(projectFixture string) {
	os.Remove(projectFixture + "/src/Dockerfile")
	os.Remove(projectFixture + "/src/service.yml")
	os.Remove(projectFixture + "/src/docker-compose.yml")
}