Skip to content

Commit

Permalink
try adding test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepassio committed Dec 5, 2024
1 parent 17fbc83 commit 0ccc435
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/hardware/devices/video/appeartv/snmp/alarms.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
*** Settings ***
Documentation Hardware Video Appeartv Alarms
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}..${/}resources/import.resource

Suite Setup Ctn Generic Suite Setup
Test Timeout 120s


*** Variables ***
${CMD} ${CENTREON_PLUGINS}
... --plugin=hardware::devices::video::appeartv::snmp::plugin
... --mode=alarms
... --hostname=${HOSTNAME}
... --snmp-port=${SNMPPORT}
... --snmp-community=hardware/devices/video/appeartv/snmp/appeartv

*** Test Cases ***
Avigilon camera Memory ${tc}/3
[Documentation] Hardware Video AppeartTV Alarms
[Tags] hardware appeartv alarms
${command} Catenate
... ${CMD}
... --verbose

Ctn Run Command And Check Result As Strings ${command} ${expected_result}

Examples: tc warning_available critical_available expected_result --
... 1 ${EMPTY} ${EMPTY} OK: total system memory available: 464.85 KB | 'memory.available'=476004B;;;0;
4 changes: 4 additions & 0 deletions tests/hardware/devices/video/appeartv/snmp/appeartv.snmpwalk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.1.3.6.1.4.1.23916.3.1.4.1.3.0 = STRING: "Alarm 1"
.1.3.6.1.4.1.23916.3.1.4.1.4.0 = STRING: "Disconnected sound"
.1.3.6.1.4.1.23916.3.1.4.1.6.0 = STRING: "2024-09-16 14:49:18"
.1.3.6.1.4.1.23916.3.1.4.1.13.0 = INTEGER: 1

0 comments on commit 0ccc435

Please sign in to comment.