Example #1
0
func (s *networkerSuite) assertHaveConfig(c *gc.C, nw *networker.Networker, interfaceNames ...string) {
	for _, name := range interfaceNames {
		fullPath := nw.ConfigFile(name)
		_, err := os.Stat(fullPath)
		c.Assert(err, jc.ErrorIsNil)
	}
}
Example #2
0
func (s *networkerSuite) assertNoConfig(c *gc.C, nw *networker.Networker, interfaceNames ...string) {
	for _, name := range interfaceNames {
		fullPath := nw.ConfigFile(name)
		_, err := os.Stat(fullPath)
		c.Assert(err, jc.Satisfies, os.IsNotExist)
	}
}