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

Method TestHasAdminUserNoAdmin

database/sql/users_test.go:198–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196}
197
198func (s *UserTestSuite) TestHasAdminUserNoAdmin() {
199 hasAdmin := s.Store.HasAdminUser(context.Background())
200
201 // initially, we don't have any admin users in the store
202 s.Require().False(hasAdmin)
203}
204
205func (s *UserTestSuite) TestHasAdminUser() {
206 // create an admin user

Callers

nothing calls this directly

Calls 1

HasAdminUserMethod · 0.65

Tested by

no test coverage detected