Commit Graph

74 Commits

Author SHA1 Message Date
Toshi MARUYAMA be29227c12 reset Attachment.storage_path at the end of attachment tests
Attachment files are deleted when database data were deleted.
So, other tests fail.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7911 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-24 08:10:41 +00:00
Jean-Philippe Lang 34c73c7573 REST API for issue categories (#9553).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7882 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 17:09:01 +00:00
Jean-Philippe Lang 30556f8cbf Makes issue categories available in project REST API (#9553).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7880 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 14:55:44 +00:00
Jean-Philippe Lang 248b725875 Adds API response to /issue_statuses to get the list of all available statuses (#7180).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7878 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 14:25:58 +00:00
Jean-Philippe Lang 053adaef52 Adds API response to /trackers to get the list of all available trackers (#7181).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7877 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 14:17:43 +00:00
Jean-Philippe Lang 1341dd564b Prevent projects tests from deleting fixture files.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7852 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-19 16:28:06 +00:00
Etienne Massip a84f877099 Added 2 tests about passing custom field filter to /issues.xml
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7581 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-05 22:03:19 +00:00
Toshi MARUYAMA 233bdd7779 Rails3: replace "all" fixtures at test/integration/api_test/token_authentication_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7518 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 04:58:07 +00:00
Toshi MARUYAMA c9bd3394d0 Rails3: replace "all" fixtures at test/integration/api_test/http_basic_login_with_api_token_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7517 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 04:57:35 +00:00
Toshi MARUYAMA 250d4db29d Rails3: replace "all" fixtures at test/integration/api_test/http_basic_login_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7516 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 04:56:55 +00:00
Toshi MARUYAMA fa11b8babe Rails3: replace "all" fixtures at test/integration/api_test/disabled_rest_api_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7515 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 04:56:27 +00:00
Toshi MARUYAMA eff37ebd12 Rails3: replace "all" fixtures at test/integration/api_test/queries_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 00:16:49 +00:00
Toshi MARUYAMA 2fef102a99 Rails3: replace "all" fixtures at test/integration/api_test/versions_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7508 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 00:16:11 +00:00
Toshi MARUYAMA a66b509005 Rails3: replace "all" fixtures at test/integration/api_test/news_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7507 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 23:58:43 +00:00
Toshi MARUYAMA 45aaef4556 Rails3: replace "all" fixtures at test/integration/api_test/attachments_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7506 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 23:58:17 +00:00
Toshi MARUYAMA 3f85c47003 Rails3: replace "all" fixtures at test/integration/api_test/issue_relations_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7504 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 23:57:01 +00:00
Toshi MARUYAMA ff90cae5d3 Rails3: replace "all" fixtures at test/integration/api_test/time_entries_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7503 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 23:56:16 +00:00
Toshi MARUYAMA d51cc908fe remove trailing white-spaces from test/integration/api_test/issues_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6945 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 00:49:30 +00:00
Toshi MARUYAMA 51e2d89608 remove trailing white-spaces from test/integration/api_test/queries_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6935 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 23:16:38 +00:00
Toshi MARUYAMA ca7804bcb4 remove trailing white-spaces from test/integration/api_test/time_entries_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6934 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 23:16:04 +00:00
Toshi MARUYAMA 9e69cab15d remove trailing white-spaces from test/integration/api_test/users_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6933 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 23:15:39 +00:00
Toshi MARUYAMA e103d11178 remove trailing white-spaces from test/integration/api_test/issue_relations_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6931 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 23:01:28 +00:00
Toshi MARUYAMA 4c7ae6da39 remove trailing white-spaces from test/integration/api_test/versions_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6690 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-28 06:48:10 +00:00
Toshi MARUYAMA bc15b437de remove trailing white-spaces from test/integration/api_test/http_basic_login_with_api_token_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6674 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 10:03:58 +00:00
Toshi MARUYAMA 50f7af6b93 remove trailing white-spaces from test/integration/api_test/news_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6673 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 10:03:37 +00:00
Toshi MARUYAMA 1762486c23 remove trailing white-spaces from test/integration/api_test/projects_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6672 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 10:03:14 +00:00
Toshi MARUYAMA a53f979bc6 remove trailing white-spaces from test/integration/api_test/token_authentication_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6671 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 10:02:53 +00:00
Toshi MARUYAMA e2b4742ceb remove trailing white-spaces from test/integration/api_test/http_basic_login_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6670 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 08:47:04 +00:00
Toshi MARUYAMA 0cbd686a85 remove trailing white-spaces from test/integration/api_test/disabled_rest_api_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6669 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 08:46:29 +00:00
Toshi MARUYAMA 28a8048749 remove trailing white-spaces from test/integration/api_test/attachments_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6666 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 08:44:31 +00:00
Jean-Philippe Lang 521eaa79cb Ability to load relations on /issues API (#7366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6313 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-24 15:34:41 +00:00
Jean-Philippe Lang fdd5367eba Respond with errors and appropriate content type on /issues API calls with invalid query params (#8883).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6309 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-23 19:45:23 +00:00
Jean-Philippe Lang 8769eb53bc Removed a few assertions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6296 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-18 21:21:29 +00:00
Jean-Philippe Lang f89483a206 REST API for reading attachments (#7671).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6295 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-18 20:53:10 +00:00
Jean-Philippe Lang d48ea90876 Makes custom queries available through the REST API (#5737).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6186 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-06 16:57:04 +00:00
Jean-Philippe Lang 42f9dc7d2c Makes relations resource shallow (#7366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6184 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-05 16:47:34 +00:00
Jean-Philippe Lang 852cb183b1 Makes versions resource shallow (#7403).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6183 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-05 16:29:06 +00:00
Jean-Philippe Lang b86a748b1d Adds REST API for versions (#7403).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6180 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-04 19:34:58 +00:00
Jean-Philippe Lang daa426167f Adds support for GET on /issues/:issue_id/relations (#7366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6179 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-04 17:44:41 +00:00
Jean-Philippe Lang 21b3718744 Adds REST API for issue relations (#7366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6176 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-04 17:03:04 +00:00
Jean-Philippe Lang 12801ca031 Fixed: GET /time_entries.xml ignores limit/offset parameters (#8356).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5881 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-22 10:48:59 +00:00
Toshi MARUYAMA 122ba564b9 Fix test/integration/api_test/users_test.rb fails due to changing en.yml (#8035, #7855).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5270 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-01 00:46:29 +00:00
Jean-Philippe Lang e9f62d1209 Enable ability for administrators to delete users (#7296).
User's personal data (eg. preferences, tokens, private queries...) are deleted, public data (eg. issues, wiki edits, attachments...) are reassigned to the anonymous user.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4729 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-16 15:23:11 +00:00
Jean-Philippe Lang 9fb770ba50 Moves enabled_module_names param to project attribute so that it can be set through the Project API.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4645 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-06 20:36:31 +00:00
Jean-Philippe Lang 599bc45073 Adds support for requesting information about current user using /users/current (#7141).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4544 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-20 17:45:09 +00:00
Jean-Baptiste Barth 17f86d964f Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 23:24:34 +00:00
Jean-Philippe Lang ac60fc9c1c Refactor and add tests for News #index API (#7072).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4505 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 17:00:52 +00:00
Jean-Philippe Lang 9e2d401f43 Moves mail_notification param to user hash param so that it can be set using the User API.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4496 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 14:19:24 +00:00
Jean-Philippe Lang cde02954c8 Moves password param to user hash param so that it can be set using the User API.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 13:39:55 +00:00
Jean-Philippe Lang 00d50157d3 Restores object count and adds offset/limit attributes to API responses for paginated collections (#6140).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4489 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-11 13:13:49 +00:00