Valery Sizov
8b2dbe8997
Remove schema annotations completely
2016-09-16 14:37:48 +03:00
Stan Hu
4955a47cb1
Clean up project destruction
...
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.
2016-08-10 09:28:21 -07:00
tiagonbotelho
1d268a89de
adds second batch of tests changed to active tense
2016-08-09 15:11:39 +01:00
Gabriel Mazetto
f5a0ac0fc1
Codestyle: make sure we have space around operators
2016-05-13 04:46:56 -03:00
Jacob Vosmaer
a19508d6b7
Fix test failures
2016-05-09 13:58:43 +02:00
Gabriel Mazetto
0cd5edf35c
Backported minimal safewebhook implementation to GitLab CE
2016-04-30 05:04:10 -03:00
Zeger-Jan van de Weg
4b1ad75ab5
minor cleanup in system_hook_spec
2016-03-30 20:00:57 +02:00
ashleys
4cd9a5208c
web hooks to webhooks
2016-03-10 14:48:29 -05:00
evuez
4d0e2979b9
Allow webhooks URL to have leading and trailing spaces
2016-02-26 14:34:06 -05:00
Josh Frye
91b9cbff8d
First pass at deleting projects in the background.
2016-01-29 09:14:16 -05:00
Stan Hu
8386edafd1
Accept 2xx status codes for successful Web hook triggers
...
Closes https://github.com/gitlabhq/gitlabhq/issues/9956
2016-01-07 06:28:24 -08:00
Douwe Maan
1e8d703a85
Tag model specs
2015-12-09 10:50:51 +01:00
Stan Hu
a120b78940
Handle and report SSL errors in Web hook test. Check for status 200 for success.
...
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
2015-12-04 07:13:28 -08:00
Guilherme Garnier
848d7b2a2b
Fix rubocop warnings in spec/models
2015-10-03 01:48:54 -05:00
Robert Speicher
fb6dc1f07d
Add Group#add_*
convenience methods
...
Encapsulates the logic for `Gitlab::Access::WHATEVER` levels.
2015-08-07 00:20:02 -04:00
Dmitriy Zaporozhets
f40b99d02e
Merge branch 'master' into rubocop-for-tests
...
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
2015-06-23 10:44:03 +02:00
Robert Speicher
15a05be70d
Fix Style/Blocks cop violations
2015-06-22 16:00:54 -04:00
Robert Speicher
94eff65569
Fix Style/SpaceInsideHashLiteralBraces cop violations
...
These fixes were performed automatically by Rubocop's `-a` flag.
2015-06-22 14:41:00 -04:00
Robert Speicher
0f627f1c60
Fix raise_error
without an argument deprecation warnings
2015-06-22 12:13:47 +02:00
Stan Hu
deeff56967
Add support for Webhook note events
...
Closes https://github.com/gitlabhq/gitlabhq/issues/6745
2015-05-21 23:48:16 -04:00
bugagazavr
acac788902
Added X-GitLab-Event header for web hooks
2015-05-08 16:49:03 +03:00
Valery Sizov
bc9ba5237c
Revert "Added X-GitLab-Event header for web hooks"
...
This reverts commit 548f182814
.
2015-04-27 16:29:31 +03:00
bugagazavr
548f182814
Added X-GitLab-Event header for web hooks
2015-04-25 21:31:52 +03:00
Jeroen van Baarsen
0c4a70a306
Updated rspec to rspec 3.x syntax
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-02-12 19:17:35 +01:00
Robert Speicher
ab6f7164e0
Make the structure of spec/models match app/models
2015-01-30 15:51:10 -05:00