(orgID, username string)
| 113 | if _, ok := s.orgs[name]; !ok { |
| 114 | return false, nil |
| 115 | } |
| 116 | // Only a non-terminal warehouse row blocks deletion; a "deleted" row (infra |
| 117 | // torn down by the provisioner) is cascaded away so the name is released. |
| 118 | if wh, ok := s.warehouses[name]; ok && wh.State != configstore.ManagedWarehouseStateDeleted { |
| 119 | return false, errWarehouseStillExists |
| 120 | } |
| 121 | delete(s.warehouses, name) |
| 122 | delete(s.orgs, name) |
| 123 | return true, nil |
| 124 | } |
| 125 | |
| 126 | func (s *fakeAPIStore) seedTeam(team configstore.OrgTeam) { |
nothing calls this directly
no outgoing calls
no test coverage detected