mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix unit test failure for netconf connection plugin (#33547)
This commit is contained in:
@@ -23,8 +23,5 @@ f5-sdk ; python_version >= '2.7'
|
|||||||
f5-icontrol-rest ; python_version >= '2.7'
|
f5-icontrol-rest ; python_version >= '2.7'
|
||||||
deepdiff
|
deepdiff
|
||||||
|
|
||||||
# requirement for modules using Netconf protocol
|
|
||||||
ncclient
|
|
||||||
|
|
||||||
# requirement for aci_rest module
|
# requirement for aci_rest module
|
||||||
xmljson
|
xmljson
|
||||||
|
|||||||
@@ -63,7 +63,8 @@ class TestNetconfConnectionClass(unittest.TestCase):
|
|||||||
self.assertIsNone(conn._manager)
|
self.assertIsNone(conn._manager)
|
||||||
self.assertFalse(conn._connected)
|
self.assertFalse(conn._connected)
|
||||||
|
|
||||||
def test_netconf__connect(self):
|
@patch("ansible.plugins.connection.netconf.netconf_loader")
|
||||||
|
def test_netconf__connect(self, mock_netconf_loader):
|
||||||
pc = PlayContext()
|
pc = PlayContext()
|
||||||
new_stdin = StringIO()
|
new_stdin = StringIO()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user