()
| 434 | } |
| 435 | |
| 436 | func (s *PluginSuite) Test_GetConfig_danglingConf_expectNotFound() { |
| 437 | conf := s.getDanglingConf(1) |
| 438 | |
| 439 | { |
| 440 | test.WithUser(s.ctx, 1) |
| 441 | |
| 442 | s.ctx.Request = httptest.NewRequest("GET", fmt.Sprintf("/plugin/%d/config", conf.ID), nil) |
| 443 | s.ctx.Params = gin.Params{{Key: "id", Value: fmt.Sprint(conf.ID)}} |
| 444 | s.a.GetConfig(s.ctx) |
| 445 | |
| 446 | assert.Equal(s.T(), 404, s.recorder.Code) |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | func (s *PluginSuite) Test_GetConfig_nonExistPlugin_expectNotFound() { |
| 451 | { |
nothing calls this directly
no test coverage detected