##// END OF EJS Templates
Add some tests on RolesController....
Jean-Philippe Lang -
r1254:8cb5acf45371
parent child
Show More
@@ -1,36 +1,37
1 1 <div class="contextual">
2 2 <%= link_to l(:label_role_new), {:action => 'new'}, :class => 'icon icon-add' %>
3 3 </div>
4 4
5 5 <h2><%=l(:label_role_plural)%></h2>
6 6
7 7 <table class="list">
8 8 <thead><tr>
9 9 <th><%=l(:label_role)%></th>
10 10 <th><%=l(:button_sort)%></th>
11 11 <th></th>
12 12 </tr></thead>
13 13 <tbody>
14 14 <% for role in @roles %>
15 15 <tr class="<%= cycle("odd", "even") %>">
16 16 <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, :action => 'edit', :id => role)) %></td>
17 17 <td align="center" style="width:15%;">
18 18 <% unless role.builtin? %>
19 19 <%= link_to image_tag('2uparrow.png', :alt => l(:label_sort_highest)), {:action => 'move', :id => role, :position => 'highest'}, :method => :post, :title => l(:label_sort_highest) %>
20 20 <%= link_to image_tag('1uparrow.png', :alt => l(:label_sort_higher)), {:action => 'move', :id => role, :position => 'higher'}, :method => :post, :title => l(:label_sort_higher) %> -
21 21 <%= link_to image_tag('1downarrow.png', :alt => l(:label_sort_lower)), {:action => 'move', :id => role, :position => 'lower'}, :method => :post, :title => l(:label_sort_lower) %>
22 22 <%= link_to image_tag('2downarrow.png', :alt => l(:label_sort_lowest)), {:action => 'move', :id => role, :position => 'lowest'}, :method => :post, :title => l(:label_sort_lowest) %>
23 23 <% end %>
24 24 </td>
25 25 <td align="center" style="width:10%;">
26 26 <%= button_to(l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small", :disabled => role.builtin? ) %>
27 </td>
27 28 </tr>
28 29 <% end %>
29 30 </tbody>
30 31 </table>
31 32
32 33 <p class="pagination"><%= pagination_links_full @role_pages %></p>
33 34
34 35 <p><%= link_to l(:label_permissions_report), :action => 'report' %></p>
35 36
36 37 <% html_title(l(:label_role_plural)) -%>
@@ -1,163 +1,163
1 1 ---
2 roles_004:
3 name: Non member
4 id: 4
5 builtin: 1
6 permissions: |
7 ---
8 - :add_issues
9 - :edit_issues
10 - :manage_issue_relations
11 - :add_issue_notes
12 - :move_issues
13 - :save_queries
14 - :view_gantt
15 - :view_calendar
16 - :log_time
17 - :view_time_entries
18 - :comment_news
19 - :view_documents
20 - :manage_documents
21 - :view_wiki_pages
22 - :edit_wiki_pages
23 - :add_messages
24 - :view_files
25 - :manage_files
26 - :browse_repository
27 - :view_changesets
28
29 position: 5
30 roles_005:
31 name: Anonymous
32 id: 5
33 builtin: 2
34 permissions: |
35 ---
36 - :add_issue_notes
37 - :view_gantt
38 - :view_calendar
39 - :view_time_entries
40 - :view_documents
41 - :view_wiki_pages
42 - :view_files
43 - :browse_repository
44 - :view_changesets
45
46 position: 6
47 2 roles_001:
48 3 name: Manager
49 4 id: 1
50 5 builtin: 0
51 6 permissions: |
52 7 ---
53 8 - :edit_project
54 9 - :manage_members
55 10 - :manage_versions
56 11 - :manage_categories
57 12 - :add_issues
58 13 - :edit_issues
59 14 - :manage_issue_relations
60 15 - :add_issue_notes
61 16 - :move_issues
62 17 - :delete_issues
63 18 - :manage_public_queries
64 19 - :save_queries
65 20 - :view_gantt
66 21 - :view_calendar
67 22 - :log_time
68 23 - :view_time_entries
69 24 - :edit_time_entries
70 25 - :delete_time_entries
71 26 - :manage_news
72 27 - :comment_news
73 28 - :view_documents
74 29 - :manage_documents
75 30 - :view_wiki_pages
76 31 - :edit_wiki_pages
77 32 - :delete_wiki_pages
78 33 - :rename_wiki_pages
79 34 - :add_messages
80 35 - :edit_messages
81 36 - :delete_messages
82 37 - :manage_boards
83 38 - :view_files
84 39 - :manage_files
85 40 - :browse_repository
86 41 - :view_changesets
87 42
88 position: 2
43 position: 1
89 44 roles_002:
90 45 name: Developer
91 46 id: 2
92 47 builtin: 0
93 48 permissions: |
94 49 ---
95 50 - :edit_project
96 51 - :manage_members
97 52 - :manage_versions
98 53 - :manage_categories
99 54 - :add_issues
100 55 - :edit_issues
101 56 - :manage_issue_relations
102 57 - :add_issue_notes
103 58 - :move_issues
104 59 - :delete_issues
105 60 - :manage_public_queries
106 61 - :save_queries
107 62 - :view_gantt
108 63 - :view_calendar
109 64 - :log_time
110 65 - :view_time_entries
111 66 - :edit_own_time_entries
112 67 - :manage_news
113 68 - :comment_news
114 69 - :view_documents
115 70 - :manage_documents
116 71 - :view_wiki_pages
117 72 - :edit_wiki_pages
118 73 - :delete_wiki_pages
119 74 - :add_messages
120 75 - :manage_boards
121 76 - :view_files
122 77 - :manage_files
123 78 - :browse_repository
124 79 - :view_changesets
125 80
126 position: 3
81 position: 2
127 82 roles_003:
128 83 name: Reporter
129 84 id: 3
130 85 builtin: 0
131 86 permissions: |
132 87 ---
133 88 - :edit_project
134 89 - :manage_members
135 90 - :manage_versions
136 91 - :manage_categories
137 92 - :add_issues
138 93 - :edit_issues
139 94 - :manage_issue_relations
140 95 - :add_issue_notes
141 96 - :move_issues
142 - :delete_issues
143 97 - :manage_public_queries
144 98 - :save_queries
145 99 - :view_gantt
146 100 - :view_calendar
147 101 - :log_time
148 102 - :view_time_entries
149 103 - :manage_news
150 104 - :comment_news
151 105 - :view_documents
152 106 - :manage_documents
153 107 - :view_wiki_pages
154 108 - :edit_wiki_pages
155 109 - :delete_wiki_pages
156 110 - :add_messages
157 111 - :manage_boards
158 112 - :view_files
159 113 - :manage_files
160 114 - :browse_repository
161 115 - :view_changesets
162 116
117 position: 3
118 roles_004:
119 name: Non member
120 id: 4
121 builtin: 1
122 permissions: |
123 ---
124 - :add_issues
125 - :edit_issues
126 - :manage_issue_relations
127 - :add_issue_notes
128 - :move_issues
129 - :save_queries
130 - :view_gantt
131 - :view_calendar
132 - :log_time
133 - :view_time_entries
134 - :comment_news
135 - :view_documents
136 - :manage_documents
137 - :view_wiki_pages
138 - :edit_wiki_pages
139 - :add_messages
140 - :view_files
141 - :manage_files
142 - :browse_repository
143 - :view_changesets
144
163 145 position: 4
146 roles_005:
147 name: Anonymous
148 id: 5
149 builtin: 2
150 permissions: |
151 ---
152 - :add_issue_notes
153 - :view_gantt
154 - :view_calendar
155 - :view_time_entries
156 - :view_documents
157 - :view_wiki_pages
158 - :view_files
159 - :browse_repository
160 - :view_changesets
161
162 position: 5
163 No newline at end of file
@@ -1,1621 +1,1615
1 1 ---
2 2 workflows_189:
3 3 new_status_id: 5
4 4 role_id: 1
5 5 old_status_id: 2
6 6 id: 189
7 7 tracker_id: 3
8 8 workflows_001:
9 9 new_status_id: 2
10 10 role_id: 1
11 11 old_status_id: 1
12 12 id: 1
13 13 tracker_id: 1
14 14 workflows_002:
15 15 new_status_id: 3
16 16 role_id: 1
17 17 old_status_id: 1
18 18 id: 2
19 19 tracker_id: 1
20 20 workflows_003:
21 21 new_status_id: 4
22 22 role_id: 1
23 23 old_status_id: 1
24 24 id: 3
25 25 tracker_id: 1
26 26 workflows_110:
27 27 new_status_id: 6
28 28 role_id: 1
29 29 old_status_id: 4
30 30 id: 110
31 31 tracker_id: 2
32 32 workflows_004:
33 33 new_status_id: 5
34 34 role_id: 1
35 35 old_status_id: 1
36 36 id: 4
37 37 tracker_id: 1
38 38 workflows_030:
39 39 new_status_id: 5
40 40 role_id: 1
41 41 old_status_id: 6
42 42 id: 30
43 43 tracker_id: 1
44 44 workflows_111:
45 45 new_status_id: 1
46 46 role_id: 1
47 47 old_status_id: 5
48 48 id: 111
49 49 tracker_id: 2
50 50 workflows_005:
51 51 new_status_id: 6
52 52 role_id: 1
53 53 old_status_id: 1
54 54 id: 5
55 55 tracker_id: 1
56 56 workflows_031:
57 57 new_status_id: 2
58 58 role_id: 2
59 59 old_status_id: 1
60 60 id: 31
61 61 tracker_id: 1
62 62 workflows_112:
63 63 new_status_id: 2
64 64 role_id: 1
65 65 old_status_id: 5
66 66 id: 112
67 67 tracker_id: 2
68 68 workflows_006:
69 69 new_status_id: 1
70 70 role_id: 1
71 71 old_status_id: 2
72 72 id: 6
73 73 tracker_id: 1
74 74 workflows_032:
75 75 new_status_id: 3
76 76 role_id: 2
77 77 old_status_id: 1
78 78 id: 32
79 79 tracker_id: 1
80 80 workflows_113:
81 81 new_status_id: 3
82 82 role_id: 1
83 83 old_status_id: 5
84 84 id: 113
85 85 tracker_id: 2
86 86 workflows_220:
87 87 new_status_id: 6
88 88 role_id: 2
89 89 old_status_id: 2
90 90 id: 220
91 91 tracker_id: 3
92 92 workflows_007:
93 93 new_status_id: 3
94 94 role_id: 1
95 95 old_status_id: 2
96 96 id: 7
97 97 tracker_id: 1
98 98 workflows_033:
99 99 new_status_id: 4
100 100 role_id: 2
101 101 old_status_id: 1
102 102 id: 33
103 103 tracker_id: 1
104 104 workflows_060:
105 105 new_status_id: 5
106 106 role_id: 2
107 107 old_status_id: 6
108 108 id: 60
109 109 tracker_id: 1
110 110 workflows_114:
111 111 new_status_id: 4
112 112 role_id: 1
113 113 old_status_id: 5
114 114 id: 114
115 115 tracker_id: 2
116 116 workflows_140:
117 117 new_status_id: 6
118 118 role_id: 2
119 119 old_status_id: 4
120 120 id: 140
121 121 tracker_id: 2
122 122 workflows_221:
123 123 new_status_id: 1
124 124 role_id: 2
125 125 old_status_id: 3
126 126 id: 221
127 127 tracker_id: 3
128 128 workflows_008:
129 129 new_status_id: 4
130 130 role_id: 1
131 131 old_status_id: 2
132 132 id: 8
133 133 tracker_id: 1
134 134 workflows_034:
135 135 new_status_id: 5
136 136 role_id: 2
137 137 old_status_id: 1
138 138 id: 34
139 139 tracker_id: 1
140 140 workflows_115:
141 141 new_status_id: 6
142 142 role_id: 1
143 143 old_status_id: 5
144 144 id: 115
145 145 tracker_id: 2
146 146 workflows_141:
147 147 new_status_id: 1
148 148 role_id: 2
149 149 old_status_id: 5
150 150 id: 141
151 151 tracker_id: 2
152 152 workflows_222:
153 153 new_status_id: 2
154 154 role_id: 2
155 155 old_status_id: 3
156 156 id: 222
157 157 tracker_id: 3
158 158 workflows_223:
159 159 new_status_id: 4
160 160 role_id: 2
161 161 old_status_id: 3
162 162 id: 223
163 163 tracker_id: 3
164 164 workflows_009:
165 165 new_status_id: 5
166 166 role_id: 1
167 167 old_status_id: 2
168 168 id: 9
169 169 tracker_id: 1
170 170 workflows_035:
171 171 new_status_id: 6
172 172 role_id: 2
173 173 old_status_id: 1
174 174 id: 35
175 175 tracker_id: 1
176 176 workflows_061:
177 177 new_status_id: 2
178 178 role_id: 3
179 179 old_status_id: 1
180 180 id: 61
181 181 tracker_id: 1
182 182 workflows_116:
183 183 new_status_id: 1
184 184 role_id: 1
185 185 old_status_id: 6
186 186 id: 116
187 187 tracker_id: 2
188 188 workflows_142:
189 189 new_status_id: 2
190 190 role_id: 2
191 191 old_status_id: 5
192 192 id: 142
193 193 tracker_id: 2
194 194 workflows_250:
195 195 new_status_id: 6
196 196 role_id: 3
197 197 old_status_id: 2
198 198 id: 250
199 199 tracker_id: 3
200 200 workflows_224:
201 201 new_status_id: 5
202 202 role_id: 2
203 203 old_status_id: 3
204 204 id: 224
205 205 tracker_id: 3
206 206 workflows_036:
207 207 new_status_id: 1
208 208 role_id: 2
209 209 old_status_id: 2
210 210 id: 36
211 211 tracker_id: 1
212 212 workflows_062:
213 213 new_status_id: 3
214 214 role_id: 3
215 215 old_status_id: 1
216 216 id: 62
217 217 tracker_id: 1
218 218 workflows_117:
219 219 new_status_id: 2
220 220 role_id: 1
221 221 old_status_id: 6
222 222 id: 117
223 223 tracker_id: 2
224 224 workflows_143:
225 225 new_status_id: 3
226 226 role_id: 2
227 227 old_status_id: 5
228 228 id: 143
229 229 tracker_id: 2
230 230 workflows_170:
231 231 new_status_id: 6
232 232 role_id: 3
233 233 old_status_id: 4
234 234 id: 170
235 235 tracker_id: 2
236 236 workflows_251:
237 237 new_status_id: 1
238 238 role_id: 3
239 239 old_status_id: 3
240 240 id: 251
241 241 tracker_id: 3
242 242 workflows_225:
243 243 new_status_id: 6
244 244 role_id: 2
245 245 old_status_id: 3
246 246 id: 225
247 247 tracker_id: 3
248 workflows_037:
249 new_status_id: 3
250 role_id: 2
251 old_status_id: 2
252 id: 37
253 tracker_id: 1
254 248 workflows_063:
255 249 new_status_id: 4
256 250 role_id: 3
257 251 old_status_id: 1
258 252 id: 63
259 253 tracker_id: 1
260 254 workflows_090:
261 255 new_status_id: 5
262 256 role_id: 3
263 257 old_status_id: 6
264 258 id: 90
265 259 tracker_id: 1
266 260 workflows_118:
267 261 new_status_id: 3
268 262 role_id: 1
269 263 old_status_id: 6
270 264 id: 118
271 265 tracker_id: 2
272 266 workflows_144:
273 267 new_status_id: 4
274 268 role_id: 2
275 269 old_status_id: 5
276 270 id: 144
277 271 tracker_id: 2
278 272 workflows_252:
279 273 new_status_id: 2
280 274 role_id: 3
281 275 old_status_id: 3
282 276 id: 252
283 277 tracker_id: 3
284 278 workflows_226:
285 279 new_status_id: 1
286 280 role_id: 2
287 281 old_status_id: 4
288 282 id: 226
289 283 tracker_id: 3
290 284 workflows_038:
291 285 new_status_id: 4
292 286 role_id: 2
293 287 old_status_id: 2
294 288 id: 38
295 289 tracker_id: 1
296 290 workflows_064:
297 291 new_status_id: 5
298 292 role_id: 3
299 293 old_status_id: 1
300 294 id: 64
301 295 tracker_id: 1
302 296 workflows_091:
303 297 new_status_id: 2
304 298 role_id: 1
305 299 old_status_id: 1
306 300 id: 91
307 301 tracker_id: 2
308 302 workflows_119:
309 303 new_status_id: 4
310 304 role_id: 1
311 305 old_status_id: 6
312 306 id: 119
313 307 tracker_id: 2
314 308 workflows_145:
315 309 new_status_id: 6
316 310 role_id: 2
317 311 old_status_id: 5
318 312 id: 145
319 313 tracker_id: 2
320 314 workflows_171:
321 315 new_status_id: 1
322 316 role_id: 3
323 317 old_status_id: 5
324 318 id: 171
325 319 tracker_id: 2
326 320 workflows_253:
327 321 new_status_id: 4
328 322 role_id: 3
329 323 old_status_id: 3
330 324 id: 253
331 325 tracker_id: 3
332 326 workflows_227:
333 327 new_status_id: 2
334 328 role_id: 2
335 329 old_status_id: 4
336 330 id: 227
337 331 tracker_id: 3
338 332 workflows_039:
339 333 new_status_id: 5
340 334 role_id: 2
341 335 old_status_id: 2
342 336 id: 39
343 337 tracker_id: 1
344 338 workflows_065:
345 339 new_status_id: 6
346 340 role_id: 3
347 341 old_status_id: 1
348 342 id: 65
349 343 tracker_id: 1
350 344 workflows_092:
351 345 new_status_id: 3
352 346 role_id: 1
353 347 old_status_id: 1
354 348 id: 92
355 349 tracker_id: 2
356 350 workflows_146:
357 351 new_status_id: 1
358 352 role_id: 2
359 353 old_status_id: 6
360 354 id: 146
361 355 tracker_id: 2
362 356 workflows_172:
363 357 new_status_id: 2
364 358 role_id: 3
365 359 old_status_id: 5
366 360 id: 172
367 361 tracker_id: 2
368 362 workflows_254:
369 363 new_status_id: 5
370 364 role_id: 3
371 365 old_status_id: 3
372 366 id: 254
373 367 tracker_id: 3
374 368 workflows_228:
375 369 new_status_id: 3
376 370 role_id: 2
377 371 old_status_id: 4
378 372 id: 228
379 373 tracker_id: 3
380 374 workflows_066:
381 375 new_status_id: 1
382 376 role_id: 3
383 377 old_status_id: 2
384 378 id: 66
385 379 tracker_id: 1
386 380 workflows_093:
387 381 new_status_id: 4
388 382 role_id: 1
389 383 old_status_id: 1
390 384 id: 93
391 385 tracker_id: 2
392 386 workflows_147:
393 387 new_status_id: 2
394 388 role_id: 2
395 389 old_status_id: 6
396 390 id: 147
397 391 tracker_id: 2
398 392 workflows_173:
399 393 new_status_id: 3
400 394 role_id: 3
401 395 old_status_id: 5
402 396 id: 173
403 397 tracker_id: 2
404 398 workflows_255:
405 399 new_status_id: 6
406 400 role_id: 3
407 401 old_status_id: 3
408 402 id: 255
409 403 tracker_id: 3
410 404 workflows_229:
411 405 new_status_id: 5
412 406 role_id: 2
413 407 old_status_id: 4
414 408 id: 229
415 409 tracker_id: 3
416 410 workflows_067:
417 411 new_status_id: 3
418 412 role_id: 3
419 413 old_status_id: 2
420 414 id: 67
421 415 tracker_id: 1
422 416 workflows_148:
423 417 new_status_id: 3
424 418 role_id: 2
425 419 old_status_id: 6
426 420 id: 148
427 421 tracker_id: 2
428 422 workflows_174:
429 423 new_status_id: 4
430 424 role_id: 3
431 425 old_status_id: 5
432 426 id: 174
433 427 tracker_id: 2
434 428 workflows_256:
435 429 new_status_id: 1
436 430 role_id: 3
437 431 old_status_id: 4
438 432 id: 256
439 433 tracker_id: 3
440 434 workflows_068:
441 435 new_status_id: 4
442 436 role_id: 3
443 437 old_status_id: 2
444 438 id: 68
445 439 tracker_id: 1
446 440 workflows_094:
447 441 new_status_id: 5
448 442 role_id: 1
449 443 old_status_id: 1
450 444 id: 94
451 445 tracker_id: 2
452 446 workflows_149:
453 447 new_status_id: 4
454 448 role_id: 2
455 449 old_status_id: 6
456 450 id: 149
457 451 tracker_id: 2
458 452 workflows_175:
459 453 new_status_id: 6
460 454 role_id: 3
461 455 old_status_id: 5
462 456 id: 175
463 457 tracker_id: 2
464 458 workflows_257:
465 459 new_status_id: 2
466 460 role_id: 3
467 461 old_status_id: 4
468 462 id: 257
469 463 tracker_id: 3
470 464 workflows_069:
471 465 new_status_id: 5
472 466 role_id: 3
473 467 old_status_id: 2
474 468 id: 69
475 469 tracker_id: 1
476 470 workflows_095:
477 471 new_status_id: 6
478 472 role_id: 1
479 473 old_status_id: 1
480 474 id: 95
481 475 tracker_id: 2
482 476 workflows_176:
483 477 new_status_id: 1
484 478 role_id: 3
485 479 old_status_id: 6
486 480 id: 176
487 481 tracker_id: 2
488 482 workflows_258:
489 483 new_status_id: 3
490 484 role_id: 3
491 485 old_status_id: 4
492 486 id: 258
493 487 tracker_id: 3
494 488 workflows_096:
495 489 new_status_id: 1
496 490 role_id: 1
497 491 old_status_id: 2
498 492 id: 96
499 493 tracker_id: 2
500 494 workflows_177:
501 495 new_status_id: 2
502 496 role_id: 3
503 497 old_status_id: 6
504 498 id: 177
505 499 tracker_id: 2
506 500 workflows_259:
507 501 new_status_id: 5
508 502 role_id: 3
509 503 old_status_id: 4
510 504 id: 259
511 505 tracker_id: 3
512 506 workflows_097:
513 507 new_status_id: 3
514 508 role_id: 1
515 509 old_status_id: 2
516 510 id: 97
517 511 tracker_id: 2
518 512 workflows_178:
519 513 new_status_id: 3
520 514 role_id: 3
521 515 old_status_id: 6
522 516 id: 178
523 517 tracker_id: 2
524 518 workflows_098:
525 519 new_status_id: 4
526 520 role_id: 1
527 521 old_status_id: 2
528 522 id: 98
529 523 tracker_id: 2
530 524 workflows_179:
531 525 new_status_id: 4
532 526 role_id: 3
533 527 old_status_id: 6
534 528 id: 179
535 529 tracker_id: 2
536 530 workflows_099:
537 531 new_status_id: 5
538 532 role_id: 1
539 533 old_status_id: 2
540 534 id: 99
541 535 tracker_id: 2
542 536 workflows_100:
543 537 new_status_id: 6
544 538 role_id: 1
545 539 old_status_id: 2
546 540 id: 100
547 541 tracker_id: 2
548 542 workflows_020:
549 543 new_status_id: 6
550 544 role_id: 1
551 545 old_status_id: 4
552 546 id: 20
553 547 tracker_id: 1
554 548 workflows_101:
555 549 new_status_id: 1
556 550 role_id: 1
557 551 old_status_id: 3
558 552 id: 101
559 553 tracker_id: 2
560 554 workflows_021:
561 555 new_status_id: 1
562 556 role_id: 1
563 557 old_status_id: 5
564 558 id: 21
565 559 tracker_id: 1
566 560 workflows_102:
567 561 new_status_id: 2
568 562 role_id: 1
569 563 old_status_id: 3
570 564 id: 102
571 565 tracker_id: 2
572 566 workflows_210:
573 567 new_status_id: 5
574 568 role_id: 1
575 569 old_status_id: 6
576 570 id: 210
577 571 tracker_id: 3
578 572 workflows_022:
579 573 new_status_id: 2
580 574 role_id: 1
581 575 old_status_id: 5
582 576 id: 22
583 577 tracker_id: 1
584 578 workflows_103:
585 579 new_status_id: 4
586 580 role_id: 1
587 581 old_status_id: 3
588 582 id: 103
589 583 tracker_id: 2
590 584 workflows_023:
591 585 new_status_id: 3
592 586 role_id: 1
593 587 old_status_id: 5
594 588 id: 23
595 589 tracker_id: 1
596 590 workflows_104:
597 591 new_status_id: 5
598 592 role_id: 1
599 593 old_status_id: 3
600 594 id: 104
601 595 tracker_id: 2
602 596 workflows_130:
603 597 new_status_id: 6
604 598 role_id: 2
605 599 old_status_id: 2
606 600 id: 130
607 601 tracker_id: 2
608 602 workflows_211:
609 603 new_status_id: 2
610 604 role_id: 2
611 605 old_status_id: 1
612 606 id: 211
613 607 tracker_id: 3
614 608 workflows_024:
615 609 new_status_id: 4
616 610 role_id: 1
617 611 old_status_id: 5
618 612 id: 24
619 613 tracker_id: 1
620 614 workflows_050:
621 615 new_status_id: 6
622 616 role_id: 2
623 617 old_status_id: 4
624 618 id: 50
625 619 tracker_id: 1
626 620 workflows_105:
627 621 new_status_id: 6
628 622 role_id: 1
629 623 old_status_id: 3
630 624 id: 105
631 625 tracker_id: 2
632 626 workflows_131:
633 627 new_status_id: 1
634 628 role_id: 2
635 629 old_status_id: 3
636 630 id: 131
637 631 tracker_id: 2
638 632 workflows_212:
639 633 new_status_id: 3
640 634 role_id: 2
641 635 old_status_id: 1
642 636 id: 212
643 637 tracker_id: 3
644 638 workflows_025:
645 639 new_status_id: 6
646 640 role_id: 1
647 641 old_status_id: 5
648 642 id: 25
649 643 tracker_id: 1
650 644 workflows_051:
651 645 new_status_id: 1
652 646 role_id: 2
653 647 old_status_id: 5
654 648 id: 51
655 649 tracker_id: 1
656 650 workflows_106:
657 651 new_status_id: 1
658 652 role_id: 1
659 653 old_status_id: 4
660 654 id: 106
661 655 tracker_id: 2
662 656 workflows_132:
663 657 new_status_id: 2
664 658 role_id: 2
665 659 old_status_id: 3
666 660 id: 132
667 661 tracker_id: 2
668 662 workflows_213:
669 663 new_status_id: 4
670 664 role_id: 2
671 665 old_status_id: 1
672 666 id: 213
673 667 tracker_id: 3
674 668 workflows_240:
675 669 new_status_id: 5
676 670 role_id: 2
677 671 old_status_id: 6
678 672 id: 240
679 673 tracker_id: 3
680 674 workflows_026:
681 675 new_status_id: 1
682 676 role_id: 1
683 677 old_status_id: 6
684 678 id: 26
685 679 tracker_id: 1
686 680 workflows_052:
687 681 new_status_id: 2
688 682 role_id: 2
689 683 old_status_id: 5
690 684 id: 52
691 685 tracker_id: 1
692 686 workflows_107:
693 687 new_status_id: 2
694 688 role_id: 1
695 689 old_status_id: 4
696 690 id: 107
697 691 tracker_id: 2
698 692 workflows_133:
699 693 new_status_id: 4
700 694 role_id: 2
701 695 old_status_id: 3
702 696 id: 133
703 697 tracker_id: 2
704 698 workflows_214:
705 699 new_status_id: 5
706 700 role_id: 2
707 701 old_status_id: 1
708 702 id: 214
709 703 tracker_id: 3
710 704 workflows_241:
711 705 new_status_id: 2
712 706 role_id: 3
713 707 old_status_id: 1
714 708 id: 241
715 709 tracker_id: 3
716 710 workflows_027:
717 711 new_status_id: 2
718 712 role_id: 1
719 713 old_status_id: 6
720 714 id: 27
721 715 tracker_id: 1
722 716 workflows_053:
723 717 new_status_id: 3
724 718 role_id: 2
725 719 old_status_id: 5
726 720 id: 53
727 721 tracker_id: 1
728 722 workflows_080:
729 723 new_status_id: 6
730 724 role_id: 3
731 725 old_status_id: 4
732 726 id: 80
733 727 tracker_id: 1
734 728 workflows_108:
735 729 new_status_id: 3
736 730 role_id: 1
737 731 old_status_id: 4
738 732 id: 108
739 733 tracker_id: 2
740 734 workflows_134:
741 735 new_status_id: 5
742 736 role_id: 2
743 737 old_status_id: 3
744 738 id: 134
745 739 tracker_id: 2
746 740 workflows_160:
747 741 new_status_id: 6
748 742 role_id: 3
749 743 old_status_id: 2
750 744 id: 160
751 745 tracker_id: 2
752 746 workflows_215:
753 747 new_status_id: 6
754 748 role_id: 2
755 749 old_status_id: 1
756 750 id: 215
757 751 tracker_id: 3
758 752 workflows_242:
759 753 new_status_id: 3
760 754 role_id: 3
761 755 old_status_id: 1
762 756 id: 242
763 757 tracker_id: 3
764 758 workflows_028:
765 759 new_status_id: 3
766 760 role_id: 1
767 761 old_status_id: 6
768 762 id: 28
769 763 tracker_id: 1
770 764 workflows_054:
771 765 new_status_id: 4
772 766 role_id: 2
773 767 old_status_id: 5
774 768 id: 54
775 769 tracker_id: 1
776 770 workflows_081:
777 771 new_status_id: 1
778 772 role_id: 3
779 773 old_status_id: 5
780 774 id: 81
781 775 tracker_id: 1
782 776 workflows_109:
783 777 new_status_id: 5
784 778 role_id: 1
785 779 old_status_id: 4
786 780 id: 109
787 781 tracker_id: 2
788 782 workflows_135:
789 783 new_status_id: 6
790 784 role_id: 2
791 785 old_status_id: 3
792 786 id: 135
793 787 tracker_id: 2
794 788 workflows_161:
795 789 new_status_id: 1
796 790 role_id: 3
797 791 old_status_id: 3
798 792 id: 161
799 793 tracker_id: 2
800 794 workflows_216:
801 795 new_status_id: 1
802 796 role_id: 2
803 797 old_status_id: 2
804 798 id: 216
805 799 tracker_id: 3
806 800 workflows_243:
807 801 new_status_id: 4
808 802 role_id: 3
809 803 old_status_id: 1
810 804 id: 243
811 805 tracker_id: 3
812 806 workflows_029:
813 807 new_status_id: 4
814 808 role_id: 1
815 809 old_status_id: 6
816 810 id: 29
817 811 tracker_id: 1
818 812 workflows_055:
819 813 new_status_id: 6
820 814 role_id: 2
821 815 old_status_id: 5
822 816 id: 55
823 817 tracker_id: 1
824 818 workflows_082:
825 819 new_status_id: 2
826 820 role_id: 3
827 821 old_status_id: 5
828 822 id: 82
829 823 tracker_id: 1
830 824 workflows_136:
831 825 new_status_id: 1
832 826 role_id: 2
833 827 old_status_id: 4
834 828 id: 136
835 829 tracker_id: 2
836 830 workflows_162:
837 831 new_status_id: 2
838 832 role_id: 3
839 833 old_status_id: 3
840 834 id: 162
841 835 tracker_id: 2
842 836 workflows_217:
843 837 new_status_id: 3
844 838 role_id: 2
845 839 old_status_id: 2
846 840 id: 217
847 841 tracker_id: 3
848 842 workflows_270:
849 843 new_status_id: 5
850 844 role_id: 3
851 845 old_status_id: 6
852 846 id: 270
853 847 tracker_id: 3
854 848 workflows_244:
855 849 new_status_id: 5
856 850 role_id: 3
857 851 old_status_id: 1
858 852 id: 244
859 853 tracker_id: 3
860 854 workflows_056:
861 855 new_status_id: 1
862 856 role_id: 2
863 857 old_status_id: 6
864 858 id: 56
865 859 tracker_id: 1
866 860 workflows_137:
867 861 new_status_id: 2
868 862 role_id: 2
869 863 old_status_id: 4
870 864 id: 137
871 865 tracker_id: 2
872 866 workflows_163:
873 867 new_status_id: 4
874 868 role_id: 3
875 869 old_status_id: 3
876 870 id: 163
877 871 tracker_id: 2
878 872 workflows_190:
879 873 new_status_id: 6
880 874 role_id: 1
881 875 old_status_id: 2
882 876 id: 190
883 877 tracker_id: 3
884 878 workflows_218:
885 879 new_status_id: 4
886 880 role_id: 2
887 881 old_status_id: 2
888 882 id: 218
889 883 tracker_id: 3
890 884 workflows_245:
891 885 new_status_id: 6
892 886 role_id: 3
893 887 old_status_id: 1
894 888 id: 245
895 889 tracker_id: 3
896 890 workflows_057:
897 891 new_status_id: 2
898 892 role_id: 2
899 893 old_status_id: 6
900 894 id: 57
901 895 tracker_id: 1
902 896 workflows_083:
903 897 new_status_id: 3
904 898 role_id: 3
905 899 old_status_id: 5
906 900 id: 83
907 901 tracker_id: 1
908 902 workflows_138:
909 903 new_status_id: 3
910 904 role_id: 2
911 905 old_status_id: 4
912 906 id: 138
913 907 tracker_id: 2
914 908 workflows_164:
915 909 new_status_id: 5
916 910 role_id: 3
917 911 old_status_id: 3
918 912 id: 164
919 913 tracker_id: 2
920 914 workflows_191:
921 915 new_status_id: 1
922 916 role_id: 1
923 917 old_status_id: 3
924 918 id: 191
925 919 tracker_id: 3
926 920 workflows_219:
927 921 new_status_id: 5
928 922 role_id: 2
929 923 old_status_id: 2
930 924 id: 219
931 925 tracker_id: 3
932 926 workflows_246:
933 927 new_status_id: 1
934 928 role_id: 3
935 929 old_status_id: 2
936 930 id: 246
937 931 tracker_id: 3
938 932 workflows_058:
939 933 new_status_id: 3
940 934 role_id: 2
941 935 old_status_id: 6
942 936 id: 58
943 937 tracker_id: 1
944 938 workflows_084:
945 939 new_status_id: 4
946 940 role_id: 3
947 941 old_status_id: 5
948 942 id: 84
949 943 tracker_id: 1
950 944 workflows_139:
951 945 new_status_id: 5
952 946 role_id: 2
953 947 old_status_id: 4
954 948 id: 139
955 949 tracker_id: 2
956 950 workflows_165:
957 951 new_status_id: 6
958 952 role_id: 3
959 953 old_status_id: 3
960 954 id: 165
961 955 tracker_id: 2
962 956 workflows_192:
963 957 new_status_id: 2
964 958 role_id: 1
965 959 old_status_id: 3
966 960 id: 192
967 961 tracker_id: 3
968 962 workflows_247:
969 963 new_status_id: 3
970 964 role_id: 3
971 965 old_status_id: 2
972 966 id: 247
973 967 tracker_id: 3
974 968 workflows_059:
975 969 new_status_id: 4
976 970 role_id: 2
977 971 old_status_id: 6
978 972 id: 59
979 973 tracker_id: 1
980 974 workflows_085:
981 975 new_status_id: 6
982 976 role_id: 3
983 977 old_status_id: 5
984 978 id: 85
985 979 tracker_id: 1
986 980 workflows_166:
987 981 new_status_id: 1
988 982 role_id: 3
989 983 old_status_id: 4
990 984 id: 166
991 985 tracker_id: 2
992 986 workflows_248:
993 987 new_status_id: 4
994 988 role_id: 3
995 989 old_status_id: 2
996 990 id: 248
997 991 tracker_id: 3
998 992 workflows_086:
999 993 new_status_id: 1
1000 994 role_id: 3
1001 995 old_status_id: 6
1002 996 id: 86
1003 997 tracker_id: 1
1004 998 workflows_167:
1005 999 new_status_id: 2
1006 1000 role_id: 3
1007 1001 old_status_id: 4
1008 1002 id: 167
1009 1003 tracker_id: 2
1010 1004 workflows_193:
1011 1005 new_status_id: 4
1012 1006 role_id: 1
1013 1007 old_status_id: 3
1014 1008 id: 193
1015 1009 tracker_id: 3
1016 1010 workflows_249:
1017 1011 new_status_id: 5
1018 1012 role_id: 3
1019 1013 old_status_id: 2
1020 1014 id: 249
1021 1015 tracker_id: 3
1022 1016 workflows_087:
1023 1017 new_status_id: 2
1024 1018 role_id: 3
1025 1019 old_status_id: 6
1026 1020 id: 87
1027 1021 tracker_id: 1
1028 1022 workflows_168:
1029 1023 new_status_id: 3
1030 1024 role_id: 3
1031 1025 old_status_id: 4
1032 1026 id: 168
1033 1027 tracker_id: 2
1034 1028 workflows_194:
1035 1029 new_status_id: 5
1036 1030 role_id: 1
1037 1031 old_status_id: 3
1038 1032 id: 194
1039 1033 tracker_id: 3
1040 1034 workflows_088:
1041 1035 new_status_id: 3
1042 1036 role_id: 3
1043 1037 old_status_id: 6
1044 1038 id: 88
1045 1039 tracker_id: 1
1046 1040 workflows_169:
1047 1041 new_status_id: 5
1048 1042 role_id: 3
1049 1043 old_status_id: 4
1050 1044 id: 169
1051 1045 tracker_id: 2
1052 1046 workflows_195:
1053 1047 new_status_id: 6
1054 1048 role_id: 1
1055 1049 old_status_id: 3
1056 1050 id: 195
1057 1051 tracker_id: 3
1058 1052 workflows_089:
1059 1053 new_status_id: 4
1060 1054 role_id: 3
1061 1055 old_status_id: 6
1062 1056 id: 89
1063 1057 tracker_id: 1
1064 1058 workflows_196:
1065 1059 new_status_id: 1
1066 1060 role_id: 1
1067 1061 old_status_id: 4
1068 1062 id: 196
1069 1063 tracker_id: 3
1070 1064 workflows_197:
1071 1065 new_status_id: 2
1072 1066 role_id: 1
1073 1067 old_status_id: 4
1074 1068 id: 197
1075 1069 tracker_id: 3
1076 1070 workflows_198:
1077 1071 new_status_id: 3
1078 1072 role_id: 1
1079 1073 old_status_id: 4
1080 1074 id: 198
1081 1075 tracker_id: 3
1082 1076 workflows_199:
1083 1077 new_status_id: 5
1084 1078 role_id: 1
1085 1079 old_status_id: 4
1086 1080 id: 199
1087 1081 tracker_id: 3
1088 1082 workflows_010:
1089 1083 new_status_id: 6
1090 1084 role_id: 1
1091 1085 old_status_id: 2
1092 1086 id: 10
1093 1087 tracker_id: 1
1094 1088 workflows_011:
1095 1089 new_status_id: 1
1096 1090 role_id: 1
1097 1091 old_status_id: 3
1098 1092 id: 11
1099 1093 tracker_id: 1
1100 1094 workflows_012:
1101 1095 new_status_id: 2
1102 1096 role_id: 1
1103 1097 old_status_id: 3
1104 1098 id: 12
1105 1099 tracker_id: 1
1106 1100 workflows_200:
1107 1101 new_status_id: 6
1108 1102 role_id: 1
1109 1103 old_status_id: 4
1110 1104 id: 200
1111 1105 tracker_id: 3
1112 1106 workflows_013:
1113 1107 new_status_id: 4
1114 1108 role_id: 1
1115 1109 old_status_id: 3
1116 1110 id: 13
1117 1111 tracker_id: 1
1118 1112 workflows_120:
1119 1113 new_status_id: 5
1120 1114 role_id: 1
1121 1115 old_status_id: 6
1122 1116 id: 120
1123 1117 tracker_id: 2
1124 1118 workflows_201:
1125 1119 new_status_id: 1
1126 1120 role_id: 1
1127 1121 old_status_id: 5
1128 1122 id: 201
1129 1123 tracker_id: 3
1130 1124 workflows_040:
1131 1125 new_status_id: 6
1132 1126 role_id: 2
1133 1127 old_status_id: 2
1134 1128 id: 40
1135 1129 tracker_id: 1
1136 1130 workflows_121:
1137 1131 new_status_id: 2
1138 1132 role_id: 2
1139 1133 old_status_id: 1
1140 1134 id: 121
1141 1135 tracker_id: 2
1142 1136 workflows_202:
1143 1137 new_status_id: 2
1144 1138 role_id: 1
1145 1139 old_status_id: 5
1146 1140 id: 202
1147 1141 tracker_id: 3
1148 1142 workflows_014:
1149 1143 new_status_id: 5
1150 1144 role_id: 1
1151 1145 old_status_id: 3
1152 1146 id: 14
1153 1147 tracker_id: 1
1154 1148 workflows_041:
1155 1149 new_status_id: 1
1156 1150 role_id: 2
1157 1151 old_status_id: 3
1158 1152 id: 41
1159 1153 tracker_id: 1
1160 1154 workflows_122:
1161 1155 new_status_id: 3
1162 1156 role_id: 2
1163 1157 old_status_id: 1
1164 1158 id: 122
1165 1159 tracker_id: 2
1166 1160 workflows_203:
1167 1161 new_status_id: 3
1168 1162 role_id: 1
1169 1163 old_status_id: 5
1170 1164 id: 203
1171 1165 tracker_id: 3
1172 1166 workflows_015:
1173 1167 new_status_id: 6
1174 1168 role_id: 1
1175 1169 old_status_id: 3
1176 1170 id: 15
1177 1171 tracker_id: 1
1178 1172 workflows_230:
1179 1173 new_status_id: 6
1180 1174 role_id: 2
1181 1175 old_status_id: 4
1182 1176 id: 230
1183 1177 tracker_id: 3
1184 1178 workflows_123:
1185 1179 new_status_id: 4
1186 1180 role_id: 2
1187 1181 old_status_id: 1
1188 1182 id: 123
1189 1183 tracker_id: 2
1190 1184 workflows_204:
1191 1185 new_status_id: 4
1192 1186 role_id: 1
1193 1187 old_status_id: 5
1194 1188 id: 204
1195 1189 tracker_id: 3
1196 1190 workflows_016:
1197 1191 new_status_id: 1
1198 1192 role_id: 1
1199 1193 old_status_id: 4
1200 1194 id: 16
1201 1195 tracker_id: 1
1202 1196 workflows_042:
1203 1197 new_status_id: 2
1204 1198 role_id: 2
1205 1199 old_status_id: 3
1206 1200 id: 42
1207 1201 tracker_id: 1
1208 1202 workflows_231:
1209 1203 new_status_id: 1
1210 1204 role_id: 2
1211 1205 old_status_id: 5
1212 1206 id: 231
1213 1207 tracker_id: 3
1214 1208 workflows_070:
1215 1209 new_status_id: 6
1216 1210 role_id: 3
1217 1211 old_status_id: 2
1218 1212 id: 70
1219 1213 tracker_id: 1
1220 1214 workflows_124:
1221 1215 new_status_id: 5
1222 1216 role_id: 2
1223 1217 old_status_id: 1
1224 1218 id: 124
1225 1219 tracker_id: 2
1226 1220 workflows_150:
1227 1221 new_status_id: 5
1228 1222 role_id: 2
1229 1223 old_status_id: 6
1230 1224 id: 150
1231 1225 tracker_id: 2
1232 1226 workflows_205:
1233 1227 new_status_id: 6
1234 1228 role_id: 1
1235 1229 old_status_id: 5
1236 1230 id: 205
1237 1231 tracker_id: 3
1238 1232 workflows_017:
1239 1233 new_status_id: 2
1240 1234 role_id: 1
1241 1235 old_status_id: 4
1242 1236 id: 17
1243 1237 tracker_id: 1
1244 1238 workflows_043:
1245 1239 new_status_id: 4
1246 1240 role_id: 2
1247 1241 old_status_id: 3
1248 1242 id: 43
1249 1243 tracker_id: 1
1250 1244 workflows_232:
1251 1245 new_status_id: 2
1252 1246 role_id: 2
1253 1247 old_status_id: 5
1254 1248 id: 232
1255 1249 tracker_id: 3
1256 1250 workflows_125:
1257 1251 new_status_id: 6
1258 1252 role_id: 2
1259 1253 old_status_id: 1
1260 1254 id: 125
1261 1255 tracker_id: 2
1262 1256 workflows_151:
1263 1257 new_status_id: 2
1264 1258 role_id: 3
1265 1259 old_status_id: 1
1266 1260 id: 151
1267 1261 tracker_id: 2
1268 1262 workflows_206:
1269 1263 new_status_id: 1
1270 1264 role_id: 1
1271 1265 old_status_id: 6
1272 1266 id: 206
1273 1267 tracker_id: 3
1274 1268 workflows_018:
1275 1269 new_status_id: 3
1276 1270 role_id: 1
1277 1271 old_status_id: 4
1278 1272 id: 18
1279 1273 tracker_id: 1
1280 1274 workflows_044:
1281 1275 new_status_id: 5
1282 1276 role_id: 2
1283 1277 old_status_id: 3
1284 1278 id: 44
1285 1279 tracker_id: 1
1286 1280 workflows_071:
1287 1281 new_status_id: 1
1288 1282 role_id: 3
1289 1283 old_status_id: 3
1290 1284 id: 71
1291 1285 tracker_id: 1
1292 1286 workflows_233:
1293 1287 new_status_id: 3
1294 1288 role_id: 2
1295 1289 old_status_id: 5
1296 1290 id: 233
1297 1291 tracker_id: 3
1298 1292 workflows_126:
1299 1293 new_status_id: 1
1300 1294 role_id: 2
1301 1295 old_status_id: 2
1302 1296 id: 126
1303 1297 tracker_id: 2
1304 1298 workflows_152:
1305 1299 new_status_id: 3
1306 1300 role_id: 3
1307 1301 old_status_id: 1
1308 1302 id: 152
1309 1303 tracker_id: 2
1310 1304 workflows_207:
1311 1305 new_status_id: 2
1312 1306 role_id: 1
1313 1307 old_status_id: 6
1314 1308 id: 207
1315 1309 tracker_id: 3
1316 1310 workflows_019:
1317 1311 new_status_id: 5
1318 1312 role_id: 1
1319 1313 old_status_id: 4
1320 1314 id: 19
1321 1315 tracker_id: 1
1322 1316 workflows_045:
1323 1317 new_status_id: 6
1324 1318 role_id: 2
1325 1319 old_status_id: 3
1326 1320 id: 45
1327 1321 tracker_id: 1
1328 1322 workflows_260:
1329 1323 new_status_id: 6
1330 1324 role_id: 3
1331 1325 old_status_id: 4
1332 1326 id: 260
1333 1327 tracker_id: 3
1334 1328 workflows_234:
1335 1329 new_status_id: 4
1336 1330 role_id: 2
1337 1331 old_status_id: 5
1338 1332 id: 234
1339 1333 tracker_id: 3
1340 1334 workflows_127:
1341 1335 new_status_id: 3
1342 1336 role_id: 2
1343 1337 old_status_id: 2
1344 1338 id: 127
1345 1339 tracker_id: 2
1346 1340 workflows_153:
1347 1341 new_status_id: 4
1348 1342 role_id: 3
1349 1343 old_status_id: 1
1350 1344 id: 153
1351 1345 tracker_id: 2
1352 1346 workflows_180:
1353 1347 new_status_id: 5
1354 1348 role_id: 3
1355 1349 old_status_id: 6
1356 1350 id: 180
1357 1351 tracker_id: 2
1358 1352 workflows_208:
1359 1353 new_status_id: 3
1360 1354 role_id: 1
1361 1355 old_status_id: 6
1362 1356 id: 208
1363 1357 tracker_id: 3
1364 1358 workflows_046:
1365 1359 new_status_id: 1
1366 1360 role_id: 2
1367 1361 old_status_id: 4
1368 1362 id: 46
1369 1363 tracker_id: 1
1370 1364 workflows_072:
1371 1365 new_status_id: 2
1372 1366 role_id: 3
1373 1367 old_status_id: 3
1374 1368 id: 72
1375 1369 tracker_id: 1
1376 1370 workflows_261:
1377 1371 new_status_id: 1
1378 1372 role_id: 3
1379 1373 old_status_id: 5
1380 1374 id: 261
1381 1375 tracker_id: 3
1382 1376 workflows_235:
1383 1377 new_status_id: 6
1384 1378 role_id: 2
1385 1379 old_status_id: 5
1386 1380 id: 235
1387 1381 tracker_id: 3
1388 1382 workflows_154:
1389 1383 new_status_id: 5
1390 1384 role_id: 3
1391 1385 old_status_id: 1
1392 1386 id: 154
1393 1387 tracker_id: 2
1394 1388 workflows_181:
1395 1389 new_status_id: 2
1396 1390 role_id: 1
1397 1391 old_status_id: 1
1398 1392 id: 181
1399 1393 tracker_id: 3
1400 1394 workflows_209:
1401 1395 new_status_id: 4
1402 1396 role_id: 1
1403 1397 old_status_id: 6
1404 1398 id: 209
1405 1399 tracker_id: 3
1406 1400 workflows_047:
1407 1401 new_status_id: 2
1408 1402 role_id: 2
1409 1403 old_status_id: 4
1410 1404 id: 47
1411 1405 tracker_id: 1
1412 1406 workflows_073:
1413 1407 new_status_id: 4
1414 1408 role_id: 3
1415 1409 old_status_id: 3
1416 1410 id: 73
1417 1411 tracker_id: 1
1418 1412 workflows_128:
1419 1413 new_status_id: 4
1420 1414 role_id: 2
1421 1415 old_status_id: 2
1422 1416 id: 128
1423 1417 tracker_id: 2
1424 1418 workflows_262:
1425 1419 new_status_id: 2
1426 1420 role_id: 3
1427 1421 old_status_id: 5
1428 1422 id: 262
1429 1423 tracker_id: 3
1430 1424 workflows_236:
1431 1425 new_status_id: 1
1432 1426 role_id: 2
1433 1427 old_status_id: 6
1434 1428 id: 236
1435 1429 tracker_id: 3
1436 1430 workflows_155:
1437 1431 new_status_id: 6
1438 1432 role_id: 3
1439 1433 old_status_id: 1
1440 1434 id: 155
1441 1435 tracker_id: 2
1442 1436 workflows_048:
1443 1437 new_status_id: 3
1444 1438 role_id: 2
1445 1439 old_status_id: 4
1446 1440 id: 48
1447 1441 tracker_id: 1
1448 1442 workflows_074:
1449 1443 new_status_id: 5
1450 1444 role_id: 3
1451 1445 old_status_id: 3
1452 1446 id: 74
1453 1447 tracker_id: 1
1454 1448 workflows_129:
1455 1449 new_status_id: 5
1456 1450 role_id: 2
1457 1451 old_status_id: 2
1458 1452 id: 129
1459 1453 tracker_id: 2
1460 1454 workflows_263:
1461 1455 new_status_id: 3
1462 1456 role_id: 3
1463 1457 old_status_id: 5
1464 1458 id: 263
1465 1459 tracker_id: 3
1466 1460 workflows_237:
1467 1461 new_status_id: 2
1468 1462 role_id: 2
1469 1463 old_status_id: 6
1470 1464 id: 237
1471 1465 tracker_id: 3
1472 1466 workflows_182:
1473 1467 new_status_id: 3
1474 1468 role_id: 1
1475 1469 old_status_id: 1
1476 1470 id: 182
1477 1471 tracker_id: 3
1478 1472 workflows_049:
1479 1473 new_status_id: 5
1480 1474 role_id: 2
1481 1475 old_status_id: 4
1482 1476 id: 49
1483 1477 tracker_id: 1
1484 1478 workflows_075:
1485 1479 new_status_id: 6
1486 1480 role_id: 3
1487 1481 old_status_id: 3
1488 1482 id: 75
1489 1483 tracker_id: 1
1490 1484 workflows_156:
1491 1485 new_status_id: 1
1492 1486 role_id: 3
1493 1487 old_status_id: 2
1494 1488 id: 156
1495 1489 tracker_id: 2
1496 1490 workflows_264:
1497 1491 new_status_id: 4
1498 1492 role_id: 3
1499 1493 old_status_id: 5
1500 1494 id: 264
1501 1495 tracker_id: 3
1502 1496 workflows_238:
1503 1497 new_status_id: 3
1504 1498 role_id: 2
1505 1499 old_status_id: 6
1506 1500 id: 238
1507 1501 tracker_id: 3
1508 1502 workflows_183:
1509 1503 new_status_id: 4
1510 1504 role_id: 1
1511 1505 old_status_id: 1
1512 1506 id: 183
1513 1507 tracker_id: 3
1514 1508 workflows_076:
1515 1509 new_status_id: 1
1516 1510 role_id: 3
1517 1511 old_status_id: 4
1518 1512 id: 76
1519 1513 tracker_id: 1
1520 1514 workflows_157:
1521 1515 new_status_id: 3
1522 1516 role_id: 3
1523 1517 old_status_id: 2
1524 1518 id: 157
1525 1519 tracker_id: 2
1526 1520 workflows_265:
1527 1521 new_status_id: 6
1528 1522 role_id: 3
1529 1523 old_status_id: 5
1530 1524 id: 265
1531 1525 tracker_id: 3
1532 1526 workflows_239:
1533 1527 new_status_id: 4
1534 1528 role_id: 2
1535 1529 old_status_id: 6
1536 1530 id: 239
1537 1531 tracker_id: 3
1538 1532 workflows_077:
1539 1533 new_status_id: 2
1540 1534 role_id: 3
1541 1535 old_status_id: 4
1542 1536 id: 77
1543 1537 tracker_id: 1
1544 1538 workflows_158:
1545 1539 new_status_id: 4
1546 1540 role_id: 3
1547 1541 old_status_id: 2
1548 1542 id: 158
1549 1543 tracker_id: 2
1550 1544 workflows_184:
1551 1545 new_status_id: 5
1552 1546 role_id: 1
1553 1547 old_status_id: 1
1554 1548 id: 184
1555 1549 tracker_id: 3
1556 1550 workflows_266:
1557 1551 new_status_id: 1
1558 1552 role_id: 3
1559 1553 old_status_id: 6
1560 1554 id: 266
1561 1555 tracker_id: 3
1562 1556 workflows_078:
1563 1557 new_status_id: 3
1564 1558 role_id: 3
1565 1559 old_status_id: 4
1566 1560 id: 78
1567 1561 tracker_id: 1
1568 1562 workflows_159:
1569 1563 new_status_id: 5
1570 1564 role_id: 3
1571 1565 old_status_id: 2
1572 1566 id: 159
1573 1567 tracker_id: 2
1574 1568 workflows_185:
1575 1569 new_status_id: 6
1576 1570 role_id: 1
1577 1571 old_status_id: 1
1578 1572 id: 185
1579 1573 tracker_id: 3
1580 1574 workflows_267:
1581 1575 new_status_id: 2
1582 1576 role_id: 3
1583 1577 old_status_id: 6
1584 1578 id: 267
1585 1579 tracker_id: 3
1586 1580 workflows_079:
1587 1581 new_status_id: 5
1588 1582 role_id: 3
1589 1583 old_status_id: 4
1590 1584 id: 79
1591 1585 tracker_id: 1
1592 1586 workflows_186:
1593 1587 new_status_id: 1
1594 1588 role_id: 1
1595 1589 old_status_id: 2
1596 1590 id: 186
1597 1591 tracker_id: 3
1598 1592 workflows_268:
1599 1593 new_status_id: 3
1600 1594 role_id: 3
1601 1595 old_status_id: 6
1602 1596 id: 268
1603 1597 tracker_id: 3
1604 1598 workflows_187:
1605 1599 new_status_id: 3
1606 1600 role_id: 1
1607 1601 old_status_id: 2
1608 1602 id: 187
1609 1603 tracker_id: 3
1610 1604 workflows_269:
1611 1605 new_status_id: 4
1612 1606 role_id: 3
1613 1607 old_status_id: 6
1614 1608 id: 269
1615 1609 tracker_id: 3
1616 1610 workflows_188:
1617 1611 new_status_id: 4
1618 1612 role_id: 1
1619 1613 old_status_id: 2
1620 1614 id: 188
1621 1615 tracker_id: 3
@@ -1,92 +1,220
1 1 # redMine - project management software
2 2 # Copyright (C) 2006-2007 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 require File.dirname(__FILE__) + '/../test_helper'
19 19 require 'roles_controller'
20 20
21 21 # Re-raise errors caught by the controller.
22 22 class RolesController; def rescue_action(e) raise e end; end
23 23
24 24 class RolesControllerTest < Test::Unit::TestCase
25 25 fixtures :roles, :users, :members, :workflows
26 26
27 27 def setup
28 28 @controller = RolesController.new
29 29 @request = ActionController::TestRequest.new
30 30 @response = ActionController::TestResponse.new
31 31 User.current = nil
32 32 @request.session[:user_id] = 1 # admin
33 33 end
34 34
35 def test_get_index
36 get :index
37 assert_response :success
38 assert_template 'list'
39
40 assert_not_nil assigns(:roles)
41 assert_equal Role.find(:all, :order => 'builtin, position'), assigns(:roles)
42
43 assert_tag :tag => 'a', :attributes => { :href => '/roles/edit/1' },
44 :content => 'Manager'
45 end
46
35 47 def test_get_new
36 48 get :new
37 49 assert_response :success
38 50 assert_template 'new'
39 51 end
40 52
41 53 def test_post_new_with_validaton_failure
42 54 post :new, :role => {:name => '',
43 55 :permissions => ['add_issues', 'edit_issues', 'log_time', ''],
44 56 :assignable => '0'}
45 57
46 58 assert_response :success
47 59 assert_template 'new'
48 60 assert_tag :tag => 'div', :attributes => { :id => 'errorExplanation' }
49 61 end
50 62
51 63 def test_post_new_without_workflow_copy
52 64 post :new, :role => {:name => 'RoleWithoutWorkflowCopy',
53 65 :permissions => ['add_issues', 'edit_issues', 'log_time', ''],
54 66 :assignable => '0'}
55 67
56 68 assert_redirected_to 'roles/list'
57 69 role = Role.find_by_name('RoleWithoutWorkflowCopy')
58 70 assert_not_nil role
59 71 assert_equal [:add_issues, :edit_issues, :log_time], role.permissions
60 72 assert !role.assignable?
61 73 end
62 74
63 75 def test_post_new_with_workflow_copy
64 76 post :new, :role => {:name => 'RoleWithWorkflowCopy',
65 77 :permissions => ['add_issues', 'edit_issues', 'log_time', ''],
66 78 :assignable => '0'},
67 79 :copy_workflow_from => '1'
68 80
69 81 assert_redirected_to 'roles/list'
70 82 role = Role.find_by_name('RoleWithWorkflowCopy')
71 83 assert_not_nil role
72 84 assert_equal Role.find(1).workflows.size, role.workflows.size
73 85 end
74 86
75 87 def test_get_edit
76 88 get :edit, :id => 1
77 89 assert_response :success
78 90 assert_template 'edit'
79 91 assert_equal Role.find(1), assigns(:role)
80 92 end
81 93
82 94 def test_post_edit
83 95 post :edit, :id => 1,
84 96 :role => {:name => 'Manager',
85 97 :permissions => ['edit_project', ''],
86 98 :assignable => '0'}
87 99
88 100 assert_redirected_to 'roles/list'
89 101 role = Role.find(1)
90 102 assert_equal [:edit_project], role.permissions
91 103 end
104
105 def test_destroy
106 r = Role.new(:name => 'ToBeDestroyed', :permissions => [:view_wiki_pages])
107 assert r.save
108
109 post :destroy, :id => r
110 assert_redirected_to 'roles/list'
111 assert_nil Role.find_by_id(r.id)
112 end
113
114 def test_destroy_role_in_use
115 post :destroy, :id => 1
116 assert_redirected_to 'roles'
117 assert flash[:error] == 'This role is in use and can not be deleted.'
118 assert_not_nil Role.find_by_id(1)
119 end
120
121 def test_get_workflow
122 get :workflow
123 assert_response :success
124 assert_template 'workflow'
125 assert_not_nil assigns(:roles)
126 assert_not_nil assigns(:trackers)
127 end
128
129 def test_get_workflow_with_role_and_tracker
130 get :workflow, :role_id => 2, :tracker_id => 1
131 assert_response :success
132 assert_template 'workflow'
133 # allowed transitions
134 assert_tag :tag => 'input', :attributes => { :type => 'checkbox',
135 :name => 'issue_status[2][]',
136 :value => '1',
137 :checked => 'checked' }
138 # not allowed
139 assert_tag :tag => 'input', :attributes => { :type => 'checkbox',
140 :name => 'issue_status[2][]',
141 :value => '3',
142 :checked => nil }
143 end
144
145 def test_post_workflow
146 post :workflow, :role_id => 2, :tracker_id => 1, :issue_status => {'4' => ['5'], '3' => ['1', '2']}
147 assert_redirected_to 'roles/workflow'
148
149 assert_equal 3, Workflow.count(:conditions => {:tracker_id => 1, :role_id => 2})
150 assert_not_nil Workflow.find(:first, :conditions => {:role_id => 2, :tracker_id => 1, :old_status_id => 3, :new_status_id => 2})
151 assert_nil Workflow.find(:first, :conditions => {:role_id => 2, :tracker_id => 1, :old_status_id => 5, :new_status_id => 4})
152 end
153
154 def test_clear_workflow
155 assert Workflow.count(:conditions => {:tracker_id => 1, :role_id => 2}) > 0
156
157 post :workflow, :role_id => 2, :tracker_id => 1
158 assert_equal 0, Workflow.count(:conditions => {:tracker_id => 1, :role_id => 2})
159 end
160
161 def test_get_report
162 get :report
163 assert_response :success
164 assert_template 'report'
165
166 assert_not_nil assigns(:roles)
167 assert_equal Role.find(:all, :order => 'builtin, position'), assigns(:roles)
168
169 assert_tag :tag => 'input', :attributes => { :type => 'checkbox',
170 :name => 'permissions[3][]',
171 :value => 'add_issues',
172 :checked => 'checked' }
173
174 assert_tag :tag => 'input', :attributes => { :type => 'checkbox',
175 :name => 'permissions[3][]',
176 :value => 'delete_issues',
177 :checked => nil }
178 end
179
180 def test_post_report
181 post :report, :permissions => { '0' => '', '1' => ['edit_issues'], '3' => ['add_issues', 'delete_issues']}
182 assert_redirected_to 'roles/list'
183
184 assert_equal [:edit_issues], Role.find(1).permissions
185 assert_equal [:add_issues, :delete_issues], Role.find(3).permissions
186 assert Role.find(2).permissions.empty?
187 end
188
189 def test_clear_all_permissions
190 post :report, :permissions => { '0' => '' }
191 assert_redirected_to 'roles/list'
192 assert Role.find(1).permissions.empty?
193 end
194
195 def test_move_highest
196 post :move, :id => 3, :position => 'highest'
197 assert_redirected_to 'roles/list'
198 assert_equal 1, Role.find(3).position
199 end
200
201 def test_move_higher
202 position = Role.find(3).position
203 post :move, :id => 3, :position => 'higher'
204 assert_redirected_to 'roles/list'
205 assert_equal position - 1, Role.find(3).position
206 end
207
208 def test_move_lower
209 position = Role.find(2).position
210 post :move, :id => 2, :position => 'lower'
211 assert_redirected_to 'roles/list'
212 assert_equal position + 1, Role.find(2).position
213 end
214
215 def test_move_lowest
216 post :move, :id => 2, :position => 'lowest'
217 assert_redirected_to 'roles/list'
218 assert_equal Role.count, Role.find(2).position
219 end
92 220 end
@@ -1,33 +1,33
1 1 # redMine - project management software
2 2 # Copyright (C) 2006-2008 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 require File.dirname(__FILE__) + '/../test_helper'
19 19
20 20 class TrackerTest < Test::Unit::TestCase
21 21 fixtures :trackers, :workflows
22 22
23 23 def test_copy_workflows
24 24 source = Tracker.find(1)
25 assert_equal 90, source.workflows.size
25 assert_equal 89, source.workflows.size
26 26
27 27 target = Tracker.new(:name => 'Target')
28 28 assert target.save
29 29 assert target.workflows.copy(source)
30 30 target.reload
31 assert_equal 90, target.workflows.size
31 assert_equal 89, target.workflows.size
32 32 end
33 33 end
General Comments 0
You need to be logged in to leave comments. Login now