junos_netconf integration test failure fix (#27569)

*  Create socket using port value and not connection type
*  Correct error message in integration test task
pull/27605/head
Ganesh Nalawade 7 years ago committed by GitHub
parent 5f73bdc3bf
commit 19fac707fa

@ -292,7 +292,7 @@ def main():
sys.exit("FAIL: %s" % e) sys.exit("FAIL: %s" % e)
ssh = connection_loader.get('ssh', class_only=True) 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 # create the persistent connection dir if need be and create the paths
# which we will be using later # which we will be using later

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

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

Loading…
Cancel
Save