func (s *SyslogConfigSuite) assertRsyslogConfigContents(c *C, slConfig *syslog.SyslogConfig, expectedConf string) { data, err := slConfig.Render() c.Assert(err, IsNil) c.Assert(string(data), Equals, expectedConf) }
func (s *SyslogConfigSuite) assertRsyslogConfigPath(c *C, slConfig *syslog.SyslogConfig) { slConfig.ConfigDir = s.configDir slConfig.ConfigFileName = "rsyslog.conf" c.Assert(slConfig.ConfigFilePath(), Equals, filepath.Join(s.configDir, "rsyslog.conf")) }