Fixed "close connection" action in MDSAL suite 62/29662/2
authorJozef Behran <jbehran@cisco.com>
Fri, 13 Nov 2015 11:29:19 +0000 (12:29 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 16 Nov 2015 16:36:55 +0000 (16:36 +0000)
commit500faa3ca6b5487e445db8756b6fb410dbffd966
treeee260b34bf8dfd42900efc3d23ea816b3a12e41c
parent3300c3bbb8e8a590bc21f00681edc7ca188fbdcc
Fixed "close connection" action in MDSAL suite

Sending "^D" to the netconf connection does not guarantee
that the connection is closed properly, leading to a
spurious test failure due to failed teardown.

The proper way is to open two connections, one "control" and
one "netconf". The "netconf" connection then connects to
netconf as usual and the "control" connection is used to
control the SSH process connecting to netconf. It is used to
obtain the PID of the "sshpass" process which governs the
connection and to send the kill signal to that process
once the connection is to be closed.

Change-Id: I3a0bc1e03d1af9619ced3fa7dfcd45aad3d696fa
Signed-off-by: Jozef Behran <jbehran@cisco.com>
csit/suites/netconf/MDSAL/northbound.robot