Exemplo n.º 1
0
func verifyRsyslogCACert(c *gc.C, st *apirsyslog.State, expected string) {
	cfg, err := st.GetRsyslogConfig("foo")
	c.Assert(err, gc.IsNil)
	c.Assert(cfg.CACert, gc.DeepEquals, expected)
}
Exemplo n.º 2
0
func verifyRsyslogCACert(c *gc.C, st *apirsyslog.State, expectedCA, expectedKey string) {
	cfg, err := st.GetRsyslogConfig("foo")
	c.Assert(err, jc.ErrorIsNil)
	c.Assert(cfg.CACert, gc.DeepEquals, expectedCA)
	c.Assert(cfg.CAKey, gc.DeepEquals, expectedKey)
}