func (suite) TestCheckNoDataDir(c *C) { conf := agent.Conf{ StateInfo: &state.Info{ Addrs: []string{"x:4"}, CACert: []byte("xxx"), Tag: "bar", Password: "******", }, } c.Assert(conf.Check(), ErrorMatches, "data directory not found in configuration") }