func (s *remoteSuite) TestIDLocal(c *gc.C) { remote := lxdclient.Remote{ Name: "my-remote", Host: "", Cert: s.Cert, } id := remote.ID() c.Check(id, gc.Equals, "local") }
func (s *remoteSuite) TestIDOkay(c *gc.C) { remote := lxdclient.Remote{ Name: "my-remote", Host: "some-host", Cert: s.Cert, } id := remote.ID() c.Check(id, gc.Equals, "my-remote") }