()
| 118 | } |
| 119 | |
| 120 | func (s *ManagerSuite) TestWebhook_blockedIfDisabled() { |
| 121 | conf := s.getConfForExamplePlugin(1) |
| 122 | t := httptest.NewRequest("GET", fmt.Sprintf("/plugin/%d/custom/%s/echo", conf.ID, conf.Token), nil) |
| 123 | |
| 124 | r := httptest.NewRecorder() |
| 125 | s.e.ServeHTTP(r, t) |
| 126 | |
| 127 | assert.Equal(s.T(), 400, r.Code) |
| 128 | } |
| 129 | |
| 130 | func (s *ManagerSuite) TestWebhook_successIfEnabled() { |
| 131 | conf := s.getConfForExamplePlugin(1) |
nothing calls this directly
no test coverage detected