Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR: test_add_public_key_to_user (opennebula_api.tests.OpenNebulaManagerTestCases)
- Test the manager can add a new public key to an user
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
- self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
- AttributeError: module 'random' has no attribute 'choices'
- ======================================================================
- ERROR: test_append_public_key_to_user (opennebula_api.tests.OpenNebulaManagerTestCases)
- Test the manager can append a new public key to an user
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
- self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
- AttributeError: module 'random' has no attribute 'choices'
- ======================================================================
- ERROR: test_connect_to_server (opennebula_api.tests.OpenNebulaManagerTestCases)
- Test the opennebula manager can connect to a server.
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
- self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
- AttributeError: module 'random' has no attribute 'choices'
- ======================================================================
- ERROR: test_create_and_delete_user (opennebula_api.tests.OpenNebulaManagerTestCases)
- Test the opennebula manager can create and delete a new user.
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
- self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
- AttributeError: module 'random' has no attribute 'choices'
- ======================================================================
- ERROR: test_get_user (opennebula_api.tests.OpenNebulaManagerTestCases)
- Test the opennebula manager can get a existing user.
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
- self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
- AttributeError: module 'random' has no attribute 'choices'
- ======================================================================
- ERROR: test_remove_public_key_to_user (opennebula_api.tests.OpenNebulaManagerTestCases)
- Test the manager can remove a public key from an user
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
- self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
- AttributeError: module 'random' has no attribute 'choices'
- ======================================================================
- ERROR: test_requires_ssh_key_for_new_vm (opennebula_api.tests.OpenNebulaManagerTestCases)
- Test the opennebula manager requires the user to have a ssh key when
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
- self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
- AttributeError: module 'random' has no attribute 'choices'
- ======================================================================
- ERROR: test_user_can_login (opennebula_api.tests.OpenNebulaManagerTestCases)
- Test the manager can login to a new created user
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 18, in setUp
- self.email = '{}@ungleich.ch'.format(''.join(random.choices(string.ascii_uppercase, k=10)))
- AttributeError: module 'random' has no attribute 'choices'
- ======================================================================
- ERROR: test_serializer_strips_of_public (opennebula_api.tests.VirtualMachineSerializerTestCase)
- Test the serialized virtual machine object contains no 'public-'.
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/models.py", line 174, in _get_vm_pool
- vm_pool = oca.VirtualMachinePool(self.client)
- AttributeError: 'OpenNebulaManager' object has no attribute 'client'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/models.py", line 181, in _get_vm_pool
- vm_pool.info(filter=-2)
- File "/home/andrii/study/dynamicweb/ENV/lib/python3.5/site-packages/oca/vm.py", line 422, in info
- range_end, vm_state)
- File "/home/andrii/study/dynamicweb/ENV/lib/python3.5/site-packages/oca/pool.py", line 117, in info
- range_start, range_end, *args)
- File "/home/andrii/study/dynamicweb/ENV/lib/python3.5/site-packages/oca/__init__.py", line 127, in call
- raise OpenNebulaException(data)
- oca.exceptions.OpenNebulaException: [VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/models.py", line 198, in get_vms
- return self._get_vm_pool()
- File "/home/andrii/study/dynamicweb/opennebula_api/models.py", line 184, in _get_vm_pool
- raise ConnectionRefusedError
- ConnectionRefusedError
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/opennebula_api/tests.py", line 136, in test_serializer_strips_of_public
- for vm in self.manager.get_vms():
- File "/home/andrii/study/dynamicweb/opennebula_api/models.py", line 200, in get_vms
- raise ConnectionRefusedError
- ConnectionRefusedError
- ======================================================================
- ERROR: hosting.test_forms (unittest.loader._FailedTest)
- ----------------------------------------------------------------------
- ImportError: Failed to import test module: hosting.test_forms
- Traceback (most recent call last):
- File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
- module = self._get_module_from_name(name)
- File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
- __import__(name)
- File "/home/andrii/study/dynamicweb/hosting/test_forms.py", line 6, in <module>
- from .forms import HostingOrderAdminForm, HostingUserLoginForm, HostingUserSignupForm
- ImportError: cannot import name 'HostingOrderAdminForm'
- ======================================================================
- ERROR: hosting.test_models (unittest.loader._FailedTest)
- ----------------------------------------------------------------------
- ImportError: Failed to import test module: hosting.test_models
- Traceback (most recent call last):
- File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
- module = self._get_module_from_name(name)
- File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
- __import__(name)
- File "/home/andrii/study/dynamicweb/hosting/test_models.py", line 6, in <module>
- from .models import VirtualMachineType
- ImportError: cannot import name 'VirtualMachineType'
- ======================================================================
- ERROR: hosting.test_views (unittest.loader._FailedTest)
- ----------------------------------------------------------------------
- ImportError: Failed to import test module: hosting.test_views
- Traceback (most recent call last):
- File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
- module = self._get_module_from_name(name)
- File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
- __import__(name)
- File "/home/andrii/study/dynamicweb/hosting/test_views.py", line 16, in <module>
- from .models import VirtualMachineType, HostingOrder, VirtualMachinePlan
- ImportError: cannot import name 'VirtualMachineType'
- ======================================================================
- ERROR: hosting.tests (unittest.loader._FailedTest)
- ----------------------------------------------------------------------
- ImportError: Failed to import test module: hosting.tests
- Traceback (most recent call last):
- File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
- module = self._get_module_from_name(name)
- File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
- __import__(name)
- File "/home/andrii/study/dynamicweb/hosting/tests.py", line 5, in <module>
- test_user_can_add_ssh_key()
- NameError: name 'test_user_can_add_ssh_key' is not defined
- ======================================================================
- FAIL: test_post (digitalglarus.test_views.MembershipPaymentViewTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched
- return func(*args, **keywargs)
- File "/home/andrii/study/dynamicweb/digitalglarus/test_views.py", line 139, in test_post
- self.assertTrue(MembershipOrder.objects.filter(customer=stripe_customer).exists())
- AssertionError: False is not true
- ======================================================================
- FAIL: test_login (membership.tests.LoginTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/andrii/study/dynamicweb/membership/tests.py", line 12, in test_login
- self.assertContains(res, "You\'re successfully registered!", 1, 200)
- File "/home/andrii/study/dynamicweb/ENV/lib/python3.5/site-packages/django/test/testcases.py", line 395, in assertContains
- " (expected %d)" % (real_count, text_repr, count))
- AssertionError: 0 != 1 : Found 0 instances of 'You're successfully registered!' in response (expected 1)
- ----------------------------------------------------------------------
- Ran 48 tests in 8.099s
- FAILED (failures=2, errors=13)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement