MCPcopy
hub / github.com/gotify/server / Test_GetConfig_nonExistPlugin_expectNotFound

Method Test_GetConfig_nonExistPlugin_expectNotFound

api/plugin_test.go:450–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

448}
449
450func (s *PluginSuite) Test_GetConfig_nonExistPlugin_expectNotFound() {
451 {
452 test.WithUser(s.ctx, 1)
453
454 s.ctx.Request = httptest.NewRequest("GET", "/plugin/99/config", nil)
455 s.ctx.Params = gin.Params{{Key: "id", Value: "99"}}
456 s.a.GetConfig(s.ctx)
457
458 assert.Equal(s.T(), 404, s.recorder.Code)
459 }
460}
461
462func (s *PluginSuite) Test_UpdateConfig() {
463 conf, err := s.db.GetPluginConfByUserAndPath(1, mock.ModulePath)

Callers

nothing calls this directly

Calls 2

WithUserFunction · 0.92
GetConfigMethod · 0.80

Tested by

no test coverage detected