You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
8 years ago
..
cli Legacy pep8 updates for setup.py and tests 8 years ago
contrib PEP 8 W291 whitespace cleanup. 8 years ago
errors Legacy pep8 updates for setup.py and tests 8 years ago
executor Legacy pep8 updates for setup.py and tests 8 years ago
inventory Add lots of test cases to inventory/test_host.py (#17827) 8 years ago
inventory_test_data/group_vars
mock Legacy pep8 updates for setup.py and tests 8 years ago
module_utils Ensure ssh hostkey checks respect server port (#20840) 8 years ago
modules code clean of old code from network modules updates (#21469) 8 years ago
parsing Legacy pep8 updates for setup.py and tests 8 years ago
playbook Legacy pep8 updates for setup.py and tests 8 years ago
plugins updates netconf to use persistent socket (#21307) 8 years ago
template Don't check for var._obj in template._clean_data (#20868) 8 years ago
utils PEP 8 indent cleanup. (#20800) 8 years ago
vars PEP 8 indent cleanup. (#20800) 8 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago