Debian Codegraph @

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

raw
1 *** Settings ***
2 Documentation cpu-detailed 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 Cpu-Detailed
15 [Tags] hardware kvm avocent cpu snmp
16 Remove File /dev/shm/snmpstandard_127.0.0.1_2024_cpu-detailed*
17 ${output} Run Avocent 8000 Plugin "cpu-detailed" --statefile-dir=/dev/shm/
18 ${output} Strip String ${output}
19 Should Be Equal As Strings
20 ... ${output}
21 ... OK: CPU Usage: user : Buffer creation, nice : Buffer creation, system : Buffer creation, idle : Buffer creation, wait : Buffer creation, kernel : Buffer creation, interrupt : Buffer creation, softirq : Buffer creation, steal : Buffer creation, guest : Buffer creation, guestnice : Buffer creation
22 ... Wrong output result for command:{\n}${output}{\n}{\n}{\n}
23
24 ${output} Run Avocent 8000 Plugin "cpu-detailed" --statefile-dir=/dev/shm/
25 ${output} Strip String ${output}
26 Remove File /dev/shm/snmpstandard_127.0.0.1_2024_cpu-detailed*
27 Should Be Equal As Strings
28 ... ${output}
29 ... OK: CPU Usage: user : counter not moved, nice : counter not moved, system : counter not moved, idle : counter not moved, wait : counter not moved, kernel : counter not moved, interrupt : counter not moved, softirq : counter not moved, steal : counter not moved, guest : counter not moved, guestnice : counter not moved
30 ... Wrong output result for command:{\n}${output}{\n}{\n}{\n}
31
32
33
34 *** Keywords ***
35 Run Avocent 8000 Plugin
36 [Arguments] ${mode} ${extraoptions}
37 ${command} Catenate
38 ... ${CENTREON_PLUGINS}
39 ... --plugin=hardware::kvm::avocent::acs::8000::snmp::plugin
40 ... --mode=${mode}
41 ... --hostname=${HOSTNAME}
42 ... --snmp-version=${SNMPVERSION}
43 ... --snmp-port=${SNMPPORT}
44 ... --snmp-community=${SNMPCOMMUNITY}
45 ... ${extraoptions}
46
47 ${output} Run ${command}
48 RETURN ${output}