Unit test result
1
Running dependency checks (set DEBUG=False to turn this off)...
2
Warning: hg not found.  Mercurial integration will not work.
3
Warning: bzrlib not found.  Bazaar integration will not work.
4
Warning: PyLucene (with JCC) is required to enable search. See the documentation for instructions.
5
Warning: mtn binary not found.  Monotone integration will not work.
6
7
Please see http://www.reviewboard.org/docs/manual/dev/admin/
8
for help setting up Review Board.
9
10
11
C:\Python25\lib\site-packages\Crypto\Util\randpool.py:40: RandomPool_DeprecationWarning: This application uses RandomPool, which is BROKEN in older releases.  See http://www.pycrypto.org/randpool-broken
12
  RandomPool_DeprecationWarning)
13
Testing User.is_profile_public with private profiles. ... ok
14
Testing User.is_profile_public with public profiles. ... ok
15
Testing if star, unstar affect review request counts correctly. ... ok
16
Testing check_updates_required with valid configuration ... ok
17
Testing check_updates_required with bad media directories ... ok
18
Testing uploading a file attachment. ... ok
19
Testing record_field_change with a list value ... ok
20
Testing record_field_change with mismatched types ... ok
21
Testing record_field_change with an object list (using name_field) ... ok
22
Testing record_field_change with a string value ... ok
23
Testing using long filenames (1024 characters) in FileDiff. ... ok
24
Testing parse on a context diff ... ok
25
Testing patching with an empty diff ... ok
26
Testing inter-line diffs ... ok
27
Testing move detection ... ok
28
Testing patching ... ok
29
Testing patching a CR file with a CRLF diff ... ok
30
Testing patching a CRLF file with a CR diff ... ok
31
Testing patching a CRLF file with a CRLF diff ... ok
32
Testing patching a file indicating no newline with a trailing \r ... ok
33
Testing parse on a unified diff ... ok
34
Testing highlightregion ... ok
35
Testing interesting lines scanner with a C# file ... ok
36
Testing interesting lines scanner with a Java file ... ok
37
Testing interesting lines scanner with a JavaScript file ... ok
38
Testing interesting lines scanner with an Objective C file ... ok
39
Testing interesting lines scanner with a PHP file ... ok
40
Testing interesting lines scanner with a Perl file ... ok
41
Testing interesting lines scanner with a Python file ... ok
42
Testing interesting lines scanner with a Ruby file ... ok
43
Testing myers differ ... ok
44
Testing sending an e-mail when creating a new review request ... ok
45
Testing sending an e-mail when replying to a review request ... ok
46
Testing sending an e-mail when replying to a review ... ok
47
Testing sending an e-mail when updating a review request ... ok
48
Testing sending an e-mail after a new user has successfully registered. ... ok
49
Testing consolidation of duplicate reviews ... ok
50
Testing counters when adding a group reviewer ... ok
51
Testing counters when adding a person reviewer ... ok
52
Testing counters with closing draft review requests ... ok
53
Testing counters with closing draft review requests ... ok
54
Testing counters with closing outgoing review requests ... ok
55
Testing counters with deleting draft review requests ... ok
56
Testing counters with deleting outgoing review requests ... ok
57
Testing counters on a new LocalSiteProfile ... ok
58
Testing counters with creating outgoing review requests ... ok
59
Testing counters when populated from a fresh upgrade or clear ... ok
60
Testing counter inc/dec on uninitialized counter fields ... ok
61
Testing counters when removing a group reviewer ... ok
62
Testing counters when removing a person reviewer ... ok
63
Testing counters with reopening discarded draft review requests ... ok
64
Testing counters with reopening discarded outgoing review requests ... ok
65
Testing counters with reopening submitted draft review requests ... ok
66
Testing counters with reopening submitted outgoing review requests ... ok
67
Testing get_all_review_requests ... ok
68
Testing get_review_requests_from_user ... ok
69
Testing get_review_requests_to_group ... ok
70
Testing get_review_requests_to_user ... ok
71
Testing get_review_requests_to_user_directly ... ok
72
Testing get_review_requests_to_user_groups ... ok
73
Testing DefaultReviewer.objects.for_repository ... ok
74
Testing DefaultReviewerForm with a LocalSite. ... ok
75
Testing DefaultReviewerForm with a Group not on the same LocalSite. ... ok
76
Testing DefaultReviewerForm with a Repository not on the same LocalSite. ... ok
77
Testing DefaultReviewerForm with a User not on the same LocalSite. ... ok
78
Testing recording of draft changes. ... ok
79
Testing review requests with very long bug numbers ... ok
80
Testing review requests with no summary ... ok
81
Tests GroupForm with a LocalSite. ... ok
82
Tests GroupForm with a User not on the same LocalSite. ... ok
83
Testing the ifneatnumber tag with milestone numbers ... ok
84
Testing the ifneatnumber tag with palindrome numbers ... ok
85
Testing access to joined invite-only group ... ok
86
Testing no access to unjoined invite-only group ... ok
87
Testing visibility of a hidden joined invite-only group ... ok
88
Testing visibility of a hidden unjoined invite-only group ... ok
89
Testing access to a public review group ... ok
90
Testing visibility of a hidden public group ... ok
91
Testing access to a private repository with joined review group added ... ok
92
Testing access to a private repository with user added ... ok
93
Testing no access to a private repository ... ok
94
Testing access to a public repository ... ok
95
Testing access to a public review request ... ok
96
Testing no access to a review request with only an unjoined invite-only group ... ok
97
Testing access to a review request with specific target user and invite-only group ... ok
98
Testing no access to a review request with a private repository ... ok
99
Testing access to a review request with a private repository with review group added ... ok
100
Testing access to a review request with a private repository with user added ... ok
101
Testing dashboard view (incoming) ... ok
102
Testing dashboard view (outgoing) ... ok
103
Testing dashboard view (to-me) ... ok
104
Testing dashboard view (to-group devgroup) ... ok
105
Testing dashboard view (mine) ... ok
106
Testing dashboard view (to-group devgroup) ... ok
107
Testing group_list view ... ok
108
Testing group_list view with site-wide login enabled ... ok
109
Testing the diff viewer with interdiffs ... ok
110
Testing the diff viewer with interdiffs containing new files ... ok
111
Testing new_review_request view (basic responses) ... ok
112
Testing new_review_request view (uploading diffs) ... FAIL
113
Testing review_detail redirect ... ok
114
Testing review_detail view (1) ... ok
115
Testing review_detail view (3) ... ok
116
Testing review_detail view with site-wide login enabled ... ok
117
Testing all_review_requests view ... ok
118
Testing all_review_requests view with site-wide login enabled ... ok
119
Testing submitter_list view ... ok
120
Testing the submitter list with various characters in the username ... ok
121
Testing submitter_list view with site-wide login enabled ... ok
122
Testing a SFTP-backed bzr repository ... SKIP: Cannot perform SSH access tests. The local user's SSH public key must be in the C:\src\reviewboard\reviewboard\data\.ssh\authorized_keys file and SSH must be enabled.
123
Testing a SSH-backed bzr repository ... SKIP: Cannot perform SSH access tests. The local user's SSH public key must be in the C:\src\reviewboard\reviewboard\data\.ssh\authorized_keys file and SSH must be enabled.
124
Testing a SSH-backed bzr repository with a LocalSite ... SKIP: Cannot perform SSH access tests. The local user's SSH public key must be in the C:\src\reviewboard\reviewboard\data\.ssh\authorized_keys file and SSH must be enabled.
125
Testing parsing CVS diff with bad info ... ok
126
Testing parsing CVS bad diff with new file ... ok
127
Testing a bad CVSROOT ... ok
128
Testing CVSTool.get_file ... ERROR
129
Testing parsing CVS inter-revision diff ... ok
130
Testing basic CVSTool API ... ok
131
Testing parsing CVS diff with new file ... ok
132
Testing parsing a CVSROOT with a port ... ok
133
Testing parsing a CVSROOT without a port ... ok
134
Testing revision number parsing ... ok
135
Testing parsing CVS simple diff ... ok
136
Testing a SSH-backed CVS repository ... SKIP: Cannot perform SSH access tests. The local user's SSH public key must be in the C:\src\reviewboard\reviewboard\data\.ssh\authorized_keys file and SSH must be enabled.
137
Testing a SSH-backed CVS repository with a LocalSite ... SKIP: Cannot perform SSH access tests. The local user's SSH public key must be in the C:\src\reviewboard\reviewboard\data\.ssh\authorized_keys file and SSH must be enabled.
138
Testing basic scmtools.core API ... ok
139
Testing parsing Git diff with binary ... ok
140
Testing parsing Git diff with existing and new files ... ok
141
Testing parsing Git diff with deleted file ... ok
142
Testing GitTool.file_exists ... ok
143
Testing parsing filemode changes Git diff ... ok
144
Testing parsing filemode changes with following Git diff ... ok
145
Testing GitTool.get_file ... ok
146
Testing GitTool.get_file with remote files and short SHA1 error ... ok
147
Testing parsing Git diff with new file ... ok
148
Testing parsing Git diff new file, no content ... ok
149
Testing parsing Git diff new file, no content, with following ... ok
150
Testing Git revision number parsing ... ok
151
Testing GitTool.parse_diff_revision with remote files and short SHA1 error ... ok
152
Testing parsing simple Git diff ... ok
153
Testing a SSH-backed git repository ... SKIP: Cannot perform SSH access tests. The local user's SSH public key must be in the C:\src\reviewboard\reviewboard\data\.ssh\authorized_keys file and SSH must be enabled.
154
Testing a SSH-backed git repository with a LocalSite ... SKIP: Cannot perform SSH access tests. The local user's SSH public key must be in the C:\src\reviewboard\reviewboard\data\.ssh\authorized_keys file and SSH must be enabled.
155
Testing HgDiffParser with a diff between committed revisions ... SKIP: Hg is not installed
156
Testing HgDiffParser with a diff that creates a new file ... SKIP: Hg is not installed
157
Testing HgDiffParser with a diff with an uncommitted change ... SKIP: Hg is not installed
158
Testing HgDiffParser with a diff that contains non-diff junk test as a preamble ... SKIP: Hg is not installed
159
Testing HgTool.get_file ... SKIP: Hg is not installed
160
Testing basic HgTool API ... SKIP: Hg is not installed
161
Testing HgTool with a patch that creates a new file ... SKIP: Hg is not installed
162
Testing HgDiffParser revision number parsing ... SKIP: Hg is not installed
163
Testing PerforceTool.get_changeset with stunnel ... SKIP: stunnel is not installed
164
Testing PerforceTool.get_file with stunnel ... SKIP: stunnel is not installed
165
Testing Perforce binary diff parsing ... ok
166
Testing PerforceTool.get_changeset ... ok
167
Testing PerforceTool.get_changeset error conditions ... ok
168
Testing Perforce deleted diff parsing ... ok
169
Testing Perforce empty and normal diff parsing ... ok
170
Testing Perforce empty diff parsing ... ok
171
Testing PerforceTool.get_file ... FAIL
172
Testing adding a Group to a RepositoryForm with the wrong LocalSite. ... ok
173
Testing adding a User to a RepositoryForm with the wrong LocalSite. ... ok
174
Testing access to a private repository accessible by review group ... ok
175
Testing access to a private repository accessible by user ... ok
176
Testing no access to an inaccessible private repository ... ok
177
Testing access to a public repository ... ok
178
Testing sshutils.add_host_key ... ok
179
Testing sshutils.add_host_key with localsite ... ok
180
Testing sshutils.generate_user_key ... ok
181
Testing sshutils.generate_user_key with localsite ... ok
182
Testing sshutils.get_ssh_dir with ~/.ssh ... ok
183
Testing sshutils.get_ssh_dir with ~/.ssh and localsite ... ok
184
Testing sshutils.get_ssh_dir with ~/ssh ... ok
185
Testing sshutils.get_ssh_dir with ~/ssh and localsite ... ok
186
Testing sshutils.replace_host_key ... ok
187
Testing sshutils.replace_host_key with localsite ... ok
188
Testing parsing SVN diff with binary file ... ok
189
Testing SVNTool.get_file ... ERROR
190
Testing basic SVNTool API ... ok
191
Testing parsing SVN diff with keywords ... ERROR
192
Testing revision number parsing ... ok
193
Testing parsing SVN diff with unterminated keywords ... ERROR
194
Testing a SSH-backed Subversion repository ... SKIP: Cannot perform SSH access tests. The local user's SSH public key must be in the C:\src\reviewboard\reviewboard\data\.ssh\authorized_keys file and SSH must be enabled.
195
Testing a SSH-backed Subversion repository with a LocalSite ... SKIP: Cannot perform SSH access tests. The local user's SSH public key must be in the C:\src\reviewboard\reviewboard\data\.ssh\authorized_keys file and SSH must be enabled.
196
Test LocalSite.is_accessible_by ... ok
197
Testing local_site_reverse with a local site ... ok
198
Testing local_site_reverse with no local site ... ok
199
Testing localsite's {% url %} with local site ... ok
200
Testing localsite's {% url %} with no local site ... ok
201
Testing the GET review-requests/<id>/changes/<id>/ API ... ok
202
Testing the GET review-requests/<id>/changes/<id>/ API with Not Modified response ... ok
203
Testing the GET review-requests/<id>/changes/ API ... ok
204
Testing the GET review-requests/<id>/diffs/<revision>/ API ... ok
205
Testing the GET review-requests/<id>/diffs/<revision>/ API with Not Modified response ... ok
206
Testing the GET review-requests/<id>/diffs/<revision>/ API with a local site ... ok
207
Testing the GET review-requests/<id>/diffs/<revision>/ API with a local site and Permission Denied error ... ok
208
Testing the GET review-requests/<id>/diffs/ API ... ok
209
Testing the GET review-requests/<id>/diffs API with a local site ... ok
210
Testing the GET review-requests/<id>/diffs API with a local site and Permission Denied error ... ok
211
Testing the POST review-requests/<id>/diffs/ API ... FAIL
212
Testing the POST review-requests/<id>/diffs/ API with Invalid Form Data ... ok
213
Testing the POST review-requests/<id>/diffs/ API with a local site ... ok
214
Testing the GET review-requests/<id>/reviews/draft/file_attachment-comments/ API ... ok
215
Testing the GET review-requests/<id>/reviews/draft/file_attachment-comments/ APIs with a local site ... ok
216
Testing the GET review-requests/<id>/reviews/draft/screenshot-comments/ API ... ok
217
Testing the GET review-requests/<id>/reviews/draft/screenshot-comments/ APIs with a local site ... ok
218
Testing the GET review-requests/<id>/file-attachments/<id>/comments/ API ... ok
219
Testing the GET review-requests/<id>/file-attachments/<id>/comments/ API with a local site ... ok
220
Testing the GET review-requests/<id>/file-attachments/<id>/comments/ API with a local site and Permission Denied error ... ok
221
Testing the POST review-requests/<id>/draft/file-attachments/ API ... ok
222
Testing the POST review-requests/<id>/draft/file-attachments/ API with Permission Denied error ... ok
223
Testing the POST review-requests/<id>/draft/file-attachments/ API with a local site ... ok
224
Testing the POST review-requests/<id>/draft/file-attachments/ API with a local site and Permission Denied error ... ok
225
Testing the PUT review-requests/<id>/draft/file-attachments/<id>/ API ... ok
226
Testing the PUT review-requests/<id>/draft/file-attachments/<id>/ API with a local site ... ok
227
Testing the PUT review-requests/<id>/draft/file-attachments/<id>/ API with a local site and Permission Denied error ... ok
228
Testing the GET review-requests/<id>/file-attachments/<id>/ API with Not Modified response ... ok
229
Testing the POST review-requests/<id>/file-attachments/ API ... ok
230
Testing the POST review-requests/<id>/file-attachments/ API with Permission Denied error ... ok
231
Testing the POST review-requests/<id>/file-attachments/ API with a local site ... ok
232
Testing the POST review-requests/<id>/file-attachments/ API with a local site and Permission Denied error ... ok
233
Testing the GET review-requests/<id>/diffs/<revision>/files/<id>/diff-comments/ API ... ok
234
Testing the GET review-requests/<id>/diffs/<revision>/files/<id>/diff-comments/?line= API ... ok
235
Testing the GET review-requests/<id>/diffs/<revision>/files/<id>/diff-comments/ API with a local site ... ok
236
Testing the GET review-requests/<id>/diffs/<revision>/files/<id>/diff-comments/ API with a local site and Permission Denied error ... ok
237
Testing the GET repositories/<id>/info API ... FAIL
238
Testing the GET repositories/<id>/info API with a local site ... FAIL
239
Testing the GET repositories/<id>/info API with a local site and Permission Denied error ... ok
240
Testing the DELETE repositories/<id>/ API ... ok
241
Testing the DELETE repositories/<id>/ API with no access ... ok
242
Testing the DELETE repositories/<id>/ API with a local site ... ok
243
Testing the DELETE repositories/<id>/ API with a local site and no access ... ok
244
Testing the GET repositories/ API ... ok
245
Testing the GET repositories/ API with a local site ... ok
246
Testing the GET repositories/ API with a local site and Permission Denied error ... ok
247
Testing the POST repositories/ API ... FAIL
248
Testing the POST repositories/ API with all available info ... FAIL
249
Testing the POST repositories/ API with Authentication Error ... ok
250
Testing the POST repositories/ API with Bad Host Key error ... ok
251
Testing the POST repositories/ API with Bad Host Key error and trust_host=1 ... ok
252
Testing the POST repositories/ API with Missing User Key error ... ok
253
Testing the POST repositories/ API with no access ... ok
254
Testing the POST repositories/ API with a local site ... FAIL
255
Testing the POST repositories/ API with a local site and no access ... ok
256
Testing the POST repositories/ API with Unknown Certificate error ... ok
257
Testing the POST repositories/ API with Unknown Certificate error and trust_host=1 ... ok
258
Testing the POST repositories/ API with Unknown Host Key error ... ok
259
Testing the POST repositories/ API with Unknown Host Key error and trust_host=1 ... ok
260
Testing the PUT repositories/<id>/ API ... FAIL
261
Testing the PUT repositories/<id>/ API with archive_name=True ... FAIL
262
Testing the PUT repositories/<id>/ API with no access ... ok
263
Testing the PUT repositories/<id>/ API with a local site ... FAIL
264
Testing the PUT repositories/<id>/ API with a local site and no access ... ok
265
Testing the DELETE review-requests/<id>/reviews/<id>/diff-comments/<id>/ API ... FAIL
266
Testing the DELETE review-requests/<id>/reviews/<id>/diff-comments/<id>/ API with a local site ... ok
267
Testing the DELETE review-requests/<id>/reviews/<id>/diff-comments/<id>/ API with a local site and Permission Denied error ... ok
268
Testing the GET review-requests/<id>/reviews/<id>/diff-comments/<id>/ API with Not Modified response ... ok
269
Testing the GET review-requests/<id>/reviews/<id>/diff-comments/ API ... ok
270
Testing the GET review-requests/<id>/reviews/<id>/diff-comments/?counts-only=1 API ... ok
271
Testing the GET review-requests/<id>/reviews/<id>/diff-comments/ API with interdiff ... FAIL
272
Testing the GET review-requests/<id>/reviews/<id>/diff-comments/ API with a local site ... ok
273
Testing the GET review-requests/<id>/reviews/<id>/diff-comments/ API with a local site and Permission Denied error ... ok
274
Testing the POST review-requests/<id>/reviews/<id>/diff-comments/ API ... FAIL
275
Testing the POST review-requests/<id>/reviews/<id>/diff-comments/ API with interdiff ... FAIL
276
Testing the POST review-requests/<id>/reviews/<id>/diff-comments/ API with an issue ... FAIL
277
Testing the POST review-requests/<id>/reviews/<id>/diff-comments/ API with a local site ... ok
278
Testing the POST review-requests/<id>/reviews/<id>/diff-comments/ API with a local site and Permission Denied error ... ok
279
Testing the PUT review-requests/<id>/reviews/<id>/diff-comments/<id> API with an issue ... FAIL
280
Testing the PUT review-requests/<id>/reviews/<id>/diff-comments/<id> API with an issue ... FAIL
281
Testing the DELETE groups/<id>/ API ... ok
282
Testing the DELETE groups/<id>/ API with a local site ... ok
283
Testing the DELETE groups/<id>/ API with a local site and Permission Denied error ... ok
284
Testing the DELETE groups/<id>/ API with Permission Denied error ... ok
285
Testing the DELETE groups/<id>/ API with existing review requests ... ok
286
Testing the GET groups/<id>/ API with invite-only ... ok
287
Testing the GET groups/<id>/ API with invite-only and Permission Denied error ... ok
288
Testing the GET groups/<id>/ API ... ok
289
Testing the GET groups/<id>/ API with Not Modified response ... ok
290
Testing the GET groups/<id>/ API with a local site ... ok
291
Testing the GET groups/<id>/ API with a local site and Permission Denied error ... ok
292
Testing the GET groups/ API ... ok
293
Testing the GET groups/?q= API ... ok
294
Testing the GET groups/ API with a local site ... ok
295
Testing the GET groups/ API with a local site and Permission Denied error ... ok
296
Testing the POST review-requests/<id>/reviews/<id>/replies/<id>/diff-comments/ API ... ok
297
Testing the POST review-requests/<id>/reviews/<id>/replies/<id>/diff-comments/ API with a local site ... ok
298
Testing the POST review-requests/<id>/reviews/<id>/replies/<id>/diff-comments/ API with a local site and Permission Denied error ... ok
299
Testing the POST review-requests/<id>/reviews/<id>/replies/<id>/diff-comments/ API and 303 See Other ... ok
300
Testing the PUT review-requests/<id>/reviews/<id>/replies/<id>/diff-comments/ API ... ok
301
Testing the PUT review-requests/<id>/reviews/<id>/replies/<id>/diff-comments/ API with a local site ... ok
302
Testing the PUT review-requests/<id>/reviews/<id>/replies/<id>/diff-comments/ API with a local site and Permission Denied error ... ok
303
Testing the POST review-requests/<id>/reviews/<id>/replies/<id>/file-attachment-comments/ API ... ok
304
Testing the POST review-requests/<id>/reviews/<id>/replies/<id>/file-attachment-comments/ API and 303 See Other ... ok
305
Testing the PUT review-requests/<id>/reviews/<id>/replies/<id>/file-attachment-comments/ API ... ok
306
Testing the DELETE review-requests/<id>/reviews/<id>/replies/<id>/ API ... ok
307
Testing the DELETE review-requests/<id>/reviews/<id>/replies/<id>/ API with a local site ... ok
308
Testing the DELETE review-requests/<id>/reviews/<id>/replies/<id>/ API with a local site and Permission Denied error ... ok
309
Testing the GET review-requests/<id>/reviews/<id>/replies API ... ok
310
Testing the GET review-requests/<id>/reviews/<id>/replies/?counts-only=1 API ... ok
311
Testing the GET review-requests/<id>/reviews/<id>/replies/ API with a local site ... ok
312
Testing the GET review-requests/<id>/reviews/<id>/replies/ API with a local site and Permission Denied error ... ok
313
Testing the GET review-requests/<id>/reviews/<id>/ with Not Modified response ... ok
314
Testing the POST review-requests/<id>/reviews/<id>/replies/ API ... ok
315
Testing the POST review-requests/<id>/reviews/<id>/replies/ API with body_bottom ... ok
316
Testing the POST review-requests/<id>/reviews/<id>/replies/ API with body_top ... ok
317
Testing the POST review-requsets/<id>/reviews/<id>/replies/ API with a local site ... ok
318
Testing the POST review-requests/<id>/reviews/<id>/replies/ API with a local site and Permission Denied error ... ok
319
Testing the PUT review-requests/<id>/reviews/<id>/replies/<id>/ API ... ok
320
Testing the PUT review-requests/<id>/reviews/<id>/replies/<id>/?public=1 API ... ok
321
Testing the PUT review-requests/<id>/reviews/<id>/replies/<id>/ API with a local site ... ok
322
Testing the PUT review-requests/<id>/reviews/<id>/replies/<id>/ API with a local site and Permission Denied error ... ok
323
Testing the POST review-requests/<id>/reviews/<id>/replies/<id>/screenshot-comments/ API ... ok
324
Testing the POST review-requests/<id>/reviews/<id>/replies/<id>/screenshot-comments/ API with a local site ... ok
325
Testing the POST review-requests/<id>/reviews/<id>/replies/<id>/screenshot-comments/ API ... ok
326
Testing the DELETE review-requests/<id>/draft/ API ... ok
327
Testing the DELETE review-requests/<id>/draft/ API with a local site ... ok
328
Testing the DELETE review-requests/<id>/draft/ API with a local site and Permission Denied error ... ok
329
Testing the POST review-requests/<id>/draft/ API ... ok
330
Testing the POST review-requests/<id>/draft/ API with a local site ... ok
331
Testing the POST review-requests/<id>/draft/ API with a local site and Permission Denied error ... ok
332
Testing the PUT review-requests/<id>/draft/ API ... ok
333
Testing the PUT review-requests/<id>/draft/?public=1 API ... ok
334
Testing the PUT review-requests/<id>/draft/?public=1 API with a new review request ... ok
335
Testing the PUT review-requests/<id>/draft/ API with a change description ... ok
336
Testing the PUT review-requests/<id>/draft/ API with Invalid Form Data error ... ok
337
Testing the PUT review-requests/<id>/draft/ API with Permission Denied error ... ok
338
Testing the PUT review-requests/<id>/draft/ API with a local site ... ok
339
Testing the PUT review-requests/<id>/draft/ API with a local site and Permission Denied error ... ok
340
Testing the DELETE review-requests/<id>/ API ... ok
341
Testing the DELETE review-requests/<id>/ API with Does Not Exist error ... ok
342
Testing the DELETE review-requests/<id>/ API with Permission Denied error ... ok
343
Testing the DELETE review-requests/<id>/ API with a lotal site ... ok
344
Testing the GET review-requests/<id>/ API ... ok
345
Testing the GET review-requests/<id>/ API with Not Modified response ... ok
346
Testing the GET review-requests/<id>/ API with invite-only group and Permission Denied error ... ok
347
Testing the GET review-requests/<id>/ API with invite-only group and target user ... ok
348
Testing the GET review-requests/<id>/ API with non-public and Permission Denied error ... ok
349
Testing the GET review-requests/?repository=&changenum= API ... ok
350
Testing the GET review-requests/<id>/ API with a local site ... ok
351
Testing the GET review-requests/<id>/ API with a local site and Permission Denied error ... ok
352
Testing the GET review-requests/ API ... ok
353
Testing the GET review-requests/?counts-only=1 API ... ok
354
Testing the GET review-requests/?from-user= API ... ok
355
Testing the GET review-requests/?from-user=&counts-only=1 API ... ok
356
Testing the GET review-requests/?from-user=&status= API ... ok
357
Testing the GET review-requests/?last-updated-from= API ... ok
358
Testing the GET review-requests/?last-updated-to= API ... ok
359
Testing the GET review-requests/?ship-it=0 API ... ok
360
Testing the GET review-requests/?ship-it=1 API ... ok
361
Testing the GET review-requests/ API with a local site ... ok
362
Testing the GET review-requests/ API with a local site and Permission Denied error ... ok
363
Testing the GET review-requests/?status= API ... ok
364
Testing the GET review-requests/?time-added-from= API ... ok
365
Testing the GET review-requests/?time-added-to= API ... ok
366
Testing the GET review-requests/?to-groups= API ... ok
367
Testing the GET review-requests/?to-groups=&counts-only=1 API ... ok
368
Testing the GET review-requests/?to-groups=&status= API ... ok
369
Testing the GET review-requests/?to-users= API ... ok
370
Testing the GET review-requests/?to-users=&counts-only=1 API ... ok
371
Testing the GET review-requests/?to-users=&status= API ... ok
372
Testing the GET review-requests/?to-users-directly= API ... ok
373
Testing the GET review-requests/?to-users-directly=&counts-only=1 API ... ok
374
Testing the GET review-requests/?to-users-directly=&status= API ... ok
375
Testing the POST review-requests/ API ... ok
376
Testing the POST review-requests/ API with Invalid Repository error ... ok
377
Testing the POST review-requests/ API with Invalid Repository error from a site-local repository ... ok
378
Testing the POST review-requests/ API with a repository name ... ok
379
Testing the POST review-requests/ API with a local site ... ok
380
Testing the POST review-requests/ API with a local site and Invalid Repository error ... ok
381
Testing the POST review-requests/ API with a local site and Permission Denied error ... ok
382
Testing the POST review-requests/?submit_as= API ... ok
383
Testing the POST review-requests/?submit_as= API with Permission Denied error ... ok
384
Testing the PUT review-requests/<id>/?status=discarded API ... ok
385
Testing the PUT review-requests/<id>/?status=discarded API with Permission Denied ... ok
386
Testing the PUT review-requests/<id>/?status=pending API ... ok
387
Testing the PUT review-requests/<id>/?status=submitted API ... ok
388
Testing the PUT review-requests/<id>/?status=submitted API with a local site ... ok
389
Testing the PUT review-requests/<id>/?status=submitted API with a local site and Permission Denied error ... ok
390
Testing the DELETE review-requests/<id>/reviews/<id>/ API ... ok
391
Testing the DELETE review-requests/<id>/reviews/<id>/ API with Does Not Exist error ... ok
392
Testing the DELETE review-requests/<id>/reviews/<id>/ API with a local site ... ok
393
Testing the DELETE review-requests/<id>/reviews/<id>/ API with a local site and Permission Denied error ... ok
394
Testing the DELETE review-requests/<id>/reviews/<id>/ API with Permission Denied error ... ok
395
Testing the DELETE review-requests/<id>/reviews/<id>/ API with pre-published review ... ok
396
Testing the GET review-requests/<id>/reviews/<id>/ API with Not Modified response ... ok
397
Testing the GET review-requests/<id>/reviews/ API ... ok
398
Testing the GET review-requests/<id>/reviews/?counts-only=1 API ... ok
399
Testing the GET review-requests/<id>/reviews/ API with a local site ... ok
400
Testing the GET review-requests/<id>/reviews/ API with a local site and Permission Denied error ... ok
401
Testing the POST review-requests/<id>/reviews/ API ... ok
402
Testing the POST review-requests/<id>/reviews/ API with a local site ... ok
403
Testing the POST review-requests/<id>/reviews/ API with a local site and Permission Denied error ... ok
404
Testing the PUT review-requests/<id>/reviews/<id>/ API ... ok
405
Testing the PUT review-requests/<id>/reviews/<id>/?public=1 API ... ok
406
Testing the PUT review-requests/<id>/reviews/<id>/ API with pre-published review ... ok
407
Testing the PUT review-requests/<id>/reviews/<id>/ API with a local site ... ok
408
Testing the PUT review-requests/<id>/reviews/<id>/ API with a local site and Permission Denied error ... ok
409
Testing the DELETE review-requests/<id>/reviews/<id>/screenshot-comments/<id>/ API ... ok
410
Testing the DELETE review-requests/<id>/reviews/<id>/screenshot-comments/<id>/ API with Does Not Exist error ... ok
411
Testing the DELETE review-requests/<id>/reviews/<id>/screenshot-comments/<id> API with a local site ... ok
412
Testing the DELETE review-requests/<id>/reviews/<id>/screenshot-comments/<id> API with a local site and Permission Denied error ... ok
413
Testing the POST review-requests/<id>/reviews/<id>/screenshot-comments/ API with an issue ... ok
414
Testing the POST review-requests/<id>/reviews/<id>/screenshot-comments/ API ... ok
415
Testing the POST review-requests/<id>/reviews/<id>/screenshot-comments/ API with a local site ... ok
416
Testing the POST review-requests/<id>/reviews/<id>/screenshot-comments/ API with a local site and Permission Denied error ... ok
417
Testing the PUT review-requests/<id>/reviews/<id>/screenshot-comments/<id> API with an issue ... ok
418
Testing the PUT review-requests/<id>/reviews/<id>/screenshot-comments/<id> API with an issue ... ok
419
Testing the GET review-requests/<id>/screenshots/<id>/comments/ API ... ok
420
Testing the GET review-requests/<id>/screenshots/<id>/comments/ API with a local site ... ok
421
Testing the GET review-requests/<id>/screenshots/<id>/comments/ API with a local site and Permission Denied error ... ok
422
Testing the POST review-requests/<id>/draft/screenshots/ API ... ok
423
Testing the POST review-requests/<id>/draft/screenshots/ API with Permission Denied error ... ok
424
Testing the POST review-requests/<id>/draft/screenshots/ API with a local site ... ok
425
Testing the POST review-requests/<id>/draft/screenshots/ API with a local site and Permission Denied error ... ok
426
Testing the PUT review-requests/<id>/draft/screenshots/<id>/ API ... ok
427
Testing the PUT review-requests/<id>/draft/screenshots/<id>/ API with a local site ... ok
428
Testing the PUT review-requests/<id>/draft/screenshots/<id>/ API with a local site and Permission Denied error ... ok
429
Testing the POST review-requests/<id>/screenshots/ API ... ok
430
Testing the POST review-requests/<id>/screenshots/ API with Permission Denied error ... ok
431
Testing the POST review-requests/<id>/screenshots/ API with a local site ... ok
432
Testing the POST review-requests/<id>/screenshots/ API with a local site and Permission Denied error ... ok
433
Testing the GET info/ API ... ok
434
Testing the GET info/ API with a local site ... ok
435
Testing the GET info/ API with a local site and Permission Denied error ... ok
436
Testing the GET session/ API with anonymous user ... ok
437
Testing the GET session/ API with logged in user ... ok
438
Testing the GET session/ API with a local site ... ok
439
Testing the GET session/ API with a local site and Permission Denied error ... ok
440
Testing the GET users/<username>/ API with a local site ... ok
441
Testing the GET users/<username>/ API ... ok
442
Testing the GET users/<username>/ API with Not Modified response ... ok
443
Testing the GET users/<username>/ API with a local site ... ok
444
Testing the GET users/<username>/ API with a local site and private profile ... ok
445
Testing the GET users/<username>/ API with a local site and Permission Denied error. ... ok
446
Testing the GET users/ API ... ok
447
Testing the GET users/?q= API ... ok
448
Testing the GET users/ API with a local site ... ok
449
Testing the GET users/ API with a local site and Permission Denied error ... ok
450
Testing the DELETE users/<username>/watched/review-groups/<id>/ API ... ok
451
Testing the DELETE users/<username>/watched/review-groups/<id>/ API with Does Not Exist error ... ok
452
Testing the DELETE users/<username>/watched/review-groups/<id>/ API with a local site ... ok
453
Testing the DELETE users/<username>/watched/review-groups/<id>/ API with a local site and Permission Denied error ... ok
454
Testing the GET users/<username>/watched/review-groups/ API ... ok
455
Testing the GET users/<username>/watched/review-groups/ API with a local site ... ok
456
Testing the GET users/<username>/watched/review-groups/ API with a local site and Permission Denied error ... ok
457
Testing the POST users/<username>/watched/review-groups/ API ... ok
458
Testing the POST users/<username>/watched/review-groups/ API with Does Not Exist error ... ok
459
Testing the POST users/<username>/watched/review-groups/ API with a local site ... ok
460
Testing the POST users/<username>/watched/review-groups/ API with a local site and Does Not Exist error ... ok
461
Testing the POST users/<username>/watched/review-groups/ API with a local site and Permission Denied error ... ok
462
Testing the DELETE users/<username>/watched/review_request/ API ... ok
463
Testing the DELETE users/<username>/watched/review_request/ API with Does Not Exist error ... ok
464
Testing the DELETE users/<username>/watched/review_request/ API with a local site ... ok
465
Testing the DELETE users/<username>/watched/review_request/ API with a local site and Permission Denied error ... ok
466
Testing the GET users/<username>/watched/review_request/ API ... ok
467
Testing the GET users/<username>/watched/review_request/ API with a local site ... ok
468
Testing the GET users/<username>/watched/review_request/ API with a local site and Does Not Exist error ... ok
469
Testing the GET users/<username>/watched/review_request/ API with a local site and Permission Denied error ... ok
470
Testing the POST users/<username>/watched/review_request/ API ... ok
471
Testing the POST users/<username>/watched/review_request/ with Does Not Exist error ... ok
472
Testing the POST users/<username>/watched/review_request/ API with a local site ... ok
473
Testing the POST users/<username>/watched/review_request/ API with a local site and Does Not Exist error ... ok
474
Testing the POST users/<username>/watched/review_request/ API with a local site and Permission Denied error ... ok
475
476
======================================================================
477
ERROR: Testing CVSTool.get_file
478
----------------------------------------------------------------------
479
Traceback (most recent call last):
480
  File "C:\src\reviewboard\reviewboard\scmtools\tests.py", line 344, in testGetFile
