func (s *HealerSuite) TestContainerHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("docker", "container") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, ContainerHealer{}) }
func (s *S) TestBootstrapMachineHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("bootstrap") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, bootstrapMachineHealer{}) }
func (s *S) TestELBInstanceHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("elb-instance") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, elbInstanceHealer{}) }
func (s *S) TestInstanceMachineShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("instance-machine") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, instanceMachineHealer{}) }
func (s *S) TestZookeeperHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("zookeeper") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, zookeeperHealer{}) }
func (s *S) TestInstanceUnitShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("instance-unit") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, instanceUnitHealer{}) }
func (s *S) TestBootstrapInstanceIdHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("bootstrap-instanceid") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, bootstrapInstanceIdHealer{}) }
func (s *S) TestInstanceAgentsConfigHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("instance-agents-config") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, instanceAgentsConfigHealer{}) }
func healer(w http.ResponseWriter, r *http.Request, t *auth.Token) error { healer, _ := heal.Get(r.URL.Query().Get(":healer")) w.WriteHeader(http.StatusOK) return healer.Heal() }
func (s *S) TestBootstrapProvisionHealerShouldBeRegistered(c *gocheck.C) { h, err := heal.Get("juju", "bootstrap-provision") c.Assert(err, gocheck.IsNil) c.Assert(h, gocheck.FitsTypeOf, bootstrapProvisionHealer{}) }