Пример #1
0
func (*serviceSuite) TestNoConfMissing(c *gc.C) {
	service := common.Service{
		Name: "a-application",
	}
	noConf := service.NoConf()

	c.Check(noConf, jc.IsTrue)
}
Пример #2
0
func (*serviceSuite) TestNoConfEmpty(c *gc.C) {
	service := common.Service{
		Name: "a-application",
		Conf: common.Conf{},
	}
	noConf := service.NoConf()

	c.Check(noConf, jc.IsTrue)
}
Пример #3
0
func (*serviceSuite) TestNoConfFalse(c *gc.C) {
	service := common.Service{
		Name: "a-application",
		Conf: common.Conf{
			Desc:      "some service",
			ExecStart: "/path/to/some-command x y z",
		},
	}
	noConf := service.NoConf()

	c.Check(noConf, jc.IsFalse)
}