(uid uint)
| 107 | } |
| 108 | |
| 109 | func (s *ManagerSuite) makeDanglingPluginConf(uid uint) *model.PluginConf { |
| 110 | conf := &model.PluginConf{ |
| 111 | UserID: uid, |
| 112 | ModulePath: danglingPluginPath, |
| 113 | Token: auth.GeneratePluginToken(), |
| 114 | Enabled: true, |
| 115 | } |
| 116 | s.db.CreatePluginConf(conf) |
| 117 | return conf |
| 118 | } |
| 119 | |
| 120 | func (s *ManagerSuite) TestWebhook_blockedIfDisabled() { |
| 121 | conf := s.getConfForExamplePlugin(1) |
no test coverage detected