Commit Graph

110 Commits

Author SHA1 Message Date
Go MAEDA
4fb1e4bea0 Use fixtures :all to ensure consistent test data and improve test reliability (#41961).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23391 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-12-11 10:17:57 +00:00
Marius Balteanu
218218b783 Fix flacky test after Rails 7 update which fails occasionally because database records are not ordered, so it is necessary to specify the sort order when testing (#36320).
Patch by Takashi Kato (user:tohosaku).



git-svn-id: https://svn.redmine.org/redmine/trunk@22964 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-20 06:06:27 +00:00
Go MAEDA
b803bddb1f Fix "ArgumentError: Invalid response name: unprocessable_entity" with Rack 3.1.0+ in assert_response (#39889).
Rack 3.1.0 changed the symbol for HTTP status code 422 from `:unprocessable_entity` to `:unprocessable_content`.
Due to the change, `assert_response(:unprocessable_entity, ...)` raises ArgumentError with Rack 3.1.0+.

This fix is a follow-up to r22837.


git-svn-id: https://svn.redmine.org/redmine/trunk@22876 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-06-12 16:09:37 +00:00
Go MAEDA
a4e7d34cb7 Add updated_on and updated_by fields to Issues API journal response (#40449).
Contributed by Thomas Hoffmann (@ThomasHo).


git-svn-id: https://svn.redmine.org/redmine/trunk@22846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-27 07:41:57 +00:00
Go MAEDA
a9518e28b8 Fix RuboCop offense Rails/HttpStatus (#39889).
git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-18 05:56:55 +00:00
Marius Balteanu
38d950df55 Remove current year from source file copyright headers and update year in footer to 2024 (#40043).
git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-26 22:55:54 +00:00
Marius Balteanu
89e1d165a9 Adds @:user_preference@ fixture to @Redmine::ApiTest::IssuesTest@ (#40239).
Patch by Vincent Robert (@Nanego).

git-svn-id: https://svn.redmine.org/redmine/trunk@22734 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-25 23:22:02 +00:00
Go MAEDA
dbf8c1d921 Fix RuboCop offense Performance/RedundantEqualityComparisonBlock (#38146).
git-svn-id: https://svn.redmine.org/redmine/trunk@22031 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:30:25 +00:00
Go MAEDA
1d3a76580f Fix RuboCop offense Performance/FixedSize (#38146).
git-svn-id: https://svn.redmine.org/redmine/trunk@22030 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:29:11 +00:00
Go MAEDA
1481c721a2 Use require_relative instead of require File.expand_path(..., __FILE__) (#38093).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 07:13:39 +00:00
Go MAEDA
92bd67c279 Update copyright year to 2023 (#38141).
git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 06:19:35 +00:00
Go MAEDA
2d6f552599 Replace Member.find_or_new with ActiveRecord's find_or_initialize_by (#36730).
git-svn-id: http://svn.redmine.org/redmine/trunk@21456 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-03-14 14:25:24 +00:00
Go MAEDA
3686b77eb6 Update copyright year in source files to 2022 (#36379).
git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 05:29:10 +00:00
Go MAEDA
975e485afd Add information about whether an issue is open or closed to Issues API response (#15855).
Patch by Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@21225 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-10-02 06:16:15 +00:00
Go MAEDA
e2c08c7b36 Add total estimated hours, spent hours, total spent hours for issues to issue list API (#34857).
Patch by Felix Schäfer and Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@21051 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-06-27 07:18:58 +00:00
Go MAEDA
9055e5dfe5 Include new statuses allowed by workflow in Issues REST API (#24976).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20951 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-19 09:04:24 +00:00
Go MAEDA
3e36b5c452 Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Toshi MARUYAMA
061a68e466 fix source indent of test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20551 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-03 13:19:17 +00:00
Toshi MARUYAMA
1f6496c882 remove spaces inside {} of test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20023 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-12 12:57:58 +00:00
Go MAEDA
ca2bde9fbf Updating an issue via REST API causes internal server error if invalid project id is specified (#33417).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19777 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-05-14 14:33:07 +00:00
Go MAEDA
907e0173e4 Update copyright year in source files to 2020 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Go MAEDA
f37ed77665 Use #media_type instead of #content_type to test the MIME type of a response (#32886).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19467 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-27 03:54:25 +00:00
Toshi MARUYAMA
4afc813534 cleanup: rubocop: fix Layout/IndentFirstHashElement in test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19231 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 05:26:55 +00:00
Toshi MARUYAMA
7c95ae9899 cleanup: rubocop: fix Layout/AlignArguments in test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19016 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 14:10:22 +00:00
Go MAEDA
545a050ba3 Code cleanup: RuboCop: Fix Performance/Count and Performance/Detect.
This change corrects newly detected offenses after updating rubocop-performance to 1.5.0 in r18579.


git-svn-id: http://svn.redmine.org/redmine/trunk@18580 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-02 00:53:11 +00:00
Toshi MARUYAMA
b3955c935e code cleanup: rubocop: fix Layout/IndentHeredoc in test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18562 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-30 10:59:01 +00:00
Toshi MARUYAMA
9237457518 code cleanup: rubocop: fix Layout/EmptyLinesAroundBlockBody in test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18561 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-30 10:58:50 +00:00
Toshi MARUYAMA
b5b2f499f5 code cleanup: rubocop: fix Layout/LeadingCommentSpace in test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-30 02:44:21 +00:00
Toshi MARUYAMA
ea3c11bf32 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in test/integration/api_test/issues_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18538 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-25 17:55:26 +00:00
Go MAEDA
299f7a40b7 ApiTest fails if config.time_zone is set (#31388).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18237 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-08 06:44:20 +00:00
Go MAEDA
4082069c75 Update copyright year.
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
4f5a3a156c Enable frozen_string_literal for some files under test directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17978 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 15:03:47 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Go MAEDA
29063283da Ajax Request Returns 200 but an error event is fired instead of success (#30073).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17849 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-05 08:33:29 +00:00
Toshi MARUYAMA
aa5e49c37b fix element order (#26769)
git-svn-id: http://svn.redmine.org/redmine/trunk@16954 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-08-28 04:20:55 +00:00
Toshi MARUYAMA
7cb8ce8e40 add category_id to REST issue creation tests (#26769)
git-svn-id: http://svn.redmine.org/redmine/trunk@16953 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-08-28 04:15:55 +00:00
Jean-Philippe Lang
7fd04e1f8d Update copyright.
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
966f238da4 Use Rails 5 syntax for integration tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@16586 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-01 18:17:27 +00:00
Jean-Philippe Lang
73dc7256c6 Adds a test for #25526.
git-svn-id: http://svn.redmine.org/redmine/trunk@16492 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-05 16:10:16 +00:00
Jean-Philippe Lang
331c1f674d Add attachment information to issues.xml in REST API (#12181).
git-svn-id: http://svn.redmine.org/redmine/trunk@16360 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-03 17:18:58 +00:00
Jean-Philippe Lang
56159412b3 Issues API does not respect time_entries_visibility (#24875).
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16293 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-29 10:31:04 +00:00
Jean-Philippe Lang
3186130966 Don't use assert_equal nil.
git-svn-id: http://svn.redmine.org/redmine/trunk@16064 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-12 21:36:14 +00:00
Jean-Philippe Lang
bf5dade8df Use assert_nil instead of assert_equal.
git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-11 15:26:41 +00:00
Jean-Philippe Lang
3a2b6c7c96 Enforce issue assignee validation (#23921).
git-svn-id: http://svn.redmine.org/redmine/trunk@16055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-10 12:02:37 +00:00
Jean-Philippe Lang
d478785aea Let the API accept project identifier for creating issues (#23766).
Patch by Holger Just.

git-svn-id: http://svn.redmine.org/redmine/trunk@15855 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 09:06:17 +00:00
Jean-Philippe Lang
e1da6de36f Removes calls to #assert_template and #assigns in integration tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15727 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-21 17:50:00 +00:00
Jean-Philippe Lang
0e59482e90 Include private_notes property in xml/json Journals output (#20985).
Patch by Takenori TAKAKI.

git-svn-id: http://svn.redmine.org/redmine/trunk@15414 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-16 06:25:11 +00:00
Jean-Philippe Lang
39a3ffd069 Total spent hours and estimated hours need to be get via REST (#21757).
Patch by Takenori TAKAKI.

git-svn-id: http://svn.redmine.org/redmine/trunk@15254 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 09:05:12 +00:00
Jean-Philippe Lang
cda9c63d9c Updates copyright for 2016.
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
a196aaa2a9 Fixed that Issues API may disclose changesets that are not visible (#21136).
git-svn-id: http://svn.redmine.org/redmine/trunk@14794 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-11-04 18:17:07 +00:00