Debian Codegraph @

tests/hardware/kvm/avocent/acs/8000/memory.robot

raw
1 *** Settings ***
2 Documentation memory mode
3
4 Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}..${/}resources/import.resource
5
6 Test Timeout 120s
7
8
9 *** Variables ***
10 ${SNMPCOMMUNITY} hardware/kvm/avocent/acs/8000/avocent8000
11
12
13 *** Test Cases ***
14 Memory
15 [Tags] hardware kvm avocent memory snmp
16 ${output} Run Avocent 8000 Plugin "memory" ""
17
18 ${output} Strip String ${output}
19 Should Be Equal As Strings
20 ... ${output}
21 ... OK: Ram Total: 1.92 GB Used (-buffers/cache): 626.18 MB (31.79%) Free: 1.31 GB (68.21%), Buffer: 2.04 MB, Cached: 723.54 MB, Shared: 26.09 MB | 'used'=656592896B;;;0;2065698816 'free'=1409105920B;;;0;2065698816 'used_prct'=31.79%;;;0;100 'buffer'=2134016B;;;0; 'cached'=758689792B;;;0; 'shared'=27357184B;;;0;
22 ... Wrong output result for command:{\n}${output}{\n}{\n}{\n}
23
24 *** Keywords ***
25 Run Avocent 8000 Plugin
26 [Arguments] ${mode} ${extraoptions}
27 ${command} Catenate
28 ... ${CENTREON_PLUGINS}
29 ... --plugin=hardware::kvm::avocent::acs::8000::snmp::plugin
30 ... --mode=${mode}
31 ... --hostname=${HOSTNAME}
32 ... --snmp-version=${SNMPVERSION}
33 ... --snmp-port=${SNMPPORT}
34 ... --snmp-community=${SNMPCOMMUNITY}
35 ... ${extraoptions}
36
37 ${output} Run ${command}
38 RETURN ${output}