func (s *S) TestELBInstanceHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("juju", "elb-instance") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, elbInstanceHealer{}) }
func healer(w http.ResponseWriter, r *http.Request, t auth.Token) error { p, _ := getProvisioner() healer, _ := heal.Get(p, r.URL.Query().Get(":healer")) w.WriteHeader(http.StatusOK) return healer.Heal() }
func (s *S) TestBootstrapMachineHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("juju", "bootstrap") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, bootstrapMachineHealer{}) }
func (s *S) TestZookeeperHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("juju", "zookeeper") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, zookeeperHealer{}) }
func (s *S) TestInstanceMachineShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("juju", "instance-machine") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, instanceMachineHealer{}) }
func (s *S) TestBootstrapInstanceIDHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("juju", "bootstrap-instanceid") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, bootstrapInstanceIDHealer{}) }
func (s *S) TestInstanceAgentsConfigHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("juju", "instance-agents-config") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, instanceAgentsConfigHealer{}) }