Add keyword for watching TCP ports on remote machine 09/28809/4
authorJozef Behran <jbehran@cisco.com>
Mon, 26 Oct 2015 15:55:23 +0000 (16:55 +0100)
committerJozef Behran <jbehran@cisco.com>
Wed, 28 Oct 2015 11:55:44 +0000 (12:55 +0100)
commit3537fa97cda59053045c87a6cb6f1c97322a5417
tree9af273df3986f60a642a3f576733d0484446a6ab
parent790091e3341ce090a285b79f264ae30f0f170672
Add keyword for watching TCP ports on remote machine

This keyword gets a TCP port number, a state (LISTEN or
ESTABLISHED are the most useful but other states produced
by netstat may be used) and a process name. It then runs
netstat, greps through its output and reports the number of
occurences of a line mentioning the port, state and process.

An instance where this is needed was found in the BGPCEP
suite and transformed to use the new keyword. This can serve
as an example of how to use the keyword and additionally
serves as a test that the keyword is correct.

Change-Id: Ica59958e9b5ade564904a1725e9ef77154f84317
Signed-off-by: Jozef Behran <jbehran@cisco.com>
csit/libraries/SSHKeywords.robot
csit/suites/bgpcep/bgpuser/cases.robot