Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

chg: Fixtures adapted for Redmine 1.2

  • Loading branch information...
commit a65e9602fba725312baa6a0d63c9d070be257574 1 parent 0e4cf2f
Sven Krzyzak authored
View
2  app/views/mylyn_connector/issues/_issue.rxml
@@ -32,7 +32,7 @@ xml.issue({:id => issue.id, :editAllowed => edit_allowed?(issue)}.merge(attr||={
xml.categoryId issue.category_id if issue.category_id
xml.assignedToId issue.assigned_to_id if issue.assigned_to_id
xml.fixedVersionId issue.fixed_version_id if issue.fixed_version_id
- xml.parentId issue.parent_id if is10? && issue.parent_id
+ xml.parentId issue.parent_id if is1dot0? && issue.parent_id
xml.availableStatus integer_list(available_status(issue))
View
13 lib/mylyn_connector/version.rb
@@ -2,7 +2,7 @@ module MylynConnector
module Version
MAJOR = 2
MINOR = 7
- TINY = 2
+ TINY = 3
# stable/trunk
BRANCH = 'stable'
@@ -24,14 +24,17 @@ def self.redmine_release; REDMINE end
module ClassMethods
- def is09?
- MylynConnector::Version.redmine_release.to_f >=0.9
+ def is1dot0?
+ MylynConnector::Version.redmine_release.to_f == 1.0 || MylynConnector::Version.redmine_release.to_f == 0.9 && Redmine::VERSION.to_s.include?('devel')
end
- def is10?
- MylynConnector::Version.redmine_release.to_f >=1.0 || is09? && Redmine::VERSION.to_s.include?('devel')
+ def is1dot1?
+ MylynConnector::Version.redmine_release.to_f == 1.1 || MylynConnector::Version.redmine_release.to_f == 1.0 && Redmine::VERSION.to_s.include?('devel')
end
+ def is1dot2?
+ MylynConnector::Version.redmine_release.to_f == 1.2 || MylynConnector::Version.redmine_release.to_f == 1.1 && Redmine::VERSION.to_s.include?('devel')
+ end
end
end
View
3  release-note.txt
@@ -1,3 +1,6 @@
+Version 2.7.3
+ chg : Fixtures adapted for Redmine 1.2
+
Version 2.7.2
bugfix: Missing support for manipulation of issue watchers
add : Testpage for HTTP-Basic-Auth
View
159 test/fixtures/1.2/custom_fields.yml
@@ -0,0 +1,159 @@
+---
+custom_fields_001:
+ name: Database
+ min_length: 0
+ regexp: ""
+ is_for_all: true
+ is_filter: true
+ type: IssueCustomField
+ max_length: 0
+ possible_values:
+ - MySQL
+ - PostgreSQL
+ - Oracle
+ id: 1
+ is_required: false
+ field_format: list
+ default_value: ""
+ editable: true
+custom_fields_002:
+ name: Searchable field
+ min_length: 1
+ regexp: ""
+ is_for_all: true
+ type: IssueCustomField
+ max_length: 100
+ possible_values: ""
+ id: 2
+ is_required: false
+ field_format: string
+ searchable: true
+ default_value: "Default string"
+ editable: true
+custom_fields_003:
+ name: Development status
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ is_filter: true
+ type: ProjectCustomField
+ max_length: 0
+ possible_values:
+ - Stable
+ - Beta
+ - Alpha
+ - Planning
+ id: 3
+ is_required: true
+ field_format: list
+ default_value: ""
+ editable: true
+custom_fields_004:
+ name: Phone number
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ type: UserCustomField
+ max_length: 0
+ possible_values: ""
+ id: 4
+ is_required: false
+ field_format: string
+ default_value: ""
+ editable: true
+custom_fields_005:
+ name: Money
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ type: UserCustomField
+ max_length: 0
+ possible_values: ""
+ id: 5
+ is_required: false
+ field_format: float
+ default_value: ""
+ editable: true
+custom_fields_006:
+ name: Float field
+ min_length: 0
+ regexp: ""
+ is_for_all: true
+ type: IssueCustomField
+ max_length: 0
+ possible_values: ""
+ id: 6
+ is_required: false
+ field_format: float
+ default_value: ""
+ editable: true
+custom_fields_007:
+ name: Billable
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ is_filter: true
+ type: TimeEntryActivityCustomField
+ max_length: 0
+ possible_values: ""
+ id: 7
+ is_required: false
+ field_format: bool
+ default_value: ""
+ editable: true
+custom_fields_008:
+ name: Custom date
+ min_length: 0
+ regexp: ""
+ is_for_all: true
+ is_filter: false
+ type: IssueCustomField
+ max_length: 0
+ possible_values: ""
+ id: 8
+ is_required: false
+ field_format: date
+ default_value: ""
+ editable: true
+custom_fields_009:
+ name: Project 1 cf
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ is_filter: true
+ type: IssueCustomField
+ max_length: 0
+ possible_values: ""
+ id: 9
+ is_required: false
+ field_format: date
+ default_value: ""
+ editable: true
+custom_fields_010:
+ name: Overtime
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ is_filter: false
+ type: TimeEntryCustomField
+ max_length: 0
+ possible_values: ""
+ id: 10
+ is_required: false
+ field_format: bool
+ default_value: 0
+ editable: true
+custom_fields_011:
+ name: Custom date
+ min_length: 0
+ regexp: ""
+ is_for_all: false
+ is_filter: false
+ type: TimeEntryCustomField
+ max_length: 0
+ possible_values: ""
+ id: 11
+ is_required: false
+ field_format: date
+ default_value: ""
+ editable: true
View
109 test/fixtures/1.2/custom_values.yml
@@ -0,0 +1,109 @@
+---
+custom_values_006:
+ customized_type: Issue
+ custom_field_id: 2
+ customized_id: 3
+ id: 6
+ value: "125"
+custom_values_007:
+ customized_type: Project
+ custom_field_id: 3
+ customized_id: 1
+ id: 7
+ value: Stable
+custom_values_001:
+ customized_type: Principal
+ custom_field_id: 4
+ customized_id: 3
+ id: 1
+ value: ""
+custom_values_002:
+ customized_type: Principal
+ custom_field_id: 4
+ customized_id: 4
+ id: 2
+ value: 01 23 45 67 89
+custom_values_003:
+ customized_type: Principal
+ custom_field_id: 4
+ customized_id: 2
+ id: 3
+ value: "01 42 50 00 00"
+custom_values_004:
+ customized_type: Issue
+ custom_field_id: 2
+ customized_id: 1
+ id: 4
+ value: "125"
+custom_values_005:
+ customized_type: Issue
+ custom_field_id: 2
+ customized_id: 2
+ id: 5
+ value: ""
+custom_values_008:
+ customized_type: Issue
+ custom_field_id: 1
+ customized_id: 3
+ id: 8
+ value: "MySQL"
+custom_values_009:
+ customized_type: Issue
+ custom_field_id: 2
+ customized_id: 7
+ id: 9
+ value: "this is a stringforcustomfield search"
+custom_values_010:
+ customized_type: Issue
+ custom_field_id: 6
+ customized_id: 1
+ id: 10
+ value: "2.1"
+custom_values_011:
+ customized_type: Issue
+ custom_field_id: 6
+ customized_id: 2
+ id: 11
+ value: "2.05"
+custom_values_012:
+ customized_type: Issue
+ custom_field_id: 6
+ customized_id: 3
+ id: 12
+ value: "11.65"
+custom_values_013:
+ customized_type: Issue
+ custom_field_id: 6
+ customized_id: 7
+ id: 13
+ value: ""
+custom_values_014:
+ customized_type: Issue
+ custom_field_id: 6
+ customized_id: 5
+ id: 14
+ value: "-7.6"
+custom_values_015:
+ customized_type: Enumeration
+ custom_field_id: 7
+ customized_id: 10
+ id: 15
+ value: true
+custom_values_016:
+ customized_type: Enumeration
+ custom_field_id: 7
+ customized_id: 11
+ id: 16
+ value: '1'
+custom_values_017:
+ customized_type: Issue
+ custom_field_id: 8
+ customized_id: 1
+ id: 17
+ value: '2009-12-01'
+custom_values_018:
+ customized_type: TimeEntry
+ custom_field_id: 10
+ customized_id: 2
+ id: 18
+ value: '2009-12-01'
View
100 test/fixtures/1.2/enumerations.yml
@@ -0,0 +1,100 @@
+---
+enumerations_001:
+ name: Uncategorized
+ id: 1
+ type: DocumentCategory
+ active: true
+enumerations_002:
+ name: User documentation
+ id: 2
+ type: DocumentCategory
+ active: true
+enumerations_003:
+ name: Technical documentation
+ id: 3
+ type: DocumentCategory
+ active: true
+enumerations_004:
+ name: Low
+ id: 4
+ type: IssuePriority
+ active: true
+ position: 1
+enumerations_005:
+ name: Normal
+ id: 5
+ type: IssuePriority
+ is_default: true
+ active: true
+ position: 2
+enumerations_006:
+ name: High
+ id: 6
+ type: IssuePriority
+ active: true
+ position: 3
+enumerations_007:
+ name: Urgent
+ id: 7
+ type: IssuePriority
+ active: true
+ position: 4
+enumerations_008:
+ name: Immediate
+ id: 8
+ type: IssuePriority
+ active: true
+ position: 5
+enumerations_009:
+ name: Design
+ id: 9
+ type: TimeEntryActivity
+ position: 1
+ active: true
+enumerations_010:
+ name: Development
+ id: 10
+ type: TimeEntryActivity
+ position: 2
+ is_default: true
+ active: true
+enumerations_011:
+ name: QA
+ id: 11
+ type: TimeEntryActivity
+ position: 3
+ active: true
+enumerations_012:
+ name: Default Enumeration
+ id: 12
+ type: Enumeration
+ is_default: true
+ active: true
+enumerations_013:
+ name: Another Enumeration
+ id: 13
+ type: Enumeration
+ active: true
+enumerations_014:
+ name: Inactive Activity
+ id: 14
+ type: TimeEntryActivity
+ position: 4
+ active: false
+enumerations_015:
+ name: Development
+ id: 15
+ type: TimeEntryActivity
+ position: 5
+ is_default: false
+ active: true
+ project_id: 1
+ parent_id: 10
+enumerations_016:
+ name: QA
+ id: 16
+ type: TimeEntryActivity
+ position: 3
+ active: false
+ project_id: 1
+ parent_id: 11
View
19 test/fixtures/1.2/watchers.yml
@@ -0,0 +1,19 @@
+---
+watchers_001:
+ watchable_type: Issue
+ watchable_id: 2
+ user_id: 3
+watchers_002:
+ watchable_type: Message
+ watchable_id: 1
+ user_id: 1
+watchers_003:
+ watchable_type: Issue
+ watchable_id: 2
+ user_id: 1
+
+watchers_004:
+ watchable_type: Issue
+ watchable_id: 3
+ user_id: 2
+
View
2  test/functional/custom_fields_controller_test.rb
@@ -19,7 +19,7 @@ def test_all
valid = xmldoc.validate_schema schema
assert valid , 'Ergebnis passt nicht zum Schema ' + 'customFields'
- cfl = {:tag => 'customfields', :children => {:count => 10}, :attributes => {:api => cr}}
+ cfl = {:tag => 'customfields', :children => {:count => (is1dot2? ? 11 : 10)}, :attributes => {:api => cr}}
cf = {:tag => 'customfield', :attributes => {:id => 1}, :parent => cfl}
assert_tag :tag => 'name', :content => 'Database', :parent => cf
assert_tag :tag => 'type', :content => 'IssueCustomField', :parent => cf
View
2  test/functional/issues_controller_test.rb
@@ -105,7 +105,7 @@ def test_authenticated_attachments
assert_tag :tag => 'watchers', :attributes => {:viewallowed=>'true', :addallowed=>'false', :deleteallowed=>'false'}, :content => '2', :parent => i
- atts = {:tag => 'attachments', :children => {:count => 4},:parent => i}
+ atts = {:tag => 'attachments', :children => {:count => (is1dot2? ? 5 : 4)},:parent => i}
att = {:tag => 'attachment', :attributes => {:id => 1}, :parent => atts}
assert_tag :tag => 'authorid', :content => '2', :parent => att
assert_tag :tag => 'contenttype', :content => 'text/plain', :parent => att
View
1  test/functional/versions_controller_test.rb
@@ -35,7 +35,6 @@ def test_all_empty_is_valid
valid = xmldoc.validate_schema schema
assert valid , 'Ergebnis passt nicht zum Schema ' + 'versions'
- puts @response.body
assert_tag :tag => 'versions', :children => {:count => 0}, :attributes => {:api => cr}
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.