Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.58 KB | None | 0 0
  1. ERROR: test_add_public_key_to_user (opennebula_api.tests.OpenNebulaManagerTestCases)
  2. Test the manager can add a new public key to an user
  3. ----------------------------------------------------------------------
  4. Traceback (most recent call last):
  5. File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
  6. self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
  7. AttributeError: module 'random' has no attribute 'choices'
  8.  
  9. ======================================================================
  10. ERROR: test_append_public_key_to_user (opennebula_api.tests.OpenNebulaManagerTestCases)
  11. Test the manager can append a new public key to an user
  12. ----------------------------------------------------------------------
  13. Traceback (most recent call last):
  14. File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
  15. self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
  16. AttributeError: module 'random' has no attribute 'choices'
  17.  
  18. ======================================================================
  19. ERROR: test_connect_to_server (opennebula_api.tests.OpenNebulaManagerTestCases)
  20. Test the opennebula manager can connect to a server.
  21. ----------------------------------------------------------------------
  22. Traceback (most recent call last):
  23. File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
  24. self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
  25. AttributeError: module 'random' has no attribute 'choices'
  26.  
  27. ======================================================================
  28. ERROR: test_create_and_delete_user (opennebula_api.tests.OpenNebulaManagerTestCases)
  29. Test the opennebula manager can create and delete a new user.
  30. ----------------------------------------------------------------------
  31. Traceback (most recent call last):
  32. File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
  33. self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
  34. AttributeError: module 'random' has no attribute 'choices'
  35.  
  36. ======================================================================
  37. ERROR: test_get_user (opennebula_api.tests.OpenNebulaManagerTestCases)
  38. Test the opennebula manager can get a existing user.
  39. ----------------------------------------------------------------------
  40. Traceback (most recent call last):
  41. File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
  42. self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
  43. AttributeError: module 'random' has no attribute 'choices'
  44.  
  45. ======================================================================
  46. ERROR: test_remove_public_key_to_user (opennebula_api.tests.OpenNebulaManagerTestCases)
  47. Test the manager can remove a public key from an user
  48. ----------------------------------------------------------------------
  49. Traceback (most recent call last):
  50. File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
  51. self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
  52. AttributeError: module 'random' has no attribute 'choices'
  53.  
  54. ======================================================================
  55. ERROR: test_requires_ssh_key_for_new_vm (opennebula_api.tests.OpenNebulaManagerTestCases)
  56. Test the opennebula manager requires the user to have a ssh key when
  57. ----------------------------------------------------------------------
  58. Traceback (most recent call last):
  59. File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
  60. self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
  61. AttributeError: module 'random' has no attribute 'choices'
  62.  
  63. ======================================================================
  64. ERROR: test_user_can_login (opennebula_api.tests.OpenNebulaManagerTestCases)
  65. Test the manager can login to a new created user
  66. ----------------------------------------------------------------------
  67. Traceback (most recent call last):
  68. File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
  69. self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
  70. AttributeError: module 'random' has no attribute 'choices'
  71.  
  72. ======================================================================
  73. ERROR: test_serializer_strips_of_public (opennebula_api.tests.VirtualMachineSerializerTestCase)
  74. Test the serialized virtual machine object contains no 'public-'.
  75. ----------------------------------------------------------------------
  76. Traceback (most recent call last):
  77. File "/home/andrii/study/dynamicweb/opennebula_api/models.py", line 174, in _get_vm_pool
  78. vm_pool = oca.VirtualMachinePool(self.client)
  79. AttributeError: 'OpenNebulaManager' object has no attribute 'client'
  80.  
  81. During handling of the above exception, another exception occurred:
  82.  
  83. Traceback (most recent call last):
  84. File "/home/andrii/study/dynamicweb/opennebula_api/models.py", line 181, in _get_vm_pool
  85. vm_pool.info(filter=-2)
  86. File "/home/andrii/study/dynamicweb/ENV/lib/python3.5/site-packages/oca/vm.py", line 422, in info
  87. range_end, vm_state)
  88. File "/home/andrii/study/dynamicweb/ENV/lib/python3.5/site-packages/oca/pool.py", line 117, in info
  89. range_start, range_end, *args)
  90. File "/home/andrii/study/dynamicweb/ENV/lib/python3.5/site-packages/oca/__init__.py", line 127, in call
  91. raise OpenNebulaException(data)
  92. oca.exceptions.OpenNebulaException: [VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
  93.  
  94. During handling of the above exception, another exception occurred:
  95.  
  96. Traceback (most recent call last):
  97. File "/home/andrii/study/dynamicweb/opennebula_api/models.py", line 198, in get_vms
  98. return self._get_vm_pool()
  99. File "/home/andrii/study/dynamicweb/opennebula_api/models.py", line 184, in _get_vm_pool
  100. raise ConnectionRefusedError
  101. ConnectionRefusedError
  102.  
  103. During handling of the above exception, another exception occurred:
  104.  
  105. Traceback (most recent call last):
  106. File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 136, in test_serializer_strips_of_public
  107. for vm in self.manager.get_vms():
  108. File "/home/andrii/study/dynamicweb/opennebula_api/models.py", line 200, in get_vms
  109. raise ConnectionRefusedError
  110. ConnectionRefusedError
  111.  
  112. ======================================================================
  113. ERROR: hosting.test_forms (unittest.loader._FailedTest)
  114. ----------------------------------------------------------------------
  115. ImportError: Failed to import test module: hosting.test_forms
  116. Traceback (most recent call last):
  117. File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
  118. module = self._get_module_from_name(name)
  119. File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
  120. __import__(name)
  121. File "/home/andrii/study/dynamicweb/hosting/test_forms.py", line 6, in <module>
  122. from .forms import HostingOrderAdminForm, HostingUserLoginForm, HostingUserSignupForm
  123. ImportError: cannot import name 'HostingOrderAdminForm'
  124.  
  125.  
  126. ======================================================================
  127. ERROR: hosting.test_models (unittest.loader._FailedTest)
  128. ----------------------------------------------------------------------
  129. ImportError: Failed to import test module: hosting.test_models
  130. Traceback (most recent call last):
  131. File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
  132. module = self._get_module_from_name(name)
  133. File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
  134. __import__(name)
  135. File "/home/andrii/study/dynamicweb/hosting/test_models.py", line 6, in <module>
  136. from .models import VirtualMachineType
  137. ImportError: cannot import name 'VirtualMachineType'
  138.  
  139.  
  140. ======================================================================
  141. ERROR: hosting.test_views (unittest.loader._FailedTest)
  142. ----------------------------------------------------------------------
  143. ImportError: Failed to import test module: hosting.test_views
  144. Traceback (most recent call last):
  145. File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
  146. module = self._get_module_from_name(name)
  147. File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
  148. __import__(name)
  149. File "/home/andrii/study/dynamicweb/hosting/test_views.py", line 16, in <module>
  150. from .models import VirtualMachineType, HostingOrder, VirtualMachinePlan
  151. ImportError: cannot import name 'VirtualMachineType'
  152.  
  153.  
  154. ======================================================================
  155. ERROR: hosting.tests (unittest.loader._FailedTest)
  156. ----------------------------------------------------------------------
  157. ImportError: Failed to import test module: hosting.tests
  158. Traceback (most recent call last):
  159. File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
  160. module = self._get_module_from_name(name)
  161. File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
  162. __import__(name)
  163. File "/home/andrii/study/dynamicweb/hosting/tests.py", line 5, in <module>
  164. test_user_can_add_ssh_key()
  165. NameError: name 'test_user_can_add_ssh_key' is not defined
  166.  
  167.  
  168. ======================================================================
  169. FAIL: test_post (digitalglarus.test_views.MembershipPaymentViewTest)
  170. ----------------------------------------------------------------------
  171. Traceback (most recent call last):
  172. File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched
  173. return func(*args, **keywargs)
  174. File "/home/andrii/study/dynamicweb/digitalglarus/test_views.py", line 139, in test_post
  175. self.assertTrue(MembershipOrder.objects.filter(customer=stripe_customer).exists())
  176. AssertionError: False is not true
  177.  
  178. ======================================================================
  179. FAIL: test_login (membership.tests.LoginTestCase)
  180. ----------------------------------------------------------------------
  181. Traceback (most recent call last):
  182. File "/home/andrii/study/dynamicweb/membership/tests.py", line 12, in test_login
  183. self.assertContains(res, "You\'re successfully registered!", 1, 200)
  184. File "/home/andrii/study/dynamicweb/ENV/lib/python3.5/site-packages/django/test/testcases.py", line 395, in assertContains
  185. " (expected %d)" % (real_count, text_repr, count))
  186. AssertionError: 0 != 1 : Found 0 instances of 'You're successfully registered!' in response (expected 1)
  187.  
  188. ----------------------------------------------------------------------
  189. Ran 48 tests in 8.099s
  190.  
  191. FAILED (failures=2, errors=13)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement