Commit graph

92 commits

Author SHA1 Message Date
Martin Bornhold
0a79070b77 tests: Test sanitize helper function for integer settings. 2016-08-10 12:09:51 +02:00
lisaq
4729365ebd tests: functional tests for diff 2 way 2016-08-10 22:56:50 +02:00
Martin Bornhold
6fce04f6d1 tests: Adapt tests to recent changes. 2016-08-09 16:34:03 +02:00
Martin Bornhold
d7ee3ddb9b tests: Add custom header to expected headers 2016-08-09 16:33:38 +02:00
Martin Bornhold
e5c6c0c63f tests: Add some test cases for unicode and list separation. 2016-08-09 09:22:14 +02:00
Martin Bornhold
3273b9efca tests: Use settings dict from fixture instead of grabbing it from the WSGI app stack. 2016-08-08 15:03:03 +02:00
Martin Bornhold
24d3455854 tests: Add a fixture to get the settings dict. 2016-08-08 15:02:12 +02:00
Martin Bornhold
af75eea2c8 tests: Add test to check the sanitize settings method in app init. 2016-08-08 08:31:36 +02:00
Martin Bornhold
ebaab4bbd2 tests: Adapt tests to recent changes. 2016-08-08 08:30:34 +02:00
Daniel Dourvaris
d5cc2f99f6 jsonalchemy: add pickle support to mutation dict so that json
setting values can be pickled and passed to celery tasks
2016-08-03 03:19:12 +03:00
Marcin Kuzminski
6eb717f1f4 static: bring back ver=XXX for proper flushing caches when version is upgraded.
Fixes #4143
2016-08-02 21:39:37 +02:00
Marcin Kuzminski
d913d42db0 tests: added some additional tests for commit comments.
- rename how those tests are called
2016-08-02 21:25:16 +02:00
Marcin Kuzminski
b18ee01570 tests: adjust tests after email changes. 2016-08-02 12:43:19 +02:00
Marcin Kuzminski
198c6fda61 gists: use colander schema to validate input data.
- brings consistent validation acros API and web
- use nicer and stricter schemas to validate data
- fixes #4118
2016-07-31 20:11:12 +02:00
lisaq
5fa18a8f7d notifications: adjusting how instance name is passed and fixing tests 2016-07-28 17:35:30 +02:00
lisaq
812caf6693 notifications: adjusting tests 2016-07-28 15:18:17 +02:00
Marcin Kuzminski
708038952c db: always use Session() for compatibility, Using Session is actually the
scoped_session which is not the same as the one which we "call".

More here: http://docs.sqlalchemy.org/en/latest/orm/contextual.html#contextual-thread-local-sessions
2016-07-27 00:42:19 +02:00
Martin Bornhold
bee42a50ed auth: Fix renaming of 'auth_cahe_ttl' to 'cache_ttl' #4127 2016-07-27 15:54:42 +02:00
Daniel Dourvaris
74d0f0c336 api: add a max_file_bytes parameter to get_nodes so that large
files can be skipped
2016-07-26 20:52:11 +03:00
Martin Bornhold
b5956563a5 tests: Fix mocking of get_scm and get_backend functions. 2016-07-21 09:54:04 +02:00
Martin Bornhold
919fa4247d tests: Adapt tests to use the new get_vcs_instance function instead of removed get_repo. 2016-07-21 09:07:29 +02:00
Martin Bornhold
873a0753a5 tests: Fix a helper method that checks if a repository is available on filesystem.
- Moved it into utils to remove duplication
- Refactored it to not hide all kinds of exceptions.
2016-07-21 09:06:47 +02:00
Martin Bornhold
ab119753c7 tests: Remove code that is moved to the actest repository. #4095 2016-07-21 14:20:22 +02:00
Martin Bornhold
eca6c8ea01 tests: Fixed ecpected results. 2016-07-19 15:12:02 +02:00
Martin Bornhold
9e7f173d13 tests: Add new argument to tests using '_create_reference_data' method. 2016-07-19 11:42:38 +02:00
Martin Bornhold
c86781e72f tests: Add new argument to tests using '_create_reference_items' method. 2016-07-19 11:39:42 +02:00
Martin Bornhold
43ca1aab8a tests: Add new argument to tests using '_create_files_url' method. 2016-07-19 11:36:33 +02:00
Marcin Kuzminski
897af018aa test: remove accidentally commite test file 2016-07-18 14:48:23 +02:00
Marcin Kuzminski
a03e4a88f9 tests: marked some xfail tests that are now working 2016-07-14 14:17:34 +02:00
Marcin Kuzminski
169a7c5cf1 integrations-db: don't use default contructor to be consisten with other modules
usage.
2016-07-14 11:23:46 +02:00
Daniel Dourvaris
381ed28327 slack: add slack integration tests 2016-07-13 18:51:59 +02:00
Daniel Dourvaris
88e83cf796 events: add an event for pull request comments with review status 2016-07-13 10:39:54 +02:00
Johannes Bornhold
e660ec2fb5 tests: Fix up PATH_INFO to start with a slash
That's also how it looks in reality.
2016-07-13 09:16:47 +02:00
Johannes Bornhold
00ec4381f9 subversion: Detect requests also based on magic path. 2016-07-13 09:15:54 +02:00
Daniel Dourvaris
2421154553 tests: fix integration test wrong named variable 2016-07-13 10:05:25 +02:00
Martin Bornhold
2add3b9ca2 tests: Only skip test if protocol is 'pyro4' 2016-07-12 19:33:38 +02:00
Martin Bornhold
417e8c92a4 tests: Skip test for Pyro4 connection and added doc strings. 2016-07-12 19:30:37 +02:00
Daniel Dourvaris
d7cd766a07 integrations: fix bug where deleting a repo did not delete integrations 2016-07-12 11:14:40 +02:00
Marcin Kuzminski
46c5716da0 tests: refactor git ident usage on test_vcs_operations 2016-07-12 12:57:33 +02:00
Marcin Kuzminski
f48e94aa14 file-browser: refactor how we load metadata for file trees.
Before we used to use JSON data to map the nodes to json and fill in
metadata. Now we use rendered parts of html. This is nicer for caching as
it would allow us to replace the view with cached tree and then after ajax load
replace it again with cached with metadata. On the next request we'll
get the cached with metadata and thus we can skip entirely second
ajax call for metadata.

This is part of #4083
2016-07-12 11:45:51 +02:00
Martin Bornhold
84b0a535bb tests: Fix a test that was broken due to changes around the rebase-merge option. 2016-07-12 11:09:35 +02:00
lisaq
0f11ae75ae tests: fixing test_diffprocessor_as_html_with_comments 2016-07-11 19:03:54 +02:00
Daniel Dourvaris
f81ae45597 slack: fix links in commit/pr events 2016-07-11 17:57:34 +02:00
Daniel Dourvaris
7ff09cda95 integrations: add integration support
* added db migration for integration table, version 55
* added integrations views/templates/models
* added slack integration
* added h.url.current() support for pyramid only contexts
* added issues extractor for commit messages
* renamed repo-deleted/repo-created to repo-delete/repo-create
* removed marshmallow
* added serialization for events to static dicts of data
* added lazy_ugettext for translation of start time string
2016-07-10 06:43:20 +03:00
Martin Bornhold
3338c8a785 tests: Adapt tests to changes in mercurial vcs backend. 2016-07-11 10:39:01 +02:00
Martin Bornhold
c3f3348189 tests: Add tests for hg invalidation of vcsserver cache. 2016-07-08 16:40:16 +02:00
Martin Bornhold
a26deb916c tests: Add missing argument to assert_called_with statements.
Added the `'use_rebase' argument to assert statements which was recently
added to the merge method.
2016-07-08 09:15:03 +02:00
Martin Bornhold
d7bec50fc7 tests: Fix test that modifies test repo settings.
This test now creates it's own repo to modify the repo vcs settings.
Instead of modifying the settings of the vcs_test_repo which is used
in other tests again.
2016-07-08 08:34:12 +02:00
Marcin Kuzminski
51e1968537 readme/markup: improved order of generating readme files. Fixes #4050
- we now use order based on default system renderer
- having multiple readme files will pick correct one as set renderer
2016-07-07 00:50:39 +02:00
Daniel Dourvaris
c1b109c7a0 events: fix bug, 'url' was not in dict 2016-07-07 05:35:54 +03:00