Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- response = func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 496, in __call__
- request, method, view, api_format=api_format, *args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 61, in call_method_view
- return view(request, *args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/util/decorators.py", line 78, in _call
- f = augmented_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 34, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
- return view_func(*args, **new_kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 111, in get_list
- return self._get_list_impl(request, *args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 126, in _get_list_impl
- return super(WebAPIResource, self).get_list(request, *args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
- return view_func(*args, **new_kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 866, in get_list
- **self.build_response_args(request))
- File "/home/justin/developmentSource/djblets/djblets/webapi/responses.py", line 171, in __init__
- for obj in self.results
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 864, in <lambda>
- obj, request=request, *args, **kwargs),
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 1010, in serialize_object
- *args, **kwargs),
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/resources/hosting_service_account.py", line 90, in get_links
- if not service.supports_list_remote_repositories:
- AttributeError: 'NoneType' object has no attribute 'supports_list_remote_repositories'
- -------------------- >> begin captured stdout << ---------------------
- GETing /s/local-site-1/api/hosting-service-accounts/
- Query data: {}
- --------------------- >> end captured stdout << ----------------------
- -------------------- >> begin captured logging << --------------------
- root: ERROR: Exception thrown for user doc at http://testserver/s/local-site-1/api/hosting-service-accounts/
- 'NoneType' object has no attribute 'supports_list_remote_repositories'
- Traceback (most recent call last):
- 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
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- 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
- response = view_func(request, *args, **kwargs)
- 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
- response = func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 496, in __call__
- request, method, view, api_format=api_format, *args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 61, in call_method_view
- return view(request, *args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/util/decorators.py", line 78, in _call
- f = augmented_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 34, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
- return view_func(*args, **new_kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 111, in get_list
- return self._get_list_impl(request, *args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 126, in _get_list_impl
- return super(WebAPIResource, self).get_list(request, *args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
- return view_func(*args, **new_kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 866, in get_list
- **self.build_response_args(request))
- File "/home/justin/developmentSource/djblets/djblets/webapi/responses.py", line 171, in __init__
- for obj in self.results
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 864, in <lambda>
- obj, request=request, *args, **kwargs),
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 1010, in serialize_object
- *args, **kwargs),
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/resources/hosting_service_account.py", line 90, in get_links
- if not service.supports_list_remote_repositories:
- AttributeError: 'NoneType' object has no attribute 'supports_list_remote_repositories'
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: Testing the GET hosting-service-accounts/ API with username=
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_hosting_service_account.py", line 93, in test_get_with_username
- expected_mimetype=hosting_service_account_list_mimetype)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 117, in api_get
- content_type='text/html; charset=utf-8')
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 80, in api_func_wrapper
- HTTP_X_REQUESTED_WITH='XMLHttpRequest')
- 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
- response = super(Client, self).get(path, data=data, **extra)
- 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
- return self.request(**r)
- 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
- six.reraise(*exc_info)
- 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
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- 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
- response = view_func(request, *args, **kwargs)
- 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
- response = func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 496, in __call__
- request, method, view, api_format=api_format, *args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 61, in call_method_view
- return view(request, *args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/util/decorators.py", line 78, in _call
- f = augmented_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 34, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
- return view_func(*args, **new_kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 111, in get_list
- return self._get_list_impl(request, *args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 126, in _get_list_impl
- return super(WebAPIResource, self).get_list(request, *args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
- return view_func(*args, **new_kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 866, in get_list
- **self.build_response_args(request))
- File "/home/justin/developmentSource/djblets/djblets/webapi/responses.py", line 171, in __init__
- for obj in self.results
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 864, in <lambda>
- obj, request=request, *args, **kwargs),
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 1010, in serialize_object
- *args, **kwargs),
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/resources/hosting_service_account.py", line 90, in get_links
- if not service.supports_list_remote_repositories:
- AttributeError: 'NoneType' object has no attribute 'supports_list_remote_repositories'
- -------------------- >> begin captured stdout << ---------------------
- GETing /api/hosting-service-accounts/
- Query data: {u'username': u'bob'}
- --------------------- >> end captured stdout << ----------------------
- -------------------- >> begin captured logging << --------------------
- root: ERROR: Exception thrown for user grumpy at http://testserver/api/hosting-service-accounts/?username=bob
- 'NoneType' object has no attribute 'supports_list_remote_repositories'
- Traceback (most recent call last):
- 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
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- 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
- response = view_func(request, *args, **kwargs)
- 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
- response = func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 496, in __call__
- request, method, view, api_format=api_format, *args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 61, in call_method_view
- return view(request, *args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/util/decorators.py", line 78, in _call
- f = augmented_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 34, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/decorators.py", line 121, in _check
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
- return view_func(*args, **new_kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 111, in get_list
- return self._get_list_impl(request, *args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/base.py", line 126, in _get_list_impl
- return super(WebAPIResource, self).get_list(request, *args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 117, in _call
- return view_func(*args, **kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/decorators.py", line 287, in _validate
- return view_func(*args, **new_kwargs)
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 866, in get_list
- **self.build_response_args(request))
- File "/home/justin/developmentSource/djblets/djblets/webapi/responses.py", line 171, in __init__
- for obj in self.results
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 864, in <lambda>
- obj, request=request, *args, **kwargs),
- File "/home/justin/developmentSource/djblets/djblets/webapi/resources.py", line 1010, in serialize_object
- *args, **kwargs),
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/resources/hosting_service_account.py", line 90, in get_links
- if not service.supports_list_remote_repositories:
- AttributeError: 'NoneType' object has no attribute 'supports_list_remote_repositories'
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: Testing the DELETE hosting-service-accounts/<id>/remote-repositories/<id>/ API gives Method Not Allowed
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 304, in test_delete_method_not_allowed
- url = self.setup_http_not_allowed_item_test(self.user)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 125, in setup_http_not_allowed_item_test
- path='ssh://example.com/repo1')
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/<id>/ API
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 331, in test_get
- url, mimetype, item = self.setup_basic_get_test(self.user, False, None)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 151, in setup_basic_get_test
- mirror_path='https://example.com/repo1')
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/<id>/ API with access to a local site and session restricted to the site
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 414, in test_get_with_restrict_site_and_allowed
- webapi_token_local_site_id=self.local_site_id)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 394, in _setup_test_get_with_site
- self.setup_basic_get_test(user, True, self.local_site_name)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 151, in setup_basic_get_test
- mirror_path='https://example.com/repo1')
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- 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
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 436, in test_get_with_restrict_site_and_not_allowed
- webapi_token_local_site_id=self.local_site_id + 1)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 394, in _setup_test_get_with_site
- self.setup_basic_get_test(user, True, self.local_site_name)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 151, in setup_basic_get_test
- mirror_path='https://example.com/repo1')
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/<id>/ API with access to a local site
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 358, in test_get_with_site
- user, url, mimetype, item = self._setup_test_get_with_site()
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 394, in _setup_test_get_with_site
- self.setup_basic_get_test(user, True, self.local_site_name)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 151, in setup_basic_get_test
- mirror_path='https://example.com/repo1')
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/<id>/ API without access to a local site
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 377, in test_get_with_site_no_access
- user, url, mimetype, item = self._setup_test_get_with_site()
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 394, in _setup_test_get_with_site
- self.setup_basic_get_test(user, True, self.local_site_name)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 151, in setup_basic_get_test
- mirror_path='https://example.com/repo1')
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- ERROR: Testing the PUT hosting-service-accounts/<id>/remote-repositories/<id>/ API gives Method Not Allowed
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 874, in test_put_method_not_allowed
- url = self.setup_http_not_allowed_item_test(self.user)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 125, in setup_http_not_allowed_item_test
- path='ssh://example.com/repo1')
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/ API
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 466, in test_get
- None, True)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 85, in setup_basic_get_test
- mirror_path='https://example.com/repo1'),
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/ API with access to a local site and session restricted to the site
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 544, in test_get_with_restrict_site_and_allowed
- webapi_token_local_site_id=self.local_site_id)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 524, in _setup_test_get_list_with_site
- True)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 85, in setup_basic_get_test
- mirror_path='https://example.com/repo1'),
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/ API with access to a local site and session restricted to a different site
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 564, in test_get_with_restrict_site_and_not_allowed
- webapi_token_local_site_id=self.local_site_id + 1)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 524, in _setup_test_get_list_with_site
- True)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 85, in setup_basic_get_test
- mirror_path='https://example.com/repo1'),
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/ API with access to a local site
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 490, in test_get_with_site
- user, url, mimetype, items = self._setup_test_get_list_with_site()
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 524, in _setup_test_get_list_with_site
- True)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 85, in setup_basic_get_test
- mirror_path='https://example.com/repo1'),
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- ERROR: Testing the GET hosting-service-accounts/<id>/remote-repositories/ API without access to a local site
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 506, in test_get_with_site_no_access
- user, url, mimetype, items = self._setup_test_get_list_with_site()
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 524, in _setup_test_get_list_with_site
- True)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/test_remote_repository.py", line 85, in setup_basic_get_test
- mirror_path='https://example.com/repo1'),
- File "/home/justin/developmentSource/reviewboard/reviewboard/hostingsvcs/repository.py", line 14, in __init__
- self.hosting_service_account = hosting_service.account
- AttributeError: 'NoneType' object has no attribute 'account'
- ======================================================================
- FAIL: Testing RepositoryForm with hosting service's bug tracker
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/scmtools/tests.py", line 2823, in test_with_hosting_service_with_hosting_bug_tracker
- self.assertTrue(form.is_valid())
- AssertionError: False is not true
- ======================================================================
- FAIL: Testing RepositoryForm with self-hosted hosting service's bug tracker
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/scmtools/tests.py", line 2861, in test_with_hosting_service_with_hosting_bug_tracker_and_self_hosted
- self.assertTrue(form.is_valid())
- AssertionError: False is not true
- ======================================================================
- FAIL: Testing the POST hosting-services-accounts/ API
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 604, in test_post
- rsp = self.api_post(url, post_data, expected_mimetype=mimetype)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 155, in api_post
- rsp, result = self.api_post_with_response(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 141, in api_post_with_response
- self.assertEqual(response.status_code, expected_status)
- AssertionError: 400 != 201
- -------------------- >> begin captured stdout << ---------------------
- POSTing to /api/hosting-service-accounts/
- Post data: {u'username': u'bob', u'service_id': u'googlecode'}
- Raw response: {"fields": {"service": ["This is not a valid service name"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
- --------------------- >> end captured stdout << ----------------------
- ======================================================================
- FAIL: Testing the POST hosting-services-accounts/ API with access to a local site and session restricted to the site
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 674, in test_post_with_restrict_site_and_allowed
- rsp = self.api_post(url, post_data, expected_mimetype=mimetype)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 155, in api_post
- rsp, result = self.api_post_with_response(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 141, in api_post_with_response
- self.assertEqual(response.status_code, expected_status)
- AssertionError: 400 != 201
- -------------------- >> begin captured stdout << ---------------------
- POSTing to /s/local-site-1/api/hosting-service-accounts/
- Post data: {u'username': u'bob', u'service_id': u'googlecode'}
- Raw response: {"fields": {"service": ["This is not a valid service name"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
- --------------------- >> end captured stdout << ----------------------
- ======================================================================
- FAIL: Testing the POST hosting-services-accounts/ API with access to a local site
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 22, in _call
- return test_func(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/mixins.py", line 623, in test_post_with_site
- rsp = self.api_post(url, post_data, expected_mimetype=mimetype)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 155, in api_post
- rsp, result = self.api_post_with_response(*args, **kwargs)
- File "/home/justin/developmentSource/reviewboard/reviewboard/webapi/tests/base.py", line 141, in api_post_with_response
- self.assertEqual(response.status_code, expected_status)
- AssertionError: 400 != 201
- -------------------- >> begin captured stdout << ---------------------
- POSTing to /s/local-site-1/api/hosting-service-accounts/
- Post data: {u'username': u'bob', u'service_id': u'googlecode'}
- Raw response: {"fields": {"service": ["This is not a valid service name"]}, "stat": "fail", "err": {"msg": "One or more fields had errors", "code": 105}}
- --------------------- >> end captured stdout << ----------------------
- ----------------------------------------------------------------------
- Ran 1969 tests in 316.897s
- FAILED (SKIP=113, errors=170, failures=5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement