Skip to content

Instantly share code, notes, and snippets.

@hughsaunders
Last active January 1, 2016 08:09
Show Gist options
  • Save hughsaunders/8116319 to your computer and use it in GitHub Desktop.
Save hughsaunders/8116319 to your computer and use it in GitHub Desktop.
======================================================================
FAIL: tests.serverprovider.test_virsh.VirshProviderTestCase.test_create_vm
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
stderr
stdout
Traceback (most recent call last):
File "/opt/stack/rally/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/opt/stack/rally/tests/serverprovider/test_virsh.py", line 56, in test_create_vm
'./get_domain_ip.sh name', shell=True),
File "/opt/stack/rally/.venv/local/lib/python2.7/site-packages/mock.py", line 863, in assert_has_calls
'Actual: %r' % (calls, self.mock_calls)
AssertionError: Calls not found.
Expected: [call.check_call('virt-clone --connect=qemu+ssh://user@host/system -o prefix -n name --auto-clone', shell=True),
call.check_call('virsh --connect=qemu+ssh://user@host/system start name', shell=True),
call.check_call('scp -o StrictHostKeyChecking=no rally/serverprovider/providers/virsh/get_domain_ip.sh user@host:~/get_domain_ip.sh', shell=True),
call.check_output('ssh -o StrictHostKeyChecking=no user@host ./get_domain_ip.sh name', shell=True)]
Actual: [call.check_call('virt-clone --connect=qemu+ssh://user@host/system -o prefix -n name --auto-clone', shell=True),
call.check_call('virsh --connect=qemu+ssh://user@host/system start name', shell=True),
call.check_call('scp -o StrictHostKeyChecking=no /opt/stack/rally/rally/serverprovider/providers/virsh/get_domain_ip.sh user@host:~/get_domain_ip.sh', shell=True),
call.check_output('ssh -o StrictHostKeyChecking=no user@host ./get_domain_ip.sh name', shell=True)]
Ran 213 tests in 7.729s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment