()
| 291 | } |
| 292 | |
| 293 | func (s *ManagerSuite) TestRemoveUser_DisableFail_cannotRemove() { |
| 294 | s.manager.initializeForUser(*s.db.NewUserWithName(8, "disable_fail_2")) |
| 295 | errExpected := errors.New("test error") |
| 296 | mock.ReturnErrorOnDisableForUser(8, errExpected) |
| 297 | s.manager.SetPluginEnabled(s.getConfForMockPlugin(8).ID, true) |
| 298 | |
| 299 | assert.EqualError(s.T(), s.manager.RemoveUser(8), errExpected.Error()) |
| 300 | } |
| 301 | |
| 302 | func (s *ManagerSuite) TestRemoveUser_danglingConf_expectSuccess() { |
| 303 | // make a dangling conf for this instance |
nothing calls this directly
no test coverage detected