MCPcopy Create free account
hub / github.com/cloudbase/garm / TestControllerInfo

Method TestControllerInfo

database/sql/controller_test.go:49–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (s *CtrlTestSuite) TestControllerInfo() {
50 initCtrlInfo, err := s.Store.InitController()
51 if err != nil {
52 s.FailNow(fmt.Sprintf("cannot init controller: %v", err))
53 }
54
55 ctrlInfo, err := s.Store.ControllerInfo()
56
57 s.Require().Nil(err)
58 s.Require().Equal(initCtrlInfo.ControllerID, ctrlInfo.ControllerID)
59}
60
61func (s *CtrlTestSuite) TestControllerInfoErrNotFound() {
62 _, err := s.Store.ControllerInfo()

Callers

nothing calls this directly

Calls 2

InitControllerMethod · 0.65
ControllerInfoMethod · 0.65

Tested by

no test coverage detected