481
    self.assertEqual(self.tool.get_file(file, rev), expected)
482
  File "C:\src\reviewboard\reviewboard\scmtools\cvs.py", line 48, in get_file
483
    return self.client.cat_file(path, revision)
484
  File "C:\src\reviewboard\reviewboard\scmtools\cvs.py", line 248, in cat_file
485
    return self._cat_specific_file(filename, revision)
486
  File "C:\src\reviewboard\reviewboard\scmtools\cvs.py", line 299, in _cat_specific_file
487
    raise SCMError(errmsg)
488
SCMError: Traceback (most recent call last):
489
490
  File "C:\Python25\Scripts\rbssh-script.py", line 5, in <module>
491
492
    from pkg_resources import load_entry_point
493
494
  File "C:\Python25\Lib\site-packages\pkg_resources.py", line 2607, in <module>
495
496
    parse_requirements(__requires__), Environment()
497
498
  File "C:\Python25\Lib\site-packages\pkg_resources.py", line 565, in resolve
499
500
    raise DistributionNotFound(req)  # XXX put more info here
501
502
pkg_resources.DistributionNotFound: ReviewBoard==1.6beta2.dev
503
504
cvs [checkout aborted]: end of file from server (consult above messages if any)
505
506
507
508
======================================================================
509
ERROR: Testing SVNTool.get_file
510
----------------------------------------------------------------------
511
Traceback (most recent call last):
512
  File "C:\src\reviewboard\reviewboard\scmtools\tests.py", line 510, in testGetFile
513
    self.assertEqual(self.tool.get_file(file, rev), expected)
514
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
515
    raise SCMError(e)
516
SCMError: Unable to open an ra_local session to URL
517
Unable to open repository 'file://C:\src\reviewboard\reviewboard\scmtools\testdata/svn_repo/trunk/doc/misc-docs/Makefile'
518
519
======================================================================
520
ERROR: Testing parsing SVN diff with keywords
521
----------------------------------------------------------------------
522
Traceback (most recent call last):
523
  File "C:\src\reviewboard\reviewboard\scmtools\tests.py", line 587, in testKeywordDiff
524
    file = self.tool.get_file(filename, rev)
525
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
526
    raise SCMError(e)
527
SCMError: Unable to open an ra_local session to URL
528
Unable to open repository 'file://C:\src\reviewboard\reviewboard\scmtools\testdata/svn_repo/trunk/doc/misc-docs/Makefile'
529
530
======================================================================
531
ERROR: Testing parsing SVN diff with unterminated keywords
532
----------------------------------------------------------------------
533
Traceback (most recent call last):
534
  File "C:\src\reviewboard\reviewboard\scmtools\tests.py", line 609, in testUnterminatedKeywordDiff
535
    file = self.tool.get_file(filename, rev)
536
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
537
    raise SCMError(e)
