1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units
Peter Sprygada dc23667cc2 add back reverted change to network_cli (#18761)
This adds back the change to the network_cli plugin.  Ths change adds
the ensure_connect decorator to the open_shell() method to make sure
the connection is valid before trying to open a shell.

The issue was due to the addition of the decorator that will call
_connect() when there is no connection.  The _connect() method should
have been mocked in the test case.  This commit fixes the test
case as well

Change was originally reverted in c414ded69a
2016-12-05 21:42:09 -05:00
..
cli set galaxy unit test server to None (#18298) 2016-11-02 10:25:09 -04:00
contrib skip vmware inventory when missing lib 2016-11-07 15:37:59 -05:00
errors Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
executor Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
inventory Add lots of test cases to inventory/test_host.py (#17827) 2016-11-29 13:38:04 -05:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
module_utils Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
modules Clean up shebangs for various files. 2016-11-02 17:00:27 -07:00
parsing Fix unit test dirs to match code under test. 2016-11-10 18:59:07 -08:00
playbook make hash_params more robust in the face of many corner cases (#18701) 2016-12-05 04:01:45 -08:00
plugins add back reverted change to network_cli (#18761) 2016-12-05 21:42:09 -05:00
template Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
utils FEATURE: adding variable serial batches 2016-08-04 15:04:10 -05:00
vars ansible_playbook_python (#18530) 2016-11-23 16:30:46 -05:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00