7cc4339f71
Different status codes in the API lib are returned on hook creation, update or deletion. If a required parameter is not given (e.g. `url` in `/projects/:id/hooks/:hook_id`) status code 400 (Bad request) is returned. On hook deletion a 200 status code is returned, regardless if the hook is present or not. This makes the DELETE function an idempotent operation. Appropriate tests are added to check these status codes. |
||
---|---|---|
.. | ||
contexts | ||
controllers | ||
factories | ||
helpers | ||
lib | ||
mailers | ||
models | ||
observers | ||
requests | ||
routing | ||
support | ||
tasks/gitlab | ||
workers | ||
factories.rb | ||
factories_spec.rb | ||
seed_project.tar.gz | ||
spec_helper.rb |