Advertisement
Guest User

Untitled

a guest
Oct 26th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.78 KB | None | 0 0
  1. response = func(*args, **kwargs)
  2. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 496, in __call__
  3. request, method, view, api_format=api_format, *args, **kwargs)
  4. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 61, in call_method_view
  5. return view(request, *args, **kwargs)
  6. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  7. return view_func(*args, **kwargs)
  8. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
  9. return view_func(*args, **kwargs)
  10. File "/home/justin/developmentSource/djblets/djblets/util/decorators.py", line 78, in _call
  11. f = augmented_func(*args, **kwargs)
  12. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  13. return view_func(*args, **kwargs)
  14. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 34, in _check
  15. return view_func(*args, **kwargs)
  16. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  17. return view_func(*args, **kwargs)
  18. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
  19. return view_func(*args, **kwargs)
  20. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  21. return view_func(*args, **kwargs)
  22. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
  23. return view_func(*args, **new_kwargs)
  24. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 111, in get_list
  25. return self._get_list_impl(request, *args, **kwargs)
  26. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 126, in _get_list_impl
  27. return super(WebAPIResource, self).get_list(request, *args, **kwargs)
  28. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  29. return view_func(*args, **kwargs)
  30. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  31. return view_func(*args, **kwargs)
  32. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
  33. return view_func(*args, **new_kwargs)
  34. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 866, in get_list
  35. **self.build_response_args(request))
  36. File "/home/justin/developmentSource/djblets/djblets/webapi/responses.py", line 171, in __init__
  37. for obj in self.results
  38. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 864, in <lambda>
  39. obj, request=request, *args, **kwargs),
  40. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 1010, in serialize_object
  41. *args, **kwargs),
  42. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/resources/hosting_service_account.py", line 90, in get_links
  43. if not service.supports_list_remote_repositories:
  44. AttributeError: 'NoneType' object has no attribute 'supports_list_remote_repositories'
  45. -------------------- >> begin captured stdout << ---------------------
  46. GETing /s/local-site-1/api/hosting-service-accounts/
  47. Query data: {}
  48.  
  49. --------------------- >> end captured stdout << ----------------------
  50. -------------------- >> begin captured logging << --------------------
  51. root: ERROR: Exception thrown for user doc at http://testserver/s/local-site-1/api/hosting-service-accounts/
  52.  
  53. 'NoneType' object has no attribute 'supports_list_remote_repositories'
  54. Traceback (most recent call last):
  55. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/core/handlers/base.py", line 112, in get_response
  56. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  57. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/views/decorators/cache.py", line 52, in _wrapped_view_func
  58. response = view_func(request, *args, **kwargs)
  59. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/views/decorators/vary.py", line 19, in inner_func
  60. response = func(*args, **kwargs)
  61. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 496, in __call__
  62. request, method, view, api_format=api_format, *args, **kwargs)
  63. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 61, in call_method_view
  64. return view(request, *args, **kwargs)
  65. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  66. return view_func(*args, **kwargs)
  67. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
  68. return view_func(*args, **kwargs)
  69. File "/home/justin/developmentSource/djblets/djblets/util/decorators.py", line 78, in _call
  70. f = augmented_func(*args, **kwargs)
  71. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  72. return view_func(*args, **kwargs)
  73. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 34, in _check
  74. return view_func(*args, **kwargs)
  75. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  76. return view_func(*args, **kwargs)
  77. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
  78. return view_func(*args, **kwargs)
  79. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  80. return view_func(*args, **kwargs)
  81. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
  82. return view_func(*args, **new_kwargs)
  83. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 111, in get_list
  84. return self._get_list_impl(request, *args, **kwargs)
  85. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 126, in _get_list_impl
  86. return super(WebAPIResource, self).get_list(request, *args, **kwargs)
  87. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  88. return view_func(*args, **kwargs)
  89. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  90. return view_func(*args, **kwargs)
  91. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
  92. return view_func(*args, **new_kwargs)
  93. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 866, in get_list
  94. **self.build_response_args(request))
  95. File "/home/justin/developmentSource/djblets/djblets/webapi/responses.py", line 171, in __init__
  96. for obj in self.results
  97. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 864, in <lambda>
  98. obj, request=request, *args, **kwargs),
  99. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 1010, in serialize_object
  100. *args, **kwargs),
  101. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/resources/hosting_service_account.py", line 90, in get_links
  102. if not service.supports_list_remote_repositories:
  103. AttributeError: 'NoneType' object has no attribute 'supports_list_remote_repositories'
  104. --------------------- >> end captured logging << ---------------------
  105.  
  106. ======================================================================
  107. ERROR: Testing the GET hosting-service-accounts/ API with username=
  108. ----------------------------------------------------------------------
  109. Traceback (most recent call last):
  110. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_hosting_service_account.py", line 93, in test_get_with_username
  111. expected_mimetype=hosting_service_account_list_mimetype)
  112. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 117, in api_get
  113. content_type='text/html; charset=utf-8')
  114. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 80, in api_func_wrapper
  115. HTTP_X_REQUESTED_WITH='XMLHttpRequest')
  116. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/test/client.py", line 473, in get
  117. response = super(Client, self).get(path, data=data, **extra)
  118. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/test/client.py", line 280, in get
  119. return self.request(**r)
  120. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/test/client.py", line 444, in request
  121. six.reraise(*exc_info)
  122. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/core/handlers/base.py", line 112, in get_response
  123. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  124. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/views/decorators/cache.py", line 52, in _wrapped_view_func
  125. response = view_func(request, *args, **kwargs)
  126. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/views/decorators/vary.py", line 19, in inner_func
  127. response = func(*args, **kwargs)
  128. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 496, in __call__
  129. request, method, view, api_format=api_format, *args, **kwargs)
  130. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 61, in call_method_view
  131. return view(request, *args, **kwargs)
  132. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  133. return view_func(*args, **kwargs)
  134. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
  135. return view_func(*args, **kwargs)
  136. File "/home/justin/developmentSource/djblets/djblets/util/decorators.py", line 78, in _call
  137. f = augmented_func(*args, **kwargs)
  138. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  139. return view_func(*args, **kwargs)
  140. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 34, in _check
  141. return view_func(*args, **kwargs)
  142. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  143. return view_func(*args, **kwargs)
  144. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
  145. return view_func(*args, **kwargs)
  146. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  147. return view_func(*args, **kwargs)
  148. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
  149. return view_func(*args, **new_kwargs)
  150. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 111, in get_list
  151. return self._get_list_impl(request, *args, **kwargs)
  152. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 126, in _get_list_impl
  153. return super(WebAPIResource, self).get_list(request, *args, **kwargs)
  154. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  155. return view_func(*args, **kwargs)
  156. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  157. return view_func(*args, **kwargs)
  158. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
  159. return view_func(*args, **new_kwargs)
  160. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 866, in get_list
  161. **self.build_response_args(request))
  162. File "/home/justin/developmentSource/djblets/djblets/webapi/responses.py", line 171, in __init__
  163. for obj in self.results
  164. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 864, in <lambda>
  165. obj, request=request, *args, **kwargs),
  166. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 1010, in serialize_object
  167. *args, **kwargs),
  168. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/resources/hosting_service_account.py", line 90, in get_links
  169. if not service.supports_list_remote_repositories:
  170. AttributeError: 'NoneType' object has no attribute 'supports_list_remote_repositories'
  171. -------------------- >> begin captured stdout << ---------------------
  172. GETing /api/hosting-service-accounts/
  173. Query data: {u'username': u'bob'}
  174.  
  175. --------------------- >> end captured stdout << ----------------------
  176. -------------------- >> begin captured logging << --------------------
  177. root: ERROR: Exception thrown for user grumpy at http://testserver/api/hosting-service-accounts/?username=bob
  178.  
  179. 'NoneType' object has no attribute 'supports_list_remote_repositories'
  180. Traceback (most recent call last):
  181. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/core/handlers/base.py", line 112, in get_response
  182. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  183. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/views/decorators/cache.py", line 52, in _wrapped_view_func
  184. response = view_func(request, *args, **kwargs)
  185. File "/home/justin/developmentEnvironments/reviewboard/lib/python2.7/site-packages/Django-1.6.6-py2.7.egg/django/views/decorators/vary.py", line 19, in inner_func
  186. response = func(*args, **kwargs)
  187. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 496, in __call__
  188. request, method, view, api_format=api_format, *args, **kwargs)
  189. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 61, in call_method_view
  190. return view(request, *args, **kwargs)
  191. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  192. return view_func(*args, **kwargs)
  193. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
  194. return view_func(*args, **kwargs)
  195. File "/home/justin/developmentSource/djblets/djblets/util/decorators.py", line 78, in _call
  196. f = augmented_func(*args, **kwargs)
  197. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  198. return view_func(*args, **kwargs)
  199. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 34, in _check
  200. return view_func(*args, **kwargs)
  201. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  202. return view_func(*args, **kwargs)
  203. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
  204. return view_func(*args, **kwargs)
  205. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  206. return view_func(*args, **kwargs)
  207. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
  208. return view_func(*args, **new_kwargs)
  209. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 111, in get_list
  210. return self._get_list_impl(request, *args, **kwargs)
  211. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 126, in _get_list_impl
  212. return super(WebAPIResource, self).get_list(request, *args, **kwargs)
  213. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  214. return view_func(*args, **kwargs)
  215. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
  216. return view_func(*args, **kwargs)
  217. File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
  218. return view_func(*args, **new_kwargs)
  219. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 866, in get_list
  220. **self.build_response_args(request))
  221. File "/home/justin/developmentSource/djblets/djblets/webapi/responses.py", line 171, in __init__
  222. for obj in self.results
  223. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 864, in <lambda>
  224. obj, request=request, *args, **kwargs),
  225. File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 1010, in serialize_object
  226. *args, **kwargs),
  227. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/resources/hosting_service_account.py", line 90, in get_links
  228. if not service.supports_list_remote_repositories:
  229. AttributeError: 'NoneType' object has no attribute 'supports_list_remote_repositories'
  230. --------------------- >> end captured logging << ---------------------
  231.  
  232. ======================================================================
  233. ERROR: Testing the DELETE hosting-service-accounts/<id>/remote-repositories/<id>/ API gives Method Not Allowed
  234. ----------------------------------------------------------------------
  235. Traceback (most recent call last):
  236. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  237. return test_func(*args, **kwargs)
  238. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 304, in test_delete_method_not_allowed
  239. url = self.setup_http_not_allowed_item_test(self.user)
  240. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 125, in setup_http_not_allowed_item_test
  241. path='ssh://example.com/repo1')
  242. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  243. self.hosting_service_account = hosting_service.account
  244. AttributeError: 'NoneType' object has no attribute 'account'
  245.  
  246. ======================================================================
  247. ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/<id>/ API
  248. ----------------------------------------------------------------------
  249. Traceback (most recent call last):
  250. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  251. return test_func(*args, **kwargs)
  252. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 331, in test_get
  253. url, mimetype, item = self.setup_basic_get_test(self.user, False, None)
  254. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 151, in setup_basic_get_test
  255. mirror_path='https://example.com/repo1')
  256. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  257. self.hosting_service_account = hosting_service.account
  258. AttributeError: 'NoneType' object has no attribute 'account'
  259.  
  260. ======================================================================
  261. ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/<id>/ API with access to a local site and session restricted to the site
  262. ----------------------------------------------------------------------
  263. Traceback (most recent call last):
  264. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  265. return test_func(*args, **kwargs)
  266. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 414, in test_get_with_restrict_site_and_allowed
  267. webapi_token_local_site_id=self.local_site_id)
  268. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 394, in _setup_test_get_with_site
  269. self.setup_basic_get_test(user, True, self.local_site_name)
  270. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 151, in setup_basic_get_test
  271. mirror_path='https://example.com/repo1')
  272. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  273. self.hosting_service_account = hosting_service.account
  274. AttributeError: 'NoneType' object has no attribute 'account'
  275.  
  276. ======================================================================
  277. ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/<id>/ API with access to a local site and session restricted to a different site
  278. ----------------------------------------------------------------------
  279. Traceback (most recent call last):
  280. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  281. return test_func(*args, **kwargs)
  282. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 436, in test_get_with_restrict_site_and_not_allowed
  283. webapi_token_local_site_id=self.local_site_id + 1)
  284. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 394, in _setup_test_get_with_site
  285. self.setup_basic_get_test(user, True, self.local_site_name)
  286. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 151, in setup_basic_get_test
  287. mirror_path='https://example.com/repo1')
  288. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  289. self.hosting_service_account = hosting_service.account
  290. AttributeError: 'NoneType' object has no attribute 'account'
  291.  
  292. ======================================================================
  293. ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/<id>/ API with access to a local site
  294. ----------------------------------------------------------------------
  295. Traceback (most recent call last):
  296. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  297. return test_func(*args, **kwargs)
  298. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 358, in test_get_with_site
  299. user, url, mimetype, item = self._setup_test_get_with_site()
  300. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 394, in _setup_test_get_with_site
  301. self.setup_basic_get_test(user, True, self.local_site_name)
  302. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 151, in setup_basic_get_test
  303. mirror_path='https://example.com/repo1')
  304. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  305. self.hosting_service_account = hosting_service.account
  306. AttributeError: 'NoneType' object has no attribute 'account'
  307.  
  308. ======================================================================
  309. ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/<id>/ API without access to a local site
  310. ----------------------------------------------------------------------
  311. Traceback (most recent call last):
  312. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  313. return test_func(*args, **kwargs)
  314. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 377, in test_get_with_site_no_access
  315. user, url, mimetype, item = self._setup_test_get_with_site()
  316. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 394, in _setup_test_get_with_site
  317. self.setup_basic_get_test(user, True, self.local_site_name)
  318. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 151, in setup_basic_get_test
  319. mirror_path='https://example.com/repo1')
  320. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  321. self.hosting_service_account = hosting_service.account
  322. AttributeError: 'NoneType' object has no attribute 'account'
  323.  
  324. ======================================================================
  325. ERROR: Testing the PUT hosting-service-accounts/<id>/remote-repositories/<id>/ API gives Method Not Allowed
  326. ----------------------------------------------------------------------
  327. Traceback (most recent call last):
  328. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  329. return test_func(*args, **kwargs)
  330. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 874, in test_put_method_not_allowed
  331. url = self.setup_http_not_allowed_item_test(self.user)
  332. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 125, in setup_http_not_allowed_item_test
  333. path='ssh://example.com/repo1')
  334. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  335. self.hosting_service_account = hosting_service.account
  336. AttributeError: 'NoneType' object has no attribute 'account'
  337.  
  338. ======================================================================
  339. ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/ API
  340. ----------------------------------------------------------------------
  341. Traceback (most recent call last):
  342. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  343. return test_func(*args, **kwargs)
  344. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 466, in test_get
  345. None, True)
  346. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 85, in setup_basic_get_test
  347. mirror_path='https://example.com/repo1'),
  348. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  349. self.hosting_service_account = hosting_service.account
  350. AttributeError: 'NoneType' object has no attribute 'account'
  351.  
  352. ======================================================================
  353. ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/ API with access to a local site and session restricted to the site
  354. ----------------------------------------------------------------------
  355. Traceback (most recent call last):
  356. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  357. return test_func(*args, **kwargs)
  358. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 544, in test_get_with_restrict_site_and_allowed
  359. webapi_token_local_site_id=self.local_site_id)
  360. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 524, in _setup_test_get_list_with_site
  361. True)
  362. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 85, in setup_basic_get_test
  363. mirror_path='https://example.com/repo1'),
  364. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  365. self.hosting_service_account = hosting_service.account
  366. AttributeError: 'NoneType' object has no attribute 'account'
  367.  
  368. ======================================================================
  369. ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/ API with access to a local site and session restricted to a different site
  370. ----------------------------------------------------------------------
  371. Traceback (most recent call last):
  372. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  373. return test_func(*args, **kwargs)
  374. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 564, in test_get_with_restrict_site_and_not_allowed
  375. webapi_token_local_site_id=self.local_site_id + 1)
  376. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 524, in _setup_test_get_list_with_site
  377. True)
  378. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 85, in setup_basic_get_test
  379. mirror_path='https://example.com/repo1'),
  380. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  381. self.hosting_service_account = hosting_service.account
  382. AttributeError: 'NoneType' object has no attribute 'account'
  383.  
  384. ======================================================================
  385. ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/ API with access to a local site
  386. ----------------------------------------------------------------------
  387. Traceback (most recent call last):
  388. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  389. return test_func(*args, **kwargs)
  390. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 490, in test_get_with_site
  391. user, url, mimetype, items = self._setup_test_get_list_with_site()
  392. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 524, in _setup_test_get_list_with_site
  393. True)
  394. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 85, in setup_basic_get_test
  395. mirror_path='https://example.com/repo1'),
  396. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  397. self.hosting_service_account = hosting_service.account
  398. AttributeError: 'NoneType' object has no attribute 'account'
  399.  
  400. ======================================================================
  401. ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/ API without access to a local site
  402. ----------------------------------------------------------------------
  403. Traceback (most recent call last):
  404. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  405. return test_func(*args, **kwargs)
  406. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 506, in test_get_with_site_no_access
  407. user, url, mimetype, items = self._setup_test_get_list_with_site()
  408. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 524, in _setup_test_get_list_with_site
  409. True)
  410. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 85, in setup_basic_get_test
  411. mirror_path='https://example.com/repo1'),
  412. File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
  413. self.hosting_service_account = hosting_service.account
  414. AttributeError: 'NoneType' object has no attribute 'account'
  415.  
  416. ======================================================================
  417. FAIL: Testing RepositoryForm with hosting service's bug tracker
  418. ----------------------------------------------------------------------
  419. Traceback (most recent call last):
  420. File "/home/justin/developmentSource/reviewboard/reviewboard/scmtools/tests.py", line 2823, in test_with_hosting_service_with_hosting_bug_tracker
  421. self.assertTrue(form.is_valid())
  422. AssertionError: False is not true
  423.  
  424. ======================================================================
  425. FAIL: Testing RepositoryForm with self-hosted hosting service's bug tracker
  426. ----------------------------------------------------------------------
  427. Traceback (most recent call last):
  428. File "/home/justin/developmentSource/reviewboard/reviewboard/scmtools/tests.py", line 2861, in test_with_hosting_service_with_hosting_bug_tracker_and_self_hosted
  429. self.assertTrue(form.is_valid())
  430. AssertionError: False is not true
  431.  
  432. ======================================================================
  433. FAIL: Testing the POST hosting-services-accounts/ API
  434. ----------------------------------------------------------------------
  435. Traceback (most recent call last):
  436. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  437. return test_func(*args, **kwargs)
  438. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 604, in test_post
  439. rsp = self.api_post(url, post_data, expected_mimetype=mimetype)
  440. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 155, in api_post
  441. rsp, result = self.api_post_with_response(*args, **kwargs)
  442. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 141, in api_post_with_response
  443. self.assertEqual(response.status_code, expected_status)
  444. AssertionError: 400 != 201
  445. -------------------- >> begin captured stdout << ---------------------
  446. POSTing to /api/hosting-service-accounts/
  447. Post data: {u'username': u'bob', u'service_id': u'googlecode'}
  448. Raw response: {"fields": {"service": ["This is not a valid service name"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
  449.  
  450. --------------------- >> end captured stdout << ----------------------
  451.  
  452. ======================================================================
  453. FAIL: Testing the POST hosting-services-accounts/ API with access to a local site and session restricted to the site
  454. ----------------------------------------------------------------------
  455. Traceback (most recent call last):
  456. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  457. return test_func(*args, **kwargs)
  458. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 674, in test_post_with_restrict_site_and_allowed
  459. rsp = self.api_post(url, post_data, expected_mimetype=mimetype)
  460. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 155, in api_post
  461. rsp, result = self.api_post_with_response(*args, **kwargs)
  462. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 141, in api_post_with_response
  463. self.assertEqual(response.status_code, expected_status)
  464. AssertionError: 400 != 201
  465. -------------------- >> begin captured stdout << ---------------------
  466. POSTing to /s/local-site-1/api/hosting-service-accounts/
  467. Post data: {u'username': u'bob', u'service_id': u'googlecode'}
  468. Raw response: {"fields": {"service": ["This is not a valid service name"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
  469.  
  470. --------------------- >> end captured stdout << ----------------------
  471.  
  472. ======================================================================
  473. FAIL: Testing the POST hosting-services-accounts/ API with access to a local site
  474. ----------------------------------------------------------------------
  475. Traceback (most recent call last):
  476. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
  477. return test_func(*args, **kwargs)
  478. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 623, in test_post_with_site
  479. rsp = self.api_post(url, post_data, expected_mimetype=mimetype)
  480. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 155, in api_post
  481. rsp, result = self.api_post_with_response(*args, **kwargs)
  482. File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 141, in api_post_with_response
  483. self.assertEqual(response.status_code, expected_status)
  484. AssertionError: 400 != 201
  485. -------------------- >> begin captured stdout << ---------------------
  486. POSTing to /s/local-site-1/api/hosting-service-accounts/
  487. Post data: {u'username': u'bob', u'service_id': u'googlecode'}
  488. Raw response: {"fields": {"service": ["This is not a valid service name"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
  489.  
  490. --------------------- >> end captured stdout << ----------------------
  491.  
  492. ----------------------------------------------------------------------
  493. Ran 1969 tests in 316.897s
  494.  
  495. FAILED (SKIP=113, errors=170, failures=5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement