Esempio n. 1
0
func (s *ConverterSuite) SetUpTest(c *gc.C) {
	testing.SkipIfGitNotAvailable(c)
	s.GitSuite.SetUpTest(c)
	s.targetPath = c.MkDir()
	s.dataPath = c.MkDir()
	s.bundles = &bundleReader{}
}
Esempio n. 2
0
func (s *GitDeployerSuite) SetUpTest(c *gc.C) {
	testing.SkipIfGitNotAvailable(c)
	s.GitSuite.SetUpTest(c)
	s.bundles = &bundleReader{}
	s.targetPath = filepath.Join(c.MkDir(), "target")
	deployerPath := filepath.Join(c.MkDir(), "deployer")
	s.deployer = charm.NewGitDeployer(s.targetPath, deployerPath, s.bundles)
}