ansible/test/units
Will Thames 103ede26df Ensure ssh hostkey checks respect server port (#20840)
* Add tests for `get_fqdn_and_port` method.

Currently tests verify original behavior - returning default `ssh-keyscan` port
Add test around `add_host_key` to verify underlying command arguments
Add some new expectations for `get_fqdn_and_port`
Test that non-standard port is passed to `ssh-keyscan` command

* Ensure ssh hostkey checks respect server port

ssh-keyscan will default to getting the host key for port 22.
If the ssh service is running on a different port, ssh-keyscan
will need to know this.

Tidy up minor flake8 issues

* Update known_hosts tests for port being None

Ensure that git urls don't try and set port when a path
is specified

Update known_hosts tests to meet flake8

* Fix stdin swap context for test_known_hosts

Move test_known_hosts from under basic, as it is its own library.
Remove module_utils.known_hosts from pep8 legacy files list
2017-02-15 11:47:57 -08:00
..
cli Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
contrib PEP 8 W291 whitespace cleanup. 2017-01-27 17:08:02 -08:00
errors Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
executor Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
inventory
inventory_test_data/group_vars
mock Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
module_utils Ensure ssh hostkey checks respect server port (#20840) 2017-02-15 11:47:57 -08:00
modules code clean of old code from network modules updates (#21469) 2017-02-15 12:46:30 -05:00
parsing Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
playbook Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
plugins updates netconf to use persistent socket (#21307) 2017-02-12 09:05:23 -05:00
template Don't check for var._obj in template._clean_data (#20868) 2017-02-08 16:09:34 -05:00
utils PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
vars PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
__init__.py