Commit graph

740 commits

Author SHA1 Message Date
Martin Bornhold
30d2e31229 pytest: Use http as default backend in pytest configuration. 2016-10-04 14:37:48 +02:00
Martin Bornhold
8279f376a9 tests: Fix tests that depend on the default value of 'pyro4' as backend. 2016-10-04 14:37:09 +02:00
Martin Bornhold
d3fd4efbe1 tests: Specify protocol in case of pyro4.
Previously this was the default value of the argument.
2016-10-04 13:05:16 +02:00
Martin Bornhold
27139beaa3 tests: Change default settings in tests to 'http' 2016-10-04 13:04:40 +02:00
Martin Bornhold
cb1b19cfba tests: Fix infinite loop. 2016-10-04 12:44:03 +02:00
Martin Bornhold
2279a8a80e vcs: Fix vcsserver startup with http backend. 2016-10-04 12:53:40 +02:00
Martin Bornhold
0eaf093c1f vcs: Map legacy setting value 'rhodecode.lib.middleware.utils.scm_app_http' -> 'http' to support legacy configs. 2016-10-04 12:10:56 +02:00
Martin Bornhold
dff5dd52e0 http: Allow http, pyro and custom implementations for scm app. 2016-10-04 12:01:10 +02:00
Martin Bornhold
3ec9d222b8 http: Remove default arguments from prepare callback function. 2016-10-04 11:37:36 +02:00
Martin Bornhold
65bc7e55cf vcs: Raise exception if unknown protocol specified for vcs server protocol. 2016-10-04 11:24:56 +02:00
Martin Bornhold
0a1cdb3d33 http: Remove 'pyro4' default values from function arguemnts in vcs init. #4237 2016-10-04 11:24:34 +02:00
Martin Bornhold
e16c30581c http: Use http as default setting when sanitize config values. Part of #4237 2016-10-04 11:18:52 +02:00
Daniel Dourvaris
25f2c0b8b2 tests: add test for pull request with multiple commits and reflect
peppercorn usage in other pull request tests
2016-10-12 08:27:31 +03:00
Daniel Dourvaris
647d54dd0b pullrequests: added peppercorn sequence start/end markers to
commit range list to fix bug where pull requests with multiple
commits were submitting only one commit
2016-10-12 08:21:58 +03:00
Marcin Lulek
108430ae23 global settings: add a new template for flash filtering 2016-10-11 15:25:41 +02:00
Marcin Lulek
73c93af3e7 helpers: flash messages can now carry additional information in json format 2016-10-10 16:00:18 +02:00
Martin Bornhold
ecc24326d7 vcs: Do not pass the backend key into the scm app instances.
We used the key as a value for a response header. Since this header is removed there
is no need to pass the backend key araound.
2016-10-06 16:25:27 +02:00
Martin Bornhold
c6466346b4 vcs: Remove custom response header which contains backend key.
We used this custom header to skip the error handling.
This is no linger needed since the VCS middleware is moved above of the error handling.
2016-10-06 16:10:40 +02:00
Martin Bornhold
1a3f93ca85 error-handling: Remove if condition to check if the response is a vcs response.
We moved the VCS middleware out of the error handling. Therefore we don't need to skip the error handling anymore.
2016-10-06 16:08:34 +02:00
Martin Bornhold
bd75ca674e wsgi-stack: Move the vcs middleware out of the error handling.
Currently we are bypassing the error handling in case of responses from the
vcs middleware with a custom response header. By moving it out of the error
handling we don't need the custom header anymore.
2016-10-06 15:50:37 +02:00
Martin Bornhold
861adffd82 tests: Add a way to deactivate exception re-raising in tests. 2016-10-07 09:15:43 +02:00
Martin Bornhold
643e092c92 wsgi-stack: Add a more meaningful comment why we insert the error middleware. 2016-10-06 15:39:03 +02:00
Martin Bornhold
b20f75676a wsgi-stack: Use the pylons error handling middleware. 2016-10-06 12:00:58 +02:00
Martin Bornhold
b213d2244c wsgi-stack: Refactor the error handling view into a middleware class. 2016-10-06 12:01:57 +02:00
Marcin Kuzminski
385434e99a default-reviewers: add reason when manually adding reviewers after creating a PR.
Fixes #4250
2016-10-07 19:38:51 +02:00
Marcin Kuzminski
39879f0dff webhooks: added variables into the call URL. Fixes #4211 2016-10-06 23:20:55 +02:00
Marcin Kuzminski
0a0255a92d integrations: sync slack/hipchat formatting 2016-10-05 12:55:42 +02:00
Marcin Kuzminski
759562b614 logging: remove bad logging on slack/hipchat. 2016-10-05 12:13:08 +02:00
Daniel Dourvaris
13f8ae56bc integrations: fix bug with integrations view page not loading
when non global admin tries to access it, fixes #4266
2016-10-06 17:59:33 +03:00
Daniel Dourvaris
cee3c740e0 hipchat: escape user entered data to avoid xss/formatting problems 2016-10-06 15:38:49 +03:00
Marcin Kuzminski
f6410691d6 integrations: use consistent formatting of user in slack. 2016-10-04 23:12:00 +02:00
lisaq
048e2deb50 ux: icon for merge tags 2016-10-04 16:33:01 +02:00
Martin Bornhold
aab8b8038b vcs: Remove dead code. 2016-10-04 14:38:11 +02:00
lisaq
272d4625b1 styling: new icon font fix #3488 2016-10-04 12:03:30 +02:00
Marcin Kuzminski
0a39f5bf00 vcs: merge logic with dry run now uses better default arguments.
Helps to find out where the merge came from.
2016-10-03 11:20:25 +02:00
Marcin Kuzminski
721295056f vcs: add missing parameters to base class method. 2016-10-03 11:19:57 +02:00
Marcin Kuzminski
9a8665f0d8 shadow-repos: expose a nicer clone destination directory by default in
format of pull-request-NUM.
2016-10-03 11:19:24 +02:00
Marcin Kuzminski
3dd481e54c pull-requests: fix problem with empty instances on creating PR from origin repo 2016-10-03 11:09:36 +02:00
Martin Bornhold
cc4ab6dae7 tests: Use only one place to define pr and shadow URL segments. 2016-09-28 13:40:01 +02:00
Martin Bornhold
974c9b8766 tests: Add tests to check the shadow-repo regular expression. 2016-09-28 13:26:30 +02:00
Martin Bornhold
acc2367ab9 shadow: Simplyfy the regular expression for detecting shadow repository URLs 2016-09-28 13:25:57 +02:00
Martin Bornhold
0e6b983ce1 shadow: Remove URL quoting of shadow repository pull URL. 2016-09-28 12:04:36 +02:00
Martin Bornhold
ad14211248 tests: Adapt test to recent changes.
This argument was removed.
2016-09-27 09:48:59 +02:00
Martin Bornhold
0a34a8c1df tests: Fix tests which need the DB to run. 2016-09-27 09:48:42 +02:00
Martin Bornhold
7eeedebf7b tests: Add a `db` fixture that initializes the database.
This is quite useful if tests only need the database and not the whole app.
Then only this fixture is needed instead of the full blown pylonsapp/app fixtures.
2016-09-27 09:48:23 +02:00
Martin Bornhold
ae2b380d5b tests: Add tests to check the shadow repo exposure of the simplevcs class. 2016-09-26 14:55:30 +02:00
Martin Bornhold
16bac867f5 tests: Make return values of stub vcs controller editable. 2016-09-26 14:54:58 +02:00
Martin Bornhold
5eeb75edac shadow: Fix an error in the regex to detect shadow repository URLs. 2016-09-26 14:54:21 +02:00
Martin Bornhold
69f6006e28 tests: Add some tests to check that events/extensions are triggered on hook execution.
This also includes tests to check that events/extensions are NOT triggered
on requests to shadow repositories.
2016-09-23 16:23:08 +02:00
Martin Bornhold
3c6a97202a tests: Add new attribute is_shadow_repo to test dummy extra data. 2016-09-23 14:31:36 +02:00