MCPcopy Index your code
hub / github.com/gotify/server / TestWebhook_blockedIfDisabled

Method TestWebhook_blockedIfDisabled

plugin/manager_test.go:120–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (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
130func (s *ManagerSuite) TestWebhook_successIfEnabled() {
131 conf := s.getConfForExamplePlugin(1)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected