35 lines
1.9 KiB
Plaintext
35 lines
1.9 KiB
Plaintext
|
*** Settings ***
|
||
|
Documentation Hardware Camera Avigilon storage
|
||
|
|
||
|
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}..${/}resources/import.resource
|
||
|
|
||
|
Test Timeout 120s
|
||
|
|
||
|
|
||
|
*** Variables ***
|
||
|
${CMD} ${CENTREON_PLUGINS}
|
||
|
... --plugin=hardware::devices::camera::avigilon::snmp::plugin
|
||
|
... --mode=storage
|
||
|
... --hostname=${HOSTNAME}
|
||
|
... --snmp-port=${SNMPPORT}
|
||
|
|
||
|
|
||
|
*** Test Cases ***
|
||
|
Avigilon camera Storage ${tc}/3
|
||
|
[Documentation] Hardware Camera Avigilon Storage
|
||
|
[Tags] hardware avigilon storage
|
||
|
${command} Catenate
|
||
|
... ${CMD}
|
||
|
... --snmp-community=hardware/devices/camera/avigilon/snmp/hardware-camera-avigilon
|
||
|
... --warning-status='${warning_status}'
|
||
|
... --critical-status='${critical_status}'
|
||
|
... --unknown-status='${unknown_status}'
|
||
|
|
||
|
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
||
|
|
||
|
Examples: tc warning_status critical_status unknown_status expected_result --
|
||
|
... 1 ${EMPTY} ${EMPTY} ${EMPTY} OK: state of the SD card: mediaNotPresent
|
||
|
... 2 \\%\{storage_state\} =~ /mediaNotPresent/ ${EMPTY} ${EMPTY} WARNING: state of the SD card: mediaNotPresent
|
||
|
... 3 ${EMPTY} \\%\{storage_state\} =~ /mediaNotPresent/ ${EMPTY} CRITICAL: state of the SD card: mediaNotPresent
|
||
|
... 4 ${EMPTY} ${EMPTY} \\%\{storage_state\} =~ /mediaNotPresent/ UNKNOWN: state of the SD card: mediaNotPresent
|