Skip to content

Instantly share code, notes, and snippets.

@lantins
Created October 18, 2012 00:02
Show Gist options
  • Select an option

  • Save lantins/3909103 to your computer and use it in GitHub Desktop.

Select an option

Save lantins/3909103 to your computer and use it in GitHub Desktop.
root@server1:~/ansible# make tests
PYTHONPATH=./lib nosetests -d -v
test_complex_enumeration (TestInventory.TestInventory) ... ok
test_complex_exclude (TestInventory.TestInventory) ... ok
test_complex_vars (TestInventory.TestInventory) ... ok
Test the case when playbook 'hosts' var is a list. ... ok
test_script (TestInventory.TestInventory) ... ok
test_script_all (TestInventory.TestInventory) ... ok
test_script_combined (TestInventory.TestInventory) ... ok
test_script_multiple_groups (TestInventory.TestInventory) ... ok
test_script_norse (TestInventory.TestInventory) ... ok
test_script_restrict (TestInventory.TestInventory) ... ok
test_script_vars (TestInventory.TestInventory) ... ok
test_simple (TestInventory.TestInventory) ... ok
test_simple_all (TestInventory.TestInventory) ... ok
test_simple_combined (TestInventory.TestInventory) ... ok
test_simple_norse (TestInventory.TestInventory) ... ok
test_simple_port (TestInventory.TestInventory) ... ok
test_simple_restrict (TestInventory.TestInventory) ... ok
test_simple_ungrouped (TestInventory.TestInventory) ... ok
test_simple_vars (TestInventory.TestInventory) ... ok
test_one (TestPlayBook.TestPlaybook) ... FAIL
test_playbook_vars (TestPlayBook.TestPlaybook) ... ok
test_yaml_hosts_list (TestPlayBook.TestPlaybook) ... ok
test_assemble (TestRunner.TestRunner) ... FAIL
test_async (TestRunner.TestRunner) ... FAIL
test_command (TestRunner.TestRunner) ... FAIL
test_copy (TestRunner.TestRunner) ... FAIL
test_facter (TestRunner.TestRunner) ... SKIP
test_fetch (TestRunner.TestRunner) ... FAIL
test_file (TestRunner.TestRunner) ... FAIL
test_git (TestRunner.TestRunner) ... FAIL
test_large_output (TestRunner.TestRunner) ... SKIP
test_ping (TestRunner.TestRunner) ... FAIL
test_parse_kv_basic (TestUtils.TestUtils) ... ok
test_template_basic (TestUtils.TestUtils) ... ok
test_template_unicode (TestUtils.TestUtils) ... ok
test_template_varReplace_iterated (TestUtils.TestUtils) ... ok
test_template_whitespace (TestUtils.TestUtils) ... ok
test_varReplaceWithItems_basic (TestUtils.TestUtils) ... ok
test_varReplace_almost_alternative (TestUtils.TestUtils) ... ok
test_varReplace_almost_alternative2 (TestUtils.TestUtils) ... ok
test_varReplace_alternative (TestUtils.TestUtils) ... ok
test_varReplace_alternative_greed (TestUtils.TestUtils) ... ok
test_varReplace_caps (TestUtils.TestUtils) ... ok
test_varReplace_consecutive_vars (TestUtils.TestUtils) ... ok
test_varReplace_escape_dot (TestUtils.TestUtils) ... ok
test_varReplace_include (TestUtils.TestUtils) ... ok
test_varReplace_include_script (TestUtils.TestUtils) ... ok
test_varReplace_invalid_list (TestUtils.TestUtils) ... ok
test_varReplace_list (TestUtils.TestUtils) ... ok
test_varReplace_list_join (TestUtils.TestUtils) ... ok
test_varReplace_list_nolist (TestUtils.TestUtils) ... ok
test_varReplace_list_oob (TestUtils.TestUtils) ... ok
test_varReplace_middle (TestUtils.TestUtils) ... ok
test_varReplace_multiple (TestUtils.TestUtils) ... ok
test_varReplace_nested (TestUtils.TestUtils) ... ok
test_varReplace_nested_int (TestUtils.TestUtils) ... ok
test_varReplace_nested_list (TestUtils.TestUtils) ... ok
test_varReplace_notcomplex (TestUtils.TestUtils) ... ok
test_varReplace_simple (TestUtils.TestUtils) ... ok
test_varReplace_unicode (TestUtils.TestUtils) ... ok
======================================================================
FAIL: test_one (TestPlayBook.TestPlaybook)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ansible/test/TestPlayBook.py", line 151, in test_one
assert utils.jsonify(expected, format=True) == utils.jsonify(actual,format=True)
AssertionError:
>> assert <module 'ansible.utils' from '/root/ansible/lib/ansible/utils.pyc'>.jsonify({'localhost': {'failures': 0, 'skipped': 1, 'changed': 9, 'ok': 11, 'unreachable': 0}}, format=True) == <module 'ansible.utils' from '/root/ansible/lib/ansible/utils.pyc'>.jsonify({'localhost': {'unreachable': 1, 'skipped': 0, 'ok': 0, 'changed': 0, 'failures': 0}},format=True)
-------------------- >> begin captured stdout << ---------------------
**ACTUAL**
{
"localhost": {
"changed": 0,
"failures": 0,
"ok": 0,
"skipped": 0,
"unreachable": 1
}
}
**EXPECTED**
{
"localhost": {
"changed": 9,
"failures": 0,
"ok": 11,
"skipped": 1,
"unreachable": 0
}
}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
paramiko.transport: DEBUG: starting thread (client mode): 0x19280d0L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.9p1)
paramiko.transport: DEBUG: kex algos:['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', '[email protected]'] server compress:['none', '[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
paramiko.transport: DEBUG: Switch to new keys ...
paramiko.transport: DEBUG: Adding ssh-rsa host key for localhost: 6d92a22d4f8f13380ba5dedd4aa7f018
paramiko.transport: DEBUG: EOF in transport thread
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_assemble (TestRunner.TestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ansible/test/TestRunner.py", line 272, in test_assemble
"dest=%s" % output,
File "/root/ansible/test/TestRunner.py", line 74, in _run
assert "localhost" in results['contacted']
AssertionError:
# when using nosetests this will only show up on failure
# which is pretty useful
print "RESULTS=%s" % {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
>> assert "localhost" in {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']
return {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']['localhost']
-------------------- >> begin captured stdout << ---------------------
DEBUG: using args=src=/root/ansible/test/assemble.d dest=/root/ansible/test/test_data/sample.out
RESULTS={'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
paramiko.transport: DEBUG: starting thread (client mode): 0x1a06a50L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.9p1)
paramiko.transport: DEBUG: kex algos:['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', '[email protected]'] server compress:['none', '[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
paramiko.transport: DEBUG: Switch to new keys ...
paramiko.transport: DEBUG: Adding ssh-rsa host key for localhost: 6d92a22d4f8f13380ba5dedd4aa7f018
paramiko.transport: DEBUG: EOF in transport thread
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_async (TestRunner.TestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ansible/test/TestRunner.py", line 244, in test_async
result = self._run('command', [ get_binary("sleep"), "3" ], background=20)
File "/root/ansible/test/TestRunner.py", line 74, in _run
assert "localhost" in results['contacted']
AssertionError:
# when using nosetests this will only show up on failure
# which is pretty useful
print "RESULTS=%s" % {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
>> assert "localhost" in {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']
return {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']['localhost']
-------------------- >> begin captured stdout << ---------------------
DEBUG: using args=/bin/sleep 3
RESULTS={'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
paramiko.transport: DEBUG: starting thread (client mode): 0x1a08410L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.9p1)
paramiko.transport: DEBUG: kex algos:['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', '[email protected]'] server compress:['none', '[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
paramiko.transport: DEBUG: Switch to new keys ...
paramiko.transport: DEBUG: Adding ssh-rsa host key for localhost: 6d92a22d4f8f13380ba5dedd4aa7f018
paramiko.transport: DEBUG: EOF in transport thread
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_command (TestRunner.TestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ansible/test/TestRunner.py", line 121, in test_command
result = self._run('command', [ "/bin/echo", "hi" ])
File "/root/ansible/test/TestRunner.py", line 74, in _run
assert "localhost" in results['contacted']
AssertionError:
# when using nosetests this will only show up on failure
# which is pretty useful
print "RESULTS=%s" % {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
>> assert "localhost" in {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']
return {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']['localhost']
-------------------- >> begin captured stdout << ---------------------
DEBUG: using args=/bin/echo hi
RESULTS={'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
paramiko.transport: DEBUG: starting thread (client mode): 0x1a086d0L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.9p1)
paramiko.transport: DEBUG: kex algos:['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', '[email protected]'] server compress:['none', '[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
paramiko.transport: DEBUG: Switch to new keys ...
paramiko.transport: DEBUG: Adding ssh-rsa host key for localhost: 6d92a22d4f8f13380ba5dedd4aa7f018
paramiko.transport: DEBUG: EOF in transport thread
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_copy (TestRunner.TestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ansible/test/TestRunner.py", line 104, in test_copy
"dest=%s" % output,
File "/root/ansible/test/TestRunner.py", line 74, in _run
assert "localhost" in results['contacted']
AssertionError:
# when using nosetests this will only show up on failure
# which is pretty useful
print "RESULTS=%s" % {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
>> assert "localhost" in {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']
return {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']['localhost']
-------------------- >> begin captured stdout << ---------------------
DEBUG: using args=src=/root/ansible/test/sample.j2 dest=/root/ansible/test/test_data/sample.out
RESULTS={'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
paramiko.transport: DEBUG: starting thread (client mode): 0x1a083d0L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.9p1)
paramiko.transport: DEBUG: kex algos:['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', '[email protected]'] server compress:['none', '[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
paramiko.transport: DEBUG: Switch to new keys ...
paramiko.transport: DEBUG: Adding ssh-rsa host key for localhost: 6d92a22d4f8f13380ba5dedd4aa7f018
paramiko.transport: DEBUG: EOF in transport thread
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_fetch (TestRunner.TestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ansible/test/TestRunner.py", line 263, in test_fetch
result = self._run('fetch', [ "src=%s" % input_, "dest=%s" % self.stage_dir ])
File "/root/ansible/test/TestRunner.py", line 74, in _run
assert "localhost" in results['contacted']
AssertionError:
# when using nosetests this will only show up on failure
# which is pretty useful
print "RESULTS=%s" % {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
>> assert "localhost" in {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']
return {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']['localhost']
-------------------- >> begin captured stdout << ---------------------
DEBUG: using args=src=/root/ansible/test/sample.j2 dest=/root/ansible/test/test_data
RESULTS={'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
paramiko.transport: DEBUG: starting thread (client mode): 0x1a13050L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.9p1)
paramiko.transport: DEBUG: kex algos:['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', '[email protected]'] server compress:['none', '[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
paramiko.transport: DEBUG: Switch to new keys ...
paramiko.transport: DEBUG: Adding ssh-rsa host key for localhost: 6d92a22d4f8f13380ba5dedd4aa7f018
paramiko.transport: DEBUG: EOF in transport thread
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_file (TestRunner.TestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ansible/test/TestRunner.py", line 178, in test_file
assert self._run('file', ['dest=' + filedemo, 'state=directory'])['failed']
File "/root/ansible/test/TestRunner.py", line 74, in _run
assert "localhost" in results['contacted']
AssertionError:
# when using nosetests this will only show up on failure
# which is pretty useful
print "RESULTS=%s" % {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
>> assert "localhost" in {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']
return {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']['localhost']
-------------------- >> begin captured stdout << ---------------------
DEBUG: using args=dest=/tmp/tmpN4g03x state=directory
RESULTS={'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
paramiko.transport: DEBUG: starting thread (client mode): 0x1a13050L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.9p1)
paramiko.transport: DEBUG: kex algos:['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', '[email protected]'] server compress:['none', '[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
paramiko.transport: DEBUG: Switch to new keys ...
paramiko.transport: DEBUG: Adding ssh-rsa host key for localhost: 6d92a22d4f8f13380ba5dedd4aa7f018
paramiko.transport: DEBUG: EOF in transport thread
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_git (TestRunner.TestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ansible/test/TestRunner.py", line 157, in test_git
self._run('file',['path=/tmp/gitdemo','state=absent'])
File "/root/ansible/test/TestRunner.py", line 74, in _run
assert "localhost" in results['contacted']
AssertionError:
# when using nosetests this will only show up on failure
# which is pretty useful
print "RESULTS=%s" % {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
>> assert "localhost" in {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']
return {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']['localhost']
-------------------- >> begin captured stdout << ---------------------
DEBUG: using args=path=/tmp/gitdemo state=absent
RESULTS={'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
paramiko.transport: DEBUG: starting thread (client mode): 0x1a13b10L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.9p1)
paramiko.transport: DEBUG: kex algos:['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', '[email protected]'] server compress:['none', '[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
paramiko.transport: DEBUG: Switch to new keys ...
paramiko.transport: DEBUG: Adding ssh-rsa host key for localhost: 6d92a22d4f8f13380ba5dedd4aa7f018
paramiko.transport: DEBUG: EOF in transport thread
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_ping (TestRunner.TestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ansible/test/TestRunner.py", line 78, in test_ping
result = self._run('ping', [])
File "/root/ansible/test/TestRunner.py", line 74, in _run
assert "localhost" in results['contacted']
AssertionError:
# when using nosetests this will only show up on failure
# which is pretty useful
print "RESULTS=%s" % {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
>> assert "localhost" in {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']
return {'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}['contacted']['localhost']
-------------------- >> begin captured stdout << ---------------------
DEBUG: using args=
RESULTS={'dark': {'localhost': {'msg': 'FAILED: No authentication methods available', 'failed': True}}, 'contacted': {}}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
paramiko.transport: DEBUG: starting thread (client mode): 0x1a13b50L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_5.9p1)
paramiko.transport: DEBUG: kex algos:['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]'] client mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', '[email protected]', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', '[email protected]', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', '[email protected]'] server compress:['none', '[email protected]'] client lang:[''] server lang:[''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
paramiko.transport: DEBUG: Switch to new keys ...
paramiko.transport: DEBUG: Adding ssh-rsa host key for localhost: 6d92a22d4f8f13380ba5dedd4aa7f018
paramiko.transport: DEBUG: EOF in transport thread
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 60 tests in 2.065s
FAILED (SKIP=2, failures=9)
make: *** [tests] Error 1
root@server1:~/ansible#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment