Exemplo n.º 1
0
func TestSecurity(t *testing.T) {

	BeforeSuite(func() {
		containerizerBin = helpers.BuildContainerizer()
		gardenBin = helpers.BuildGarden()
	})

	BeforeEach(func() {
		gardenArgs := []string{}
		gardenProcess, client = helpers.StartGarden(gardenBin, containerizerBin, gardenArgs...)
	})

	AfterEach(func() {
		helpers.StopGarden(gardenProcess, client)
	})

	AfterSuite(func() {
		gexec.CleanupBuildArtifacts()
	})

	RegisterFailHandler(Fail)
	RunSpecs(t, "Security Suite")
}
func startGarden(argv ...string) garden.Client {
	gardenProcess, client = helpers.StartGarden(gardenBin, containerizerBin, argv...)
	return client
}