Ejemplo n.º 1
0
func (s *networkerSuite) SetUpTest(c *gc.C) {
	s.JujuConnSuite.SetUpTest(c)

	// Create test juju state.
	s.setUpNetworks(c)
	s.setUpMachine(c)

	// Create the networker API facade.
	s.networkerState = s.st.Networker()
	c.Assert(s.networkerState, gc.NotNil)

	// Create temporary directory to store interfaces file.
	networker.ChangeConfigDirName(c.MkDir())
}
Ejemplo n.º 2
0
func (s *configSuite) SetUpTest(c *gc.C) {
	s.BaseSuite.SetUpTest(c)

	// Create temporary directory to store interfaces file.
	networker.ChangeConfigDirName(c.MkDir())
}