538
SCMError: Unable to open an ra_local session to URL
539
Unable to open repository 'file://C:\src\reviewboard\reviewboard\scmtools\testdata/svn_repo/trunk/doc/misc-docs/Makefile'
540
541
======================================================================
542
FAIL: Testing new_review_request view (uploading diffs)
543
----------------------------------------------------------------------
544
Traceback (most recent call last):
545
  File "C:\src\reviewboard\reviewboard\reviews\tests.py", line 284, in testNewReviewRequest1
546
    self.assertEqual(response.status_code, 302)
547
AssertionError: 200 != 302
548
549
======================================================================
550
FAIL: Testing PerforceTool.get_file
551
----------------------------------------------------------------------
552
Traceback (most recent call last):
553
  File "C:\src\reviewboard\reviewboard\scmtools\tests.py", line 697, in testGetFile
554
    '227bdd87b052fcad9369e65c7bf23fd0')
555
AssertionError: '4823cf5f5fd0aa422c4f4baeec3dd05b' != '227bdd87b052fcad9369e65c7bf23fd0'
556
557
======================================================================
558
FAIL: Testing the POST review-requests/<id>/diffs/ API
559
----------------------------------------------------------------------
560
Traceback (most recent call last):
561
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 4283, in test_post_diffs
562
    'basedir': "/trunk",
563
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
564
    rsp, result = self.api_post_with_response(*args, **kwargs)
565
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
566
    self.assertEqual(response.status_code, expected_status)
567
AssertionError: 400 != 201
568
-------------------- >> begin captured stdout << ---------------------
569
POSTing to /api/review-requests/
570
Post data: {'repository': 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo'}
571
Raw response: {"stat": "ok", "review_request": {"status": "pending", "last_updated": "2011-10-24 11:33:40", "description": "", "links": {"diffs": {"href": "http://testserver/api/review-requests/1/diffs/", "method": "GET"}, "repository": {"href": "http://testserver/api/repositories/5/", "method": "GET", "title": "Subversion SVN"}, "screenshots": {"href": "http://testserver/api/review-requests/1/screenshots/", "method": "GET"}, "self": {"href": "http://testserver/api/review-requests/1/", "method": "GET"}, "update": {"href": "http://testserver/api/review-requests/1/", "method": "PUT"}, "last_update": {"href": "http://testserver/api/review-requests/1/last-update/", "method": "GET"}, "reviews": {"href": "http://testserver/api/review-requests/1/reviews/", "method": "GET"}, "draft": {"href": "http://testserver/api/review-requests/1/draft/", "method": "GET"}, "file_attachments": {"href": "http://testserver/api/review-requests/1/file-attachments/", "method": "GET"}, "submitter": {"href": "http://testserver/api/users/grumpy/", "method": "GET", "title": "grumpy"}, "changes": {"href": "http://testserver/api/review-requests/1/changes/", "method": "GET"}, "delete": {"href": "http://testserver/api/review-requests/1/", "method": "DELETE"}}, "target_groups": [], "bugs_closed": [], "changenum": null, "target_people": [], "testing_done": "", "branch": "", "id": 1, "time_added": "2011-10-24 11:33:40", "summary": "", "public": false}}
572
Response: {u'stat': u'ok', u'review_request': {u'status': u'pending', u'last_updated': u'2011-10-24 11:33:40', u'description': u'', u'links': {u'diffs': {u'href': u'http://testserver/api/review-requests/1/diffs/', u'method': u'GET'}, u'repository': {u'href': u'http://testserver/api/repositories/5/', u'method': u'GET', u'title': u'Subversion SVN'}, u'changes': {u'href': u'http://testserver/api/review-requests/1/changes/', u'method': u'GET'}, u'self': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'GET'}, u'update': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'PUT'}, u'last_update': {u'href': u'http://testserver/api/review-requests/1/last-update/', u'method': u'GET'}, u'reviews': {u'href': u'http://testserver/api/review-requests/1/reviews/', u'method': u'GET'}, u'draft': {u'href': u'http://testserver/api/review-requests/1/draft/', u'method': u'GET'}, u'file_attachments': {u'href': u'http://testserver/api/review-requests/1/file-attachments/', u'method': u'GET'}, u'submitter': {u'href': u'http://testserver/api/users/grumpy/', u'method': u'GET', u'title': u'grumpy'}, u'screenshots': {u'href': u'http://testserver/api/review-requests/1/screenshots/', u'method': u'GET'}, u'delete': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'DELETE'}}, u'public': False, u'target_groups': [], u'bugs_closed': [], u'changenum': None, u'target_people': [], u'testing_done': u'', u'branch': u'', u'time_added': u'2011-10-24 11:33:40', u'summary': u'', u'id': 1}}
573
POSTing to /api/review-requests/1/diffs/
574
Post data: {'path': <open file 'C:\src\reviewboard\reviewboard\scmtools\testdata\svn_makefile.diff', mode 'r' at 0x049824A0>, 'basedir': '/trunk'}
575
Raw response: {"fields": {"path": ["Unable to open an ra_local session to URL\nUnable to open repository 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
576
577
--------------------- >> end captured stdout << ----------------------
578
-------------------- >> begin captured logging << --------------------
579
root: ERROR: Error uploading new diff: Unable to open an ra_local session to URL
580
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
581
Traceback (most recent call last):
582
  File "C:\src\reviewboard\reviewboard\webapi\resources.py", line 1482, in create
583
    request.FILES.get('parent_diff_path'))
584
  File "C:\src\reviewboard\reviewboard\reviews\forms.py", line 286, in create
585
    history)
586
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 63, in create
587
    diff_file, basedir, check_existance=(not parent_diff_file)))
588
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 149, in _process_files
589
    not tool.file_exists(filename, revision))):
590
  File "C:\src\reviewboard\reviewboard\scmtools\core.py", line 70, in file_exists
591
    self.get_file(path, revision)
592
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
593
    raise SCMError(e)
594
SCMError: Unable to open an ra_local session to URL
595
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
596
--------------------- >> end captured logging << ---------------------
597
598
======================================================================
599
FAIL: Testing the GET repositories/<id>/info API
600
----------------------------------------------------------------------
601
Traceback (most recent call last):
602
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 957, in test_get_repository_info
603
    rsp = self.apiGet(self.get_url(self.repository))
604
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 104, in apiGet
605
    expected_redirects)
606
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 82, in api_func_wrapper
607
    self.assertEqual(response.status_code, expected_status)
608
AssertionError: 500 != 200
609
-------------------- >> begin captured stdout << ---------------------
610
GETing /api/repositories/5/info/
611
Query data: {}
612
613
--------------------- >> end captured stdout << ----------------------
614
615
======================================================================
616
FAIL: Testing the GET repositories/<id>/info API with a local site
617
----------------------------------------------------------------------
618
Traceback (most recent call last):
619
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 970, in test_get_repository_info_with_site
620
    rsp = self.apiGet(self.get_url(self.repository, self.local_site_name))
621
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 104, in apiGet
622
    expected_redirects)
623
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 82, in api_func_wrapper
624
    self.assertEqual(response.status_code, expected_status)
625
AssertionError: 500 != 200
626
-------------------- >> begin captured stdout << ---------------------
627
GETing /s/local-site-1/api/repositories/5/info/
628
Query data: {}
629
630
--------------------- >> end captured stdout << ----------------------
631
632
======================================================================
633
FAIL: Testing the POST repositories/ API
634
----------------------------------------------------------------------
635
Traceback (most recent call last):
636
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 567, in test_post_repository
637
    self._post_repository(False)
638
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 871, in _post_repository
639
    }, **data), expected_status=expected_status)
640
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
641
    rsp, result = self.api_post_with_response(*args, **kwargs)
642
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
643
    self.assertEqual(response.status_code, expected_status)
644
AssertionError: 400 != 201
645
-------------------- >> begin captured stdout << ---------------------
646
POSTing to /api/repositories/
647
Post data: {'path': 'file://C:\\src\\reviewboard\\reviewboard\\scmtools\\testdata\\svn_repo', 'tool': 'Subversion', 'name': 'Test Repository'}
648
Raw response: {"stat": "fail", "err": {"msg": "There was no repository found at the specified path", "code": 205}}
649
650
--------------------- >> end captured stdout << ----------------------
651
-------------------- >> begin captured logging << --------------------
652
root: ERROR: SVN: Failed to get repository information for file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo: Unable to open an ra_local session to URL
653
Local URL 'file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo' contains only a hostname, no path
654
--------------------- >> end captured logging << ---------------------
655
656
======================================================================
657
FAIL: Testing the POST repositories/ API with all available info
658
----------------------------------------------------------------------
659
Traceback (most recent call last):
660
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 771, in test_post_repository_full_info
661
    'raw_file_url': 'http://example.com/<filename>/<version>',
662
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 871, in _post_repository
663
    }, **data), expected_status=expected_status)
664
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
665
    rsp, result = self.api_post_with_response(*args, **kwargs)
666
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
667
    self.assertEqual(response.status_code, expected_status)
668
AssertionError: 400 != 201
669
-------------------- >> begin captured stdout << ---------------------
670
POSTing to /api/repositories/
671
Post data: {'username': 'user', 'name': 'Test Repository', 'encoding': 'UTF-8', 'tool': 'Subversion', 'public': False, 'raw_file_url': 'http://example.com/<filename>/<version>', 'bug_tracker': 'http://bugtracker/%s/', 'path': 'file://C:\\src\\reviewboard\\reviewboard\\scmtools\\testdata\\svn_repo', 'password': '123', 'mirror_path': 'http://svn.example.com/'}
672
Raw response: {"stat": "fail", "err": {"msg": "There was no repository found at the specified path", "code": 205}}
673
674
--------------------- >> end captured stdout << ----------------------
675
-------------------- >> begin captured logging << --------------------
676
root: ERROR: SVN: Failed to get repository information for file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo: Unable to open an ra_local session to URL
677
Local URL 'file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo' contains only a hostname, no path
678
--------------------- >> end captured logging << ---------------------
679
680
======================================================================
681
FAIL: Testing the POST repositories/ API with a local site
682
----------------------------------------------------------------------
683
Traceback (most recent call last):
684
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 759, in test_post_repository_with_site
685
    self._post_repository(True)
686
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 871, in _post_repository
687
    }, **data), expected_status=expected_status)
688
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
689
    rsp, result = self.api_post_with_response(*args, **kwargs)
690
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
691
    self.assertEqual(response.status_code, expected_status)
692
AssertionError: 400 != 201
693
-------------------- >> begin captured stdout << ---------------------
694
POSTing to /s/local-site-1/api/repositories/
695
Post data: {'path': 'file://C:\\src\\reviewboard\\reviewboard\\scmtools\\testdata\\svn_repo', 'tool': 'Subversion', 'name': 'Test Repository'}
696
Raw response: {"stat": "fail", "err": {"msg": "There was no repository found at the specified path", "code": 205}}
697
698
--------------------- >> end captured stdout << ----------------------
699
-------------------- >> begin captured logging << --------------------
700
root: ERROR: SVN: Failed to get repository information for file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo: Unable to open an ra_local session to URL
701
Local URL 'file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo' contains only a hostname, no path
702
--------------------- >> end captured logging << ---------------------
703
704
======================================================================
705
FAIL: Testing the PUT repositories/<id>/ API
706
----------------------------------------------------------------------
707
Traceback (most recent call last):
708
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 795, in test_put_repository
709
    'raw_file_url': 'http://example.com/<filename>/<version>',
710
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 897, in _put_repository
711
    }, **data), expected_status=expected_status)
712
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 140, in apiPut
713
    expected_redirects)
714
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 82, in api_func_wrapper
715
    self.assertEqual(response.status_code, expected_status)
716
AssertionError: 400 != 200
717
-------------------- >> begin captured stdout << ---------------------
718
PUTing to /api/repositories/1/
719
Post data: {'username': 'user', 'name': 'New Test Repository', 'encoding': 'UTF-8', 'mirror_path': 'http://svn.example.com/', 'raw_file_url': 'http://example.com/<filename>/<version>', 'bug_tracker': 'http://bugtracker/%s/', 'path': 'file://C:\\src\\reviewboard\\reviewboard\\scmtools\\testdata\\svn_repo', 'password': '123', 'public': False}
720
721
--------------------- >> end captured stdout << ----------------------
722
-------------------- >> begin captured logging << --------------------
723
root: ERROR: SVN: Failed to get repository information for file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo: Unable to open an ra_local session to URL
724
Local URL 'file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo' contains only a hostname, no path
725
--------------------- >> end captured logging << ---------------------
726
727
======================================================================
728
FAIL: Testing the PUT repositories/<id>/ API with archive_name=True
729
----------------------------------------------------------------------
730
Traceback (most recent call last):
731
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 826, in test_put_repository_with_archive
732
    repo_id = self._put_repository(False, {'archive_name': True})
733
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 897, in _put_repository
734
    }, **data), expected_status=expected_status)
735
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 140, in apiPut
736
    expected_redirects)
737
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 82, in api_func_wrapper
738
    self.assertEqual(response.status_code, expected_status)
739
AssertionError: 400 != 200
740
-------------------- >> begin captured stdout << ---------------------
741
PUTing to /api/repositories/1/
742
Post data: {'path': 'file://C:\\src\\reviewboard\\reviewboard\\scmtools\\testdata\\svn_repo', 'archive_name': True, 'name': 'New Test Repository'}
743
744
--------------------- >> end captured stdout << ----------------------
745
-------------------- >> begin captured logging << --------------------
746
root: ERROR: SVN: Failed to get repository information for file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo: Unable to open an ra_local session to URL
747
Local URL 'file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo' contains only a hostname, no path
748
--------------------- >> end captured logging << ---------------------
749
750
======================================================================
751
FAIL: Testing the PUT repositories/<id>/ API with a local site
752
----------------------------------------------------------------------
753
Traceback (most recent call last):
754
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 809, in test_put_repository_with_site
755
    'raw_file_url': 'http://example.com/<filename>/<version>',
756
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 897, in _put_repository
757
    }, **data), expected_status=expected_status)
758
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 140, in apiPut
759
    expected_redirects)
760
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 82, in api_func_wrapper
761
    self.assertEqual(response.status_code, expected_status)
762
AssertionError: 400 != 200
763
-------------------- >> begin captured stdout << ---------------------
764
PUTing to /s/local-site-1/api/repositories/4/
765
Post data: {'username': 'user', 'name': 'New Test Repository', 'encoding': 'UTF-8', 'mirror_path': 'http://svn.example.com/', 'raw_file_url': 'http://example.com/<filename>/<version>', 'bug_tracker': 'http://bugtracker/%s/', 'path': 'file://C:\\src\\reviewboard\\reviewboard\\scmtools\\testdata\\svn_repo', 'password': '123', 'public': False}
766
767
--------------------- >> end captured stdout << ----------------------
768
-------------------- >> begin captured logging << --------------------
769
root: ERROR: SVN: Failed to get repository information for file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo: Unable to open an ra_local session to URL
770
Local URL 'file://C:\src\reviewboard\reviewboard\scmtools\testdata\svn_repo' contains only a hostname, no path
771
--------------------- >> end captured logging << ---------------------
772
773
======================================================================
774
FAIL: Testing the DELETE review-requests/<id>/reviews/<id>/diff-comments/<id>/ API
775
----------------------------------------------------------------------
776
Traceback (most recent call last):
777
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 3106, in test_delete_diff_comment_with_interdiff
778
    self._common_post_interdiff_comments(comment_text)
779
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 3269, in _common_post_interdiff_comments
780
    rsp = self._postNewDiff(review_request)
781
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 436, in _postNewDiff
782
    'basedir': "/trunk",
783
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
784
    rsp, result = self.api_post_with_response(*args, **kwargs)
785
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
786
    self.assertEqual(response.status_code, expected_status)
