-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs: CTOR-1323
- Loading branch information
Showing
2 changed files
with
615 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
*** Settings *** | ||
Documentation Check Hardware (Fans, Power supplies, chassis, io cards, blades, fabric extenders). | ||
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}..${/}resources/import.resource | ||
|
||
Suite Setup Ctn Generic Suite Setup | ||
Test Timeout 120s | ||
|
||
|
||
*** Variables *** | ||
${CMD} ${CENTREON_PLUGINS} --plugin=hardware::server::cisco::ucs::snmp::plugin | ||
|
||
|
||
*** Test Cases *** | ||
equipment ${tc} | ||
[Tags] hardware snmp | ||
${command} Catenate | ||
... ${CMD} | ||
... --mode=equipment | ||
... --hostname=${HOSTNAME} | ||
... --snmp-version=${SNMPVERSION} | ||
... --snmp-port=${SNMPPORT} | ||
... --snmp-community=hardware/server/cisco/ucs/snmp/slim-ucs-equipment | ||
... ${extra_options} | ||
|
||
Ctn Verify Command Output ${command} ${expected_result} | ||
|
||
Examples: tc extra_options expected_result -- | ||
... 1 ${EMPTY} WARNING: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' | ||
... 2 --threshold-overload='presence,OK,missing' --threshold-overload='operability,OK,removed' OK: All 100 components are ok [100/100 memories]. | 'hardware.memory.count'=100;;;; | ||
... 3 --threshold-overload='presence,UNKNOWN,missing' --component='memory' UNKNOWN: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' | ||
... 4 --threshold-overload='operability,WARNING,missing' --component='memory' WARNING: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' | ||
... 5 --component='cpu' OK: All 0 components are ok []. | ||
... 6 --filter=fan,/sys/chassis-7/fan-module-1-7/fan-1 WARNING: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' | ||
... 7 --absent-problem=fan,/sys/chassis-7/fan-module-1-7/fan-1 WARNING: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' | ||
... 8 --no-component=UNKNOWN --filter='.*' UNKNOWN: No components are checked. | ||
... 9 --threshold-overload='presence,CRITICAL,equipped' CRITICAL: memory 'Anonymized-001/mem-10' presence is: 'equipped' - memory 'Anonymized-001/mem-11' presence is: 'equipped' | ||
... 10 --filter='.*' OK: All 0 components are ok []. | ||
... 11 --filter WARNING: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' |
Oops, something went wrong.