From 90f3d1427a6fe55dc48d52e3a9d3d43936f23c25 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 Jul 2024 13:56:18 +0000 Subject: [PATCH] refactor and renaming test --- .../snmp/{diskio.robot => list-diskio.robot} | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename tests/robot/os/linux/snmp/{diskio.robot => list-diskio.robot} (54%) diff --git a/tests/robot/os/linux/snmp/diskio.robot b/tests/robot/os/linux/snmp/list-diskio.robot similarity index 54% rename from tests/robot/os/linux/snmp/diskio.robot rename to tests/robot/os/linux/snmp/list-diskio.robot index eb223be39..15ba6333f 100644 --- a/tests/robot/os/linux/snmp/diskio.robot +++ b/tests/robot/os/linux/snmp/list-diskio.robot @@ -1,5 +1,5 @@ *** Settings *** -Documentation OS Linux SNMP plugin +Documentation Check the list-diskio mode Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource @@ -11,8 +11,9 @@ ${CMD} ${CENTREON_PLUGINS} --plugin=os::linux::snmp::plugin *** Test Cases *** -Linux SNMP list diskio devices ${documentation} ${tc}/2 - [Tags] os linux snmp +List diskio ${tc} + [Documentation] Check the number of returned disks + [Tags] os linux snmp service-disco ${command} Catenate ... ${CMD} ... --mode=list-diskio @@ -22,15 +23,14 @@ Linux SNMP list diskio devices ${documentation} ${tc}/2 ... --disco-show ... --snmp-community=${snmpcommunity} ${output} Run ${command} - Log To Console ${command} ${nb_results} Get Element Count ... ${output} ... label Should Be Equal As Integers ... ${expected_result} ... ${nb_results} - ... Wrong output result for list diskio devices: ${snmpcommunity}.{\n}Command output:{\n}${output} + ... Wrong output result for command:{\n}{\n}${command}{\n}{\n}Command output:{\n}{\n}${output} - Examples: documentation tc snmpcommunity expected_result -- - ... First run 1 os/linux/snmp/list-diskio 10 - ... Second run 2 os/linux/snmp/list-diskio-2 4 \ No newline at end of file + Examples: tc snmpcommunity expected_result -- + ... 1 os/linux/snmp/list-diskio 10 + ... 2 os/linux/snmp/list-diskio-2 4 \ No newline at end of file