787
AssertionError: 400 != 201
788
-------------------- >> begin captured stdout << ---------------------
789
POSTing to /api/review-requests/
790
Post data: {'repository': 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo'}
791
Raw response: {"stat": "ok", "review_request": {"status": "pending", "last_updated": "2011-10-24 11:34:04", "description": "", "links": {"diffs": {"href": "http://testserver/api/review-requests/1/diffs/", "method": "GET"}, "repository": {"href": "http://testserver/api/repositories/5/", "method": "GET", "title": "Subversion SVN"}, "screenshots": {"href": "http://testserver/api/review-requests/1/screenshots/", "method": "GET"}, "self": {"href": "http://testserver/api/review-requests/1/", "method": "GET"}, "update": {"href": "http://testserver/api/review-requests/1/", "method": "PUT"}, "last_update": {"href": "http://testserver/api/review-requests/1/last-update/", "method": "GET"}, "reviews": {"href": "http://testserver/api/review-requests/1/reviews/", "method": "GET"}, "draft": {"href": "http://testserver/api/review-requests/1/draft/", "method": "GET"}, "file_attachments": {"href": "http://testserver/api/review-requests/1/file-attachments/", "method": "GET"}, "submitter": {"href": "http://testserver/api/users/grumpy/", "method": "GET", "title": "grumpy"}, "changes": {"href": "http://testserver/api/review-requests/1/changes/", "method": "GET"}, "delete": {"href": "http://testserver/api/review-requests/1/", "method": "DELETE"}}, "target_groups": [], "bugs_closed": [], "changenum": null, "target_people": [], "testing_done": "", "branch": "", "id": 1, "time_added": "2011-10-24 11:34:04", "summary": "", "public": false}}
792
Response: {u'stat': u'ok', u'review_request': {u'status': u'pending', u'last_updated': u'2011-10-24 11:34:04', u'description': u'', u'links': {u'diffs': {u'href': u'http://testserver/api/review-requests/1/diffs/', u'method': u'GET'}, u'repository': {u'href': u'http://testserver/api/repositories/5/', u'method': u'GET', u'title': u'Subversion SVN'}, u'changes': {u'href': u'http://testserver/api/review-requests/1/changes/', u'method': u'GET'}, u'self': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'GET'}, u'update': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'PUT'}, u'last_update': {u'href': u'http://testserver/api/review-requests/1/last-update/', u'method': u'GET'}, u'reviews': {u'href': u'http://testserver/api/review-requests/1/reviews/', u'method': u'GET'}, u'draft': {u'href': u'http://testserver/api/review-requests/1/draft/', u'method': u'GET'}, u'file_attachments': {u'href': u'http://testserver/api/review-requests/1/file-attachments/', u'method': u'GET'}, u'submitter': {u'href': u'http://testserver/api/users/grumpy/', u'method': u'GET', u'title': u'grumpy'}, u'screenshots': {u'href': u'http://testserver/api/review-requests/1/screenshots/', u'method': u'GET'}, u'delete': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'DELETE'}}, u'public': False, u'target_groups': [], u'bugs_closed': [], u'changenum': None, u'target_people': [], u'testing_done': u'', u'branch': u'', u'time_added': u'2011-10-24 11:34:04', u'summary': u'', u'id': 1}}
793
POSTing to /api/review-requests/1/diffs/
794
Post data: {'path': <open file 'C:\src\reviewboard\reviewboard\scmtools\testdata\svn_makefile.diff', mode 'r' at 0x0380ACC8>, 'basedir': '/trunk'}
795
Raw response: {"fields": {"path": ["Unable to open an ra_local session to URL\nUnable to open repository 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
796
797
--------------------- >> end captured stdout << ----------------------
798
-------------------- >> begin captured logging << --------------------
799
root: ERROR: Error uploading new diff: Unable to open an ra_local session to URL
800
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
801
Traceback (most recent call last):
802
  File "C:\src\reviewboard\reviewboard\webapi\resources.py", line 1482, in create
803
    request.FILES.get('parent_diff_path'))
804
  File "C:\src\reviewboard\reviewboard\reviews\forms.py", line 286, in create
805
    history)
806
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 63, in create
807
    diff_file, basedir, check_existance=(not parent_diff_file)))
808
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 149, in _process_files
809
    not tool.file_exists(filename, revision))):
810
  File "C:\src\reviewboard\reviewboard\scmtools\core.py", line 70, in file_exists
811
    self.get_file(path, revision)
812
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
813
    raise SCMError(e)
814
SCMError: Unable to open an ra_local session to URL
815
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
816
--------------------- >> end captured logging << ---------------------
817
818
======================================================================
819
FAIL: Testing the GET review-requests/<id>/reviews/<id>/diff-comments/ API with interdiff
820
----------------------------------------------------------------------
821
Traceback (most recent call last):
822
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 3089, in test_get_diff_comments_with_interdiff
823
    self._common_post_interdiff_comments(comment_text)
824
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 3269, in _common_post_interdiff_comments
825
    rsp = self._postNewDiff(review_request)
826
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 436, in _postNewDiff
827
    'basedir': "/trunk",
828
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
829
    rsp, result = self.api_post_with_response(*args, **kwargs)
830
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
831
    self.assertEqual(response.status_code, expected_status)
832
AssertionError: 400 != 201
833
-------------------- >> begin captured stdout << ---------------------
834
POSTing to /api/review-requests/
835
Post data: {'repository': 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo'}
836
Raw response: {"stat": "ok", "review_request": {"status": "pending", "last_updated": "2011-10-24 11:34:14", "description": "", "links": {"diffs": {"href": "http://testserver/api/review-requests/1/diffs/", "method": "GET"}, "repository": {"href": "http://testserver/api/repositories/5/", "method": "GET", "title": "Subversion SVN"}, "screenshots": {"href": "http://testserver/api/review-requests/1/screenshots/", "method": "GET"}, "self": {"href": "http://testserver/api/review-requests/1/", "method": "GET"}, "update": {"href": "http://testserver/api/review-requests/1/", "method": "PUT"}, "last_update": {"href": "http://testserver/api/review-requests/1/last-update/", "method": "GET"}, "reviews": {"href": "http://testserver/api/review-requests/1/reviews/", "method": "GET"}, "draft": {"href": "http://testserver/api/review-requests/1/draft/", "method": "GET"}, "file_attachments": {"href": "http://testserver/api/review-requests/1/file-attachments/", "method": "GET"}, "submitter": {"href": "http://testserver/api/users/grumpy/", "method": "GET", "title": "grumpy"}, "changes": {"href": "http://testserver/api/review-requests/1/changes/", "method": "GET"}, "delete": {"href": "http://testserver/api/review-requests/1/", "method": "DELETE"}}, "target_groups": [], "bugs_closed": [], "changenum": null, "target_people": [], "testing_done": "", "branch": "", "id": 1, "time_added": "2011-10-24 11:34:14", "summary": "", "public": false}}
837
Response: {u'stat': u'ok', u'review_request': {u'status': u'pending', u'last_updated': u'2011-10-24 11:34:14', u'description': u'', u'links': {u'diffs': {u'href': u'http://testserver/api/review-requests/1/diffs/', u'method': u'GET'}, u'repository': {u'href': u'http://testserver/api/repositories/5/', u'method': u'GET', u'title': u'Subversion SVN'}, u'changes': {u'href': u'http://testserver/api/review-requests/1/changes/', u'method': u'GET'}, u'self': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'GET'}, u'update': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'PUT'}, u'last_update': {u'href': u'http://testserver/api/review-requests/1/last-update/', u'method': u'GET'}, u'reviews': {u'href': u'http://testserver/api/review-requests/1/reviews/', u'method': u'GET'}, u'draft': {u'href': u'http://testserver/api/review-requests/1/draft/', u'method': u'GET'}, u'file_attachments': {u'href': u'http://testserver/api/review-requests/1/file-attachments/', u'method': u'GET'}, u'submitter': {u'href': u'http://testserver/api/users/grumpy/', u'method': u'GET', u'title': u'grumpy'}, u'screenshots': {u'href': u'http://testserver/api/review-requests/1/screenshots/', u'method': u'GET'}, u'delete': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'DELETE'}}, u'public': False, u'target_groups': [], u'bugs_closed': [], u'changenum': None, u'target_people': [], u'testing_done': u'', u'branch': u'', u'time_added': u'2011-10-24 11:34:14', u'summary': u'', u'id': 1}}
838
POSTing to /api/review-requests/1/diffs/
839
Post data: {'path': <open file 'C:\src\reviewboard\reviewboard\scmtools\testdata\svn_makefile.diff', mode 'r' at 0x04D55920>, 'basedir': '/trunk'}
840
Raw response: {"fields": {"path": ["Unable to open an ra_local session to URL\nUnable to open repository 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
841
842
--------------------- >> end captured stdout << ----------------------
843
-------------------- >> begin captured logging << --------------------
844
root: ERROR: Error uploading new diff: Unable to open an ra_local session to URL
845
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
846
Traceback (most recent call last):
847
  File "C:\src\reviewboard\reviewboard\webapi\resources.py", line 1482, in create
848
    request.FILES.get('parent_diff_path'))
849
  File "C:\src\reviewboard\reviewboard\reviews\forms.py", line 286, in create
850
    history)
851
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 63, in create
852
    diff_file, basedir, check_existance=(not parent_diff_file)))
853
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 149, in _process_files
854
    not tool.file_exists(filename, revision))):
855
  File "C:\src\reviewboard\reviewboard\scmtools\core.py", line 70, in file_exists
856
    self.get_file(path, revision)
857
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
858
    raise SCMError(e)
859
SCMError: Unable to open an ra_local session to URL
860
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
861
--------------------- >> end captured logging << ---------------------
862
863
======================================================================
864
FAIL: Testing the POST review-requests/<id>/reviews/<id>/diff-comments/ API
865
----------------------------------------------------------------------
866
Traceback (most recent call last):
867
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 3006, in test_post_diff_comments
868
    rsp = self._postNewDiff(review_request)
869
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 436, in _postNewDiff
870
    'basedir': "/trunk",
871
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
872
    rsp, result = self.api_post_with_response(*args, **kwargs)
873
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
874
    self.assertEqual(response.status_code, expected_status)
875
AssertionError: 400 != 201
876
-------------------- >> begin captured stdout << ---------------------
877
POSTing to /api/review-requests/
878
Post data: {'repository': 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo'}
879
Raw response: {"stat": "ok", "review_request": {"status": "pending", "last_updated": "2011-10-24 11:34:16", "description": "", "links": {"diffs": {"href": "http://testserver/api/review-requests/1/diffs/", "method": "GET"}, "repository": {"href": "http://testserver/api/repositories/5/", "method": "GET", "title": "Subversion SVN"}, "screenshots": {"href": "http://testserver/api/review-requests/1/screenshots/", "method": "GET"}, "self": {"href": "http://testserver/api/review-requests/1/", "method": "GET"}, "update": {"href": "http://testserver/api/review-requests/1/", "method": "PUT"}, "last_update": {"href": "http://testserver/api/review-requests/1/last-update/", "method": "GET"}, "reviews": {"href": "http://testserver/api/review-requests/1/reviews/", "method": "GET"}, "draft": {"href": "http://testserver/api/review-requests/1/draft/", "method": "GET"}, "file_attachments": {"href": "http://testserver/api/review-requests/1/file-attachments/", "method": "GET"}, "submitter": {"href": "http://testserver/api/users/grumpy/", "method": "GET", "title": "grumpy"}, "changes": {"href": "http://testserver/api/review-requests/1/changes/", "method": "GET"}, "delete": {"href": "http://testserver/api/review-requests/1/", "method": "DELETE"}}, "target_groups": [], "bugs_closed": [], "changenum": null, "target_people": [], "testing_done": "", "branch": "", "id": 1, "time_added": "2011-10-24 11:34:16", "summary": "", "public": false}}
880
Response: {u'stat': u'ok', u'review_request': {u'status': u'pending', u'last_updated': u'2011-10-24 11:34:16', u'description': u'', u'links': {u'diffs': {u'href': u'http://testserver/api/review-requests/1/diffs/', u'method': u'GET'}, u'repository': {u'href': u'http://testserver/api/repositories/5/', u'method': u'GET', u'title': u'Subversion SVN'}, u'changes': {u'href': u'http://testserver/api/review-requests/1/changes/', u'method': u'GET'}, u'self': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'GET'}, u'update': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'PUT'}, u'last_update': {u'href': u'http://testserver/api/review-requests/1/last-update/', u'method': u'GET'}, u'reviews': {u'href': u'http://testserver/api/review-requests/1/reviews/', u'method': u'GET'}, u'draft': {u'href': u'http://testserver/api/review-requests/1/draft/', u'method': u'GET'}, u'file_attachments': {u'href': u'http://testserver/api/review-requests/1/file-attachments/', u'method': u'GET'}, u'submitter': {u'href': u'http://testserver/api/users/grumpy/', u'method': u'GET', u'title': u'grumpy'}, u'screenshots': {u'href': u'http://testserver/api/review-requests/1/screenshots/', u'method': u'GET'}, u'delete': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'DELETE'}}, u'public': False, u'target_groups': [], u'bugs_closed': [], u'changenum': None, u'target_people': [], u'testing_done': u'', u'branch': u'', u'time_added': u'2011-10-24 11:34:16', u'summary': u'', u'id': 1}}
881
POSTing to /api/review-requests/1/diffs/
882
Post data: {'path': <open file 'C:\src\reviewboard\reviewboard\scmtools\testdata\svn_makefile.diff', mode 'r' at 0x0371DC80>, 'basedir': '/trunk'}
883
Raw response: {"fields": {"path": ["Unable to open an ra_local session to URL\nUnable to open repository 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
884
885
--------------------- >> end captured stdout << ----------------------
886
-------------------- >> begin captured logging << --------------------
887
root: ERROR: Error uploading new diff: Unable to open an ra_local session to URL
888
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
889
Traceback (most recent call last):
890
  File "C:\src\reviewboard\reviewboard\webapi\resources.py", line 1482, in create
891
    request.FILES.get('parent_diff_path'))
892
  File "C:\src\reviewboard\reviewboard\reviews\forms.py", line 286, in create
893
    history)
894
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 63, in create
895
    diff_file, basedir, check_existance=(not parent_diff_file)))
