junos_netconf integration test failure fix (#27569)

*  Create socket using port value and not connection type
*  Correct error message in integration test task
This commit is contained in:
Ganesh Nalawade 2017-08-01 21:33:11 +05:30 committed by GitHub
parent 5f73bdc3bf
commit 19fac707fa
3 changed files with 3 additions and 3 deletions

View file

@ -292,7 +292,7 @@ def main():
sys.exit("FAIL: %s" % e)
ssh = connection_loader.get('ssh', class_only=True)
cp = ssh._create_control_path(pc.remote_addr, pc.connection, pc.remote_user)
cp = ssh._create_control_path(pc.remote_addr, pc.port, pc.remote_user)
# create the persistent connection dir if need be and create the paths
# which we will be using later

View file

@ -49,7 +49,7 @@
- assert:
that:
- "result.failed == true"
- "'unable to connect to' in result.msg"
- "'unable to open shell' in result.msg"
- name: Set back netconf to default port
junos_netconf:

View file

@ -61,7 +61,7 @@
- assert:
that:
- "result.failed == true"
- "'unable to connect to' in result.msg"
- "'unable to open shell' in result.msg"
- name: re-enable netconf
junos_netconf: