aboutsummaryrefslogtreecommitdiffstats
path: root/tests/appc/healthcheck/APPC_Netstat.robot
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-10-03 16:49:10 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-03 16:49:10 +0000
commit4140bb0ed38567e535b967d47daad4a64ba8c139 (patch)
treefd084b0367698b07a48227acb1f980e5c031f4f5 /tests/appc/healthcheck/APPC_Netstat.robot
parente83384b37acfb0e2ce132f09766f5294e0c59cd5 (diff)
parent050ef547a66e77c61b268528fc36b986a85acea6 (diff)
Merge "Remove false positive tests"
Diffstat (limited to 'tests/appc/healthcheck/APPC_Netstat.robot')
-rw-r--r--tests/appc/healthcheck/APPC_Netstat.robot5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/appc/healthcheck/APPC_Netstat.robot b/tests/appc/healthcheck/APPC_Netstat.robot
index 285fc372..200a4966 100644
--- a/tests/appc/healthcheck/APPC_Netstat.robot
+++ b/tests/appc/healthcheck/APPC_Netstat.robot
@@ -1,8 +1,11 @@
*** Settings ***
Library OperatingSystem
+Library String
*** Test Cases ***
APPC Netstat
[Documentation] Checking the active ports
- ${output}= Run netstat -a | grep -E 8282 | grep LISTEN
+ ${output}= Run netstat -a | grep -E ":8282 " | grep LISTEN
Log To Console ${output}
+ ${line_count}= Get Line Count ${output}
+ Should Be Equal As Strings ${line_count} 1