896
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 149, in _process_files
897
    not tool.file_exists(filename, revision))):
898
  File "C:\src\reviewboard\reviewboard\scmtools\core.py", line 70, in file_exists
899
    self.get_file(path, revision)
900
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
901
    raise SCMError(e)
902
SCMError: Unable to open an ra_local session to URL
903
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
904
--------------------- >> end captured logging << ---------------------
905
906
======================================================================
907
FAIL: Testing the POST review-requests/<id>/reviews/<id>/diff-comments/ API with interdiff
908
----------------------------------------------------------------------
909
Traceback (most recent call last):
910
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 3074, in test_post_diff_comments_with_interdiff
911
    self._common_post_interdiff_comments(comment_text)
912
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 3269, in _common_post_interdiff_comments
913
    rsp = self._postNewDiff(review_request)
914
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 436, in _postNewDiff
915
    'basedir': "/trunk",
916
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
917
    rsp, result = self.api_post_with_response(*args, **kwargs)
918
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
919
    self.assertEqual(response.status_code, expected_status)
920
AssertionError: 400 != 201
921
-------------------- >> begin captured stdout << ---------------------
922
POSTing to /api/review-requests/
923
Post data: {'repository': 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo'}
924
Raw response: {"stat": "ok", "review_request": {"status": "pending", "last_updated": "2011-10-24 11:34:16", "description": "", "links": {"diffs": {"href": "http://testserver/api/review-requests/1/diffs/", "method": "GET"}, "repository": {"href": "http://testserver/api/repositories/5/", "method": "GET", "title": "Subversion SVN"}, "screenshots": {"href": "http://testserver/api/review-requests/1/screenshots/", "method": "GET"}, "self": {"href": "http://testserver/api/review-requests/1/", "method": "GET"}, "update": {"href": "http://testserver/api/review-requests/1/", "method": "PUT"}, "last_update": {"href": "http://testserver/api/review-requests/1/last-update/", "method": "GET"}, "reviews": {"href": "http://testserver/api/review-requests/1/reviews/", "method": "GET"}, "draft": {"href": "http://testserver/api/review-requests/1/draft/", "method": "GET"}, "file_attachments": {"href": "http://testserver/api/review-requests/1/file-attachments/", "method": "GET"}, "submitter": {"href": "http://testserver/api/users/grumpy/", "method": "GET", "title": "grumpy"}, "changes": {"href": "http://testserver/api/review-requests/1/changes/", "method": "GET"}, "delete": {"href": "http://testserver/api/review-requests/1/", "method": "DELETE"}}, "target_groups": [], "bugs_closed": [], "changenum": null, "target_people": [], "testing_done": "", "branch": "", "id": 1, "time_added": "2011-10-24 11:34:16", "summary": "", "public": false}}
925
Response: {u'stat': u'ok', u'review_request': {u'status': u'pending', u'last_updated': u'2011-10-24 11:34:16', u'description': u'', u'links': {u'diffs': {u'href': u'http://testserver/api/review-requests/1/diffs/', u'method': u'GET'}, u'repository': {u'href': u'http://testserver/api/repositories/5/', u'method': u'GET', u'title': u'Subversion SVN'}, u'changes': {u'href': u'http://testserver/api/review-requests/1/changes/', u'method': u'GET'}, u'self': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'GET'}, u'update': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'PUT'}, u'last_update': {u'href': u'http://testserver/api/review-requests/1/last-update/', u'method': u'GET'}, u'reviews': {u'href': u'http://testserver/api/review-requests/1/reviews/', u'method': u'GET'}, u'draft': {u'href': u'http://testserver/api/review-requests/1/draft/', u'method': u'GET'}, u'file_attachments': {u'href': u'http://testserver/api/review-requests/1/file-attachments/', u'method': u'GET'}, u'submitter': {u'href': u'http://testserver/api/users/grumpy/', u'method': u'GET', u'title': u'grumpy'}, u'screenshots': {u'href': u'http://testserver/api/review-requests/1/screenshots/', u'method': u'GET'}, u'delete': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'DELETE'}}, u'public': False, u'target_groups': [], u'bugs_closed': [], u'changenum': None, u'target_people': [], u'testing_done': u'', u'branch': u'', u'time_added': u'2011-10-24 11:34:16', u'summary': u'', u'id': 1}}
926
POSTing to /api/review-requests/1/diffs/
927
Post data: {'path': <open file 'C:\src\reviewboard\reviewboard\scmtools\testdata\svn_makefile.diff', mode 'r' at 0x0380C698>, 'basedir': '/trunk'}
928
Raw response: {"fields": {"path": ["Unable to open an ra_local session to URL\nUnable to open repository 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
929
930
--------------------- >> end captured stdout << ----------------------
931
-------------------- >> begin captured logging << --------------------
932
root: ERROR: Error uploading new diff: Unable to open an ra_local session to URL
933
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
934
Traceback (most recent call last):
935
  File "C:\src\reviewboard\reviewboard\webapi\resources.py", line 1482, in create
936
    request.FILES.get('parent_diff_path'))
937
  File "C:\src\reviewboard\reviewboard\reviews\forms.py", line 286, in create
938
    history)
939
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 63, in create
940
    diff_file, basedir, check_existance=(not parent_diff_file)))
941
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 149, in _process_files
942
    not tool.file_exists(filename, revision))):
943
  File "C:\src\reviewboard\reviewboard\scmtools\core.py", line 70, in file_exists
944
    self.get_file(path, revision)
945
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
946
    raise SCMError(e)
947
SCMError: Unable to open an ra_local session to URL
948
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
949
--------------------- >> end captured logging << ---------------------
950
951
======================================================================
952
FAIL: Testing the POST review-requests/<id>/reviews/<id>/diff-comments/ API with an issue
953
----------------------------------------------------------------------
954
Traceback (most recent call last):
955
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 3155, in test_post_diff_comments_with_issue
956
    rsp = self._postNewDiff(review_request)
957
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 436, in _postNewDiff
958
    'basedir': "/trunk",
959
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
960
    rsp, result = self.api_post_with_response(*args, **kwargs)
961
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
962
    self.assertEqual(response.status_code, expected_status)
963
AssertionError: 400 != 201
964
-------------------- >> begin captured stdout << ---------------------
965
POSTing to /api/review-requests/
966
Post data: {'repository': 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo'}
967
Raw response: {"stat": "ok", "review_request": {"status": "pending", "last_updated": "2011-10-24 11:34:17", "description": "", "links": {"diffs": {"href": "http://testserver/api/review-requests/1/diffs/", "method": "GET"}, "repository": {"href": "http://testserver/api/repositories/5/", "method": "GET", "title": "Subversion SVN"}, "screenshots": {"href": "http://testserver/api/review-requests/1/screenshots/", "method": "GET"}, "self": {"href": "http://testserver/api/review-requests/1/", "method": "GET"}, "update": {"href": "http://testserver/api/review-requests/1/", "method": "PUT"}, "last_update": {"href": "http://testserver/api/review-requests/1/last-update/", "method": "GET"}, "reviews": {"href": "http://testserver/api/review-requests/1/reviews/", "method": "GET"}, "draft": {"href": "http://testserver/api/review-requests/1/draft/", "method": "GET"}, "file_attachments": {"href": "http://testserver/api/review-requests/1/file-attachments/", "method": "GET"}, "submitter": {"href": "http://testserver/api/users/grumpy/", "method": "GET", "title": "grumpy"}, "changes": {"href": "http://testserver/api/review-requests/1/changes/", "method": "GET"}, "delete": {"href": "http://testserver/api/review-requests/1/", "method": "DELETE"}}, "target_groups": [], "bugs_closed": [], "changenum": null, "target_people": [], "testing_done": "", "branch": "", "id": 1, "time_added": "2011-10-24 11:34:17", "summary": "", "public": false}}
968
Response: {u'stat': u'ok', u'review_request': {u'status': u'pending', u'last_updated': u'2011-10-24 11:34:17', u'description': u'', u'links': {u'diffs': {u'href': u'http://testserver/api/review-requests/1/diffs/', u'method': u'GET'}, u'repository': {u'href': u'http://testserver/api/repositories/5/', u'method': u'GET', u'title': u'Subversion SVN'}, u'changes': {u'href': u'http://testserver/api/review-requests/1/changes/', u'method': u'GET'}, u'self': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'GET'}, u'update': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'PUT'}, u'last_update': {u'href': u'http://testserver/api/review-requests/1/last-update/', u'method': u'GET'}, u'reviews': {u'href': u'http://testserver/api/review-requests/1/reviews/', u'method': u'GET'}, u'draft': {u'href': u'http://testserver/api/review-requests/1/draft/', u'method': u'GET'}, u'file_attachments': {u'href': u'http://testserver/api/review-requests/1/file-attachments/', u'method': u'GET'}, u'submitter': {u'href': u'http://testserver/api/users/grumpy/', u'method': u'GET', u'title': u'grumpy'}, u'screenshots': {u'href': u'http://testserver/api/review-requests/1/screenshots/', u'method': u'GET'}, u'delete': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'DELETE'}}, u'public': False, u'target_groups': [], u'bugs_closed': [], u'changenum': None, u'target_people': [], u'testing_done': u'', u'branch': u'', u'time_added': u'2011-10-24 11:34:17', u'summary': u'', u'id': 1}}
969
POSTing to /api/review-requests/1/diffs/
970
Post data: {'path': <open file 'C:\src\reviewboard\reviewboard\scmtools\testdata\svn_makefile.diff', mode 'r' at 0x0371D3C8>, 'basedir': '/trunk'}
971
Raw response: {"fields": {"path": ["Unable to open an ra_local session to URL\nUnable to open repository 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
972
973
--------------------- >> end captured stdout << ----------------------
974
-------------------- >> begin captured logging << --------------------
975
root: ERROR: Error uploading new diff: Unable to open an ra_local session to URL
976
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
977
Traceback (most recent call last):
978
  File "C:\src\reviewboard\reviewboard\webapi\resources.py", line 1482, in create
979
    request.FILES.get('parent_diff_path'))
980
  File "C:\src\reviewboard\reviewboard\reviews\forms.py", line 286, in create
981
    history)
982
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 63, in create
983
    diff_file, basedir, check_existance=(not parent_diff_file)))
984
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 149, in _process_files
985
    not tool.file_exists(filename, revision))):
986
  File "C:\src\reviewboard\reviewboard\scmtools\core.py", line 70, in file_exists
987
    self.get_file(path, revision)
988
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
989
    raise SCMError(e)
990
SCMError: Unable to open an ra_local session to URL
991
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
992
--------------------- >> end captured logging << ---------------------
993
994
======================================================================
995
FAIL: Testing the PUT review-requests/<id>/reviews/<id>/diff-comments/<id> API with an issue
996
----------------------------------------------------------------------
997
Traceback (most recent call last):
998
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 3216, in test_update_diff_comment_issue_status
999
    rsp = self._postNewDiff(review_request)
1000
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 436, in _postNewDiff
1001
    'basedir': "/trunk",
1002
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
1003
    rsp, result = self.api_post_with_response(*args, **kwargs)
1004
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
1005
    self.assertEqual(response.status_code, expected_status)
1006
AssertionError: 400 != 201
1007
-------------------- >> begin captured stdout << ---------------------
1008
POSTing to /api/review-requests/
1009
Post data: {'repository': 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo'}
1010
Raw response: {"stat": "ok", "review_request": {"status": "pending", "last_updated": "2011-10-24 11:34:18", "description": "", "links": {"diffs": {"href": "http://testserver/api/review-requests/1/diffs/", "method": "GET"}, "repository": {"href": "http://testserver/api/repositories/5/", "method": "GET", "title": "Subversion SVN"}, "screenshots": {"href": "http://testserver/api/review-requests/1/screenshots/", "method": "GET"}, "self": {"href": "http://testserver/api/review-requests/1/", "method": "GET"}, "update": {"href": "http://testserver/api/review-requests/1/", "method": "PUT"}, "last_update": {"href": "http://testserver/api/review-requests/1/last-update/", "method": "GET"}, "reviews": {"href": "http://testserver/api/review-requests/1/reviews/", "method": "GET"}, "draft": {"href": "http://testserver/api/review-requests/1/draft/", "method": "GET"}, "file_attachments": {"href": "http://testserver/api/review-requests/1/file-attachments/", "method": "GET"}, "submitter": {"href": "http://testserver/api/users/grumpy/", "method": "GET", "title": "grumpy"}, "changes": {"href": "http://testserver/api/review-requests/1/changes/", "method": "GET"}, "delete": {"href": "http://testserver/api/review-requests/1/", "method": "DELETE"}}, "target_groups": [], "bugs_closed": [], "changenum": null, "target_people": [], "testing_done": "", "branch": "", "id": 1, "time_added": "2011-10-24 11:34:18", "summary": "", "public": false}}
1011
Response: {u'stat': u'ok', u'review_request': {u'status': u'pending', u'last_updated': u'2011-10-24 11:34:18', u'description': u'', u'links': {u'diffs': {u'href': u'http://testserver/api/review-requests/1/diffs/', u'method': u'GET'}, u'repository': {u'href': u'http://testserver/api/repositories/5/', u'method': u'GET', u'title': u'Subversion SVN'}, u'changes': {u'href': u'http://testserver/api/review-requests/1/changes/', u'method': u'GET'}, u'self': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'GET'}, u'update': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'PUT'}, u'last_update': {u'href': u'http://testserver/api/review-requests/1/last-update/', u'method': u'GET'}, u'reviews': {u'href': u'http://testserver/api/review-requests/1/reviews/', u'method': u'GET'}, u'draft': {u'href': u'http://testserver/api/review-requests/1/draft/', u'method': u'GET'}, u'file_attachments': {u'href': u'http://testserver/api/review-requests/1/file-attachments/', u'method': u'GET'}, u'submitter': {u'href': u'http://testserver/api/users/grumpy/', u'method': u'GET', u'title': u'grumpy'}, u'screenshots': {u'href': u'http://testserver/api/review-requests/1/screenshots/', u'method': u'GET'}, u'delete': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'DELETE'}}, u'public': False, u'target_groups': [], u'bugs_closed': [], u'changenum': None, u'target_people': [], u'testing_done': u'', u'branch': u'', u'time_added': u'2011-10-24 11:34:18', u'summary': u'', u'id': 1}}
1012
POSTing to /api/review-requests/1/diffs/
1013
Post data: {'path': <open file 'C:\src\reviewboard\reviewboard\scmtools\testdata\svn_makefile.diff', mode 'r' at 0x04F750B0>, 'basedir': '/trunk'}
1014
Raw response: {"fields": {"path": ["Unable to open an ra_local session to URL\nUnable to open repository 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
1015
1016
--------------------- >> end captured stdout << ----------------------
1017
-------------------- >> begin captured logging << --------------------
1018
root: ERROR: Error uploading new diff: Unable to open an ra_local session to URL
1019
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
1020
Traceback (most recent call last):
1021
  File "C:\src\reviewboard\reviewboard\webapi\resources.py", line 1482, in create
1022
    request.FILES.get('parent_diff_path'))
1023
  File "C:\src\reviewboard\reviewboard\reviews\forms.py", line 286, in create
1024
    history)
1025
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 63, in create
1026
    diff_file, basedir, check_existance=(not parent_diff_file)))
1027
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 149, in _process_files
1028
    not tool.file_exists(filename, revision))):
1029
  File "C:\src\reviewboard\reviewboard\scmtools\core.py", line 70, in file_exists
1030
    self.get_file(path, revision)
1031
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
1032
    raise SCMError(e)
1033
SCMError: Unable to open an ra_local session to URL
1034
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
1035
--------------------- >> end captured logging << ---------------------
1036
1037
======================================================================
1038
FAIL: Testing the PUT review-requests/<id>/reviews/<id>/diff-comments/<id> API with an issue
1039
----------------------------------------------------------------------
1040
Traceback (most recent call last):
1041
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 3188, in test_update_diff_comment_with_issue
1042
    rsp = self._postNewDiff(review_request)
1043
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 436, in _postNewDiff
1044
    'basedir': "/trunk",
1045
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 128, in apiPost
1046
    rsp, result = self.api_post_with_response(*args, **kwargs)
1047
  File "C:\src\reviewboard\reviewboard\webapi\tests.py", line 123, in api_post_with_response
1048
    self.assertEqual(response.status_code, expected_status)
1049
AssertionError: 400 != 201
1050
-------------------- >> begin captured stdout << ---------------------
1051
POSTing to /api/review-requests/
1052
Post data: {'repository': 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo'}
1053
Raw response: {"stat": "ok", "review_request": {"status": "pending", "last_updated": "2011-10-24 11:34:19", "description": "", "links": {"diffs": {"href": "http://testserver/api/review-requests/1/diffs/", "method": "GET"}, "repository": {"href": "http://testserver/api/repositories/5/", "method": "GET", "title": "Subversion SVN"}, "screenshots": {"href": "http://testserver/api/review-requests/1/screenshots/", "method": "GET"}, "self": {"href": "http://testserver/api/review-requests/1/", "method": "GET"}, "update": {"href": "http://testserver/api/review-requests/1/", "method": "PUT"}, "last_update": {"href": "http://testserver/api/review-requests/1/last-update/", "method": "GET"}, "reviews": {"href": "http://testserver/api/review-requests/1/reviews/", "method": "GET"}, "draft": {"href": "http://testserver/api/review-requests/1/draft/", "method": "GET"}, "file_attachments": {"href": "http://testserver/api/review-requests/1/file-attachments/", "method": "GET"}, "submitter": {"href": "http://testserver/api/users/grumpy/", "method": "GET", "title": "grumpy"}, "changes": {"href": "http://testserver/api/review-requests/1/changes/", "method": "GET"}, "delete": {"href": "http://testserver/api/review-requests/1/", "method": "DELETE"}}, "target_groups": [], "bugs_closed": [], "changenum": null, "target_people": [], "testing_done": "", "branch": "", "id": 1, "time_added": "2011-10-24 11:34:19", "summary": "", "public": false}}
1054
Response: {u'stat': u'ok', u'review_request': {u'status': u'pending', u'last_updated': u'2011-10-24 11:34:19', u'description': u'', u'links': {u'diffs': {u'href': u'http://testserver/api/review-requests/1/diffs/', u'method': u'GET'}, u'repository': {u'href': u'http://testserver/api/repositories/5/', u'method': u'GET', u'title': u'Subversion SVN'}, u'changes': {u'href': u'http://testserver/api/review-requests/1/changes/', u'method': u'GET'}, u'self': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'GET'}, u'update': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'PUT'}, u'last_update': {u'href': u'http://testserver/api/review-requests/1/last-update/', u'method': u'GET'}, u'reviews': {u'href': u'http://testserver/api/review-requests/1/reviews/', u'method': u'GET'}, u'draft': {u'href': u'http://testserver/api/review-requests/1/draft/', u'method': u'GET'}, u'file_attachments': {u'href': u'http://testserver/api/review-requests/1/file-attachments/', u'method': u'GET'}, u'submitter': {u'href': u'http://testserver/api/users/grumpy/', u'method': u'GET', u'title': u'grumpy'}, u'screenshots': {u'href': u'http://testserver/api/review-requests/1/screenshots/', u'method': u'GET'}, u'delete': {u'href': u'http://testserver/api/review-requests/1/', u'method': u'DELETE'}}, u'public': False, u'target_groups': [], u'bugs_closed': [], u'changenum': None, u'target_people': [], u'testing_done': u'', u'branch': u'', u'time_added': u'2011-10-24 11:34:19', u'summary': u'', u'id': 1}}
1055
POSTing to /api/review-requests/1/diffs/
1056
Post data: {'path': <open file 'C:\src\reviewboard\reviewboard\scmtools\testdata\svn_makefile.diff', mode 'r' at 0x04D2C380>, 'basedir': '/trunk'}
1057
Raw response: {"fields": {"path": ["Unable to open an ra_local session to URL\nUnable to open repository 'file://C:\\src\\reviewboard\\reviewboard\\webapi\\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
1058
1059
--------------------- >> end captured stdout << ----------------------
1060
-------------------- >> begin captured logging << --------------------
1061
root: ERROR: Error uploading new diff: Unable to open an ra_local session to URL
1062
Unable to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
1063
Traceback (most recent call last):
1064
  File "C:\src\reviewboard\reviewboard\webapi\resources.py", line 1482, in create
1065
    request.FILES.get('parent_diff_path'))
1066
  File "C:\src\reviewboard\reviewboard\reviews\forms.py", line 286, in create
1067
    history)
1068
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 63, in create
1069
    diff_file, basedir, check_existance=(not parent_diff_file)))
1070
  File "C:\src\reviewboard\reviewboard\diffviewer\forms.py", line 149, in _process_files
1071
    not tool.file_exists(filename, revision))):
1072
  File "C:\src\reviewboard\reviewboard\scmtools\core.py", line 70, in file_exists
1073
    self.get_file(path, revision)
1074
  File "C:\src\reviewboard\reviewboard\scmtools\svn.py", line 151, in get_file
1075
    raise SCMError(e)
1076
SCMError: Unable to open an ra_local session to URL
1077
UnabCreating test database for alias 'default'...
1078
Destroying test database for alias 'default'...
1079
le to open repository 'file://C:\src\reviewboard\reviewboard\webapi\../scmtools/testdata/svn_repo/trunk/doc/misc-docs/Makefile'
1080
--------------------- >> end captured logging << ---------------------
1081
1082
----------------------------------------------------------------------
1083
Ran 462 tests in 277.688s
1084
1085
FAILED (SKIP=19, errors=4, failures=18)
Loading...