summaryrefslogtreecommitdiff
path: root/spec/models/hooks
Commit message (Collapse)AuthorAgeFilesLines
* Migrate sensitive web hook data in the backgroundNick Thomas2018-10-011-0/+6
|
* Merge branch 'filter-web-hooks-by-branch' into 'master'Dmitriy Zaporozhets2018-09-052-0/+88
|\ | | | | | | | | Filter web hooks by branch See merge request gitlab-org/gitlab-ce!19513
| * Refactor: move active hook filter to TriggerableHooksDuana Saskia2018-09-051-9/+10
| |
| * Filter project hooks by branchDuana Saskia2018-08-132-0/+87
| | | | | | | | | | | | Allow specificying a branch filter for a project hook and only trigger a project hook if either the branch filter is blank or the branch matches. Only supported for push_events for now.
* | Whitelist existing destroy_all offensesblacklist-destroy-allYorick Peterse2018-08-161-2/+2
|/ | | | This whitelists all existing places where we use "destroy_all".
* Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-111-4/+4
|
* Fixed pagination of web hook logsYorick Peterse2018-07-031-0/+18
| | | | | | | | | | | | | | | | | | | | For reasons unknown, the logs of a web hook were paginated in memory. This would result in the "Edit" page of a web hook timing out once it has more than a few thousand log entries. This commit makes the following changes: 1. We use LIMIT/OFFSET to paginate the data, instead of doing this in memory. 2. We limit the logs to the last two days, just like the documentation says (instead of retrieving everything). 3. We change the indexes on "web_hook_logs" so the query to get the data can perform a backwards index scan, without the need for a Filter. These changes combined ensure that Projects::HooksController#edit no longer times out.
* Merge branch 'feature/merge-request-system-hook' into 'master'Douwe Maan2018-01-181-1/+2
|\ | | | | | | | | System hooks for Merge Requests See merge request gitlab-org/gitlab-ce!14387
| * execute system hooks from projectAlexis Reigel2018-01-041-1/+2
| |
* | Merge branch ↵Robert Speicher2018-01-161-0/+6
|/ | | | | | | | | | | | '41293-fix-command-injection-vulnerability-on-system_hook_push-queue-through-web-hook' into 'security-10-3' Don't allow line breaks on HTTP headers See merge request gitlab/gitlabhq!2277 (cherry picked from commit 7fc0a6fc096768a5604d6dd24d7d952e53300c82) 073b8f9c Don't allow line breaks on HTTP headers
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-2/+2
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-1/+1
|
* Use described_class when possibleRémy Coutable2017-07-272-3/+3
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-275-5/+5
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Wrong data type when testing webhooksAlexander Randa2017-07-203-3/+10
|
* Implement web hooks loggingAlexander Randa2017-05-254-90/+90
| | | | | | | | * implemented logging of project and system web hooks * implemented UI for user area (project hooks) * implemented UI for admin area (system hooks) * implemented retry of logged webhook * NOT imeplemented log remover
* Make the new repository_update_events configurable in System Hooks UIGabriel Mazetto2017-05-121-0/+13
|
* Added repository_update hookGabriel Mazetto2017-05-121-0/+8
|
* Implement new service for creating userGeorge Andrinopoulos2017-03-271-1/+4
|
* Use `:empty_project` where possible in model specsrs-empty_project-modelsRobert Speicher2017-01-262-2/+2
|
* Remove schema annotations completelyValery Sizov2016-09-164-73/+1
|
* Clean up project destructionclean-up-project-destroyStan Hu2016-08-101-1/+1
| | | | | | Instead of redirecting from the project service to the service and back to the model, put all destruction code in the service. Also removes a possible source of failure where run_after_commit may not destroy the project.
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-091-2/+2
|
* Codestyle: make sure we have space around operatorsGabriel Mazetto2016-05-132-12/+12
|
* Fix test failuresJacob Vosmaer2016-05-091-2/+2
|
* Backported minimal safewebhook implementation to GitLab CEGabriel Mazetto2016-04-301-16/+30
|
* minor cleanup in system_hook_specZeger-Jan van de Weg2016-03-301-27/+27
|
* web hooks to webhooksashleys2016-03-102-2/+2
|
* Allow webhooks URL to have leading and trailing spacesevuez/gitlab-ce-webhook-url-spacesevuez2016-02-262-10/+14
|
* First pass at deleting projects in the background.Josh Frye2016-01-291-3/+3
|
* Accept 2xx status codes for successful Web hook triggersStan Hu2016-01-071-0/+12
| | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9956
* Tag model specsDouwe Maan2015-12-094-4/+4
|
* Handle and report SSL errors in Web hook test. Check for status 200 for success.Stan Hu2015-12-041-0/+6
| | | | | | | | | If a Web hook test fails due to an SSL error or some other error, report the result back to the user instead of an Error 500. Closes #3656 Handle response
* Fix rubocop warnings in spec/modelsGuilherme Garnier2015-10-033-6/+2
|
* Add `Group#add_*` convenience methodsrs-group-convenience-methodsRobert Speicher2015-08-071-2/+2
| | | | Encapsulates the logic for `Gitlab::Access::WHATEVER` levels.
* Merge branch 'master' into rubocop-for-testsDmitriy Zaporozhets2015-06-232-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: spec/features/issues_spec.rb spec/models/forked_project_link_spec.rb spec/models/hooks/service_hook_spec.rb spec/models/hooks/web_hook_spec.rb spec/models/project_services/hipchat_service_spec.rb spec/requests/api/project_members_spec.rb spec/requests/api/projects_spec.rb spec/requests/api/system_hooks_spec.rb spec/services/archive_repository_service_spec.rb spec/support/matchers.rb spec/tasks/gitlab/backup_rake_spec.rb
| * Fix `raise_error` without an argument deprecation warningsRobert Speicher2015-06-222-2/+2
| |
* | Fix Style/Blocks cop violationsRobert Speicher2015-06-222-6/+2
| |
* | Fix Style/SpaceInsideHashLiteralBraces cop violationsRobert Speicher2015-06-223-16/+16
|/ | | | These fixes were performed automatically by Rubocop's `-a` flag.
* Add support for Webhook note eventsStan Hu2015-05-214-0/+4
| | | | Closes https://github.com/gitlabhq/gitlabhq/issues/6745
* Added X-GitLab-Event header for web hooksbugagazavr2015-05-083-15/+74
|
* Revert "Added X-GitLab-Event header for web hooks"Valery Sizov2015-04-271-9/+5
| | | | This reverts commit 548f182814acd0f7a110e6c165c186e345901b00.
* Added X-GitLab-Event header for web hooksbugagazavr2015-04-251-5/+9
|
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-123-26/+26
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Make the structure of spec/models match app/modelsRobert Speicher2015-01-304-0/+234