Skip to content

Commit

Permalink
add some option
Browse files Browse the repository at this point in the history
  • Loading branch information
sfarouq-ext committed Dec 12, 2024
1 parent bae1c38 commit bc3f659
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 98 deletions.
35 changes: 0 additions & 35 deletions .github/docker/testing/Dockerfile.local-tests

This file was deleted.

2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/ha-status.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation Check Cyberoam equipments in SNMP.
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Test Timeout 120s

Test Setup Ctn Generic Suite Setup

*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin
Expand Down
102 changes: 53 additions & 49 deletions tests/network/cyberoam/snmp/interfaces.robot

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/license.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation Check current HA-State. HA-States: notapplicable, auxiliary,
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Test Timeout 120s

Test Setup Ctn Generic Suite Setup

*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin
Expand Down
2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/list-interfaces.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation Check Cyberoam equipments in SNMP.
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Test Timeout 120s

Test Setup Ctn Generic Suite Setup

*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin
Expand Down
2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/list-vpns.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation List VPN.
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Test Timeout 120s

Test Setup Ctn Generic Suite Setup

*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin
Expand Down
2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/memory.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation Check memory usages.
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Test Timeout 120s

Test Setup Ctn Generic Suite Setup

*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin
Expand Down
15 changes: 9 additions & 6 deletions tests/network/cyberoam/snmp/requests.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation Check request statistics.
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Test Timeout 120s

Test Setup Ctn Generic Suite Setup

*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin
Expand All @@ -21,14 +21,17 @@ requests ${tc}
... --snmp-port=${SNMPPORT}
... --snmp-community=network/cyberoam/snmp/slim_sophos
... --snmp-timeout=1
... ${extra_options}

... ${extra_options}

# first run to build cache
Run ${command}
# second run to control the output
Ctn Run Command And Check Result As Strings ${command} ${expected_result}

Examples: tc extra_options expected_result --
... 1 --filter-counters='' --verbose OK: Requests live users: 38, http-hits : Buffer creation, ftp-hits : Buffer creation, pop3-hits : Buffer creation, imap-hits : Buffer creation, smtp-hits : Buffer creation | 'live_users'=38;;;0;
... 2 --filter-counters='http-hits' --verbose OK: Requests http-hits : Buffer creation
... 3 --warning-live-users=0 --critical-live-users=0 CRITICAL: Requests live users: 38 | 'live_users'=38;0:0;0:0;0;
... 1 --filter-counters='' OK: Requests live users: 38, http hits: 0, ftp hits: 0, pop3 hits: 0, imap hits: 0, smtp hits: 0 | 'live_users'=38;;;0; 'http_hits'=0;;;0; 'ftp_hits'=0;;;0; 'pop3_hits'=0;;;0; 'imap_hits'=0;;;0; 'smtp_hits'=0;;;0;
... 2 --filter-counters='http' OK: Requests http hits: 0 | 'http_hits'=0;;;0;
... 3 --warning-live-users=0 --critical-live-users=0 CRITICAL: Requests live users: 38 | 'live_users'=38;0:0;0:0;0; 'http_hits'=0;;;0; 'ftp_hits'=0;;;0; 'pop3_hits'=0;;;0; 'imap_hits'=0;;;0; 'smtp_hits'=0;;;0;
... 4 --warning-http-hits=0 --critical-http-hits=10 OK: Requests live users: 38, http hits: 0, ftp hits: 0, pop3 hits: 0, imap hits: 0, smtp hits: 0 | 'live_users'=38;;;0; 'http_hits'=0;0:0;0:10;0; 'ftp_hits'=0;;;0; 'pop3_hits'=0;;;0; 'imap_hits'=0;;;0; 'smtp_hits'=0;;;0;
... 5 --warning-ftp-hits=5 --critical-ftp-hits=10 OK: Requests live users: 38, http hits: 0, ftp hits: 0, pop3 hits: 0, imap hits: 0, smtp hits: 0 | 'live_users'=38;;;0; 'http_hits'=0;;;0; 'ftp_hits'=0;0:5;0:10;0; 'pop3_hits'=0;;;0; 'imap_hits'=0;;;0; 'smtp_hits'=0;;;0;
... 6 --warning-smtp-hits=20 --critical-smtp-hits=10 OK: Requests live users: 38, http hits: 0, ftp hits: 0, pop3 hits: 0, imap hits: 0, smtp hits: 0 | 'live_users'=38;;;0; 'http_hits'=0;;;0; 'ftp_hits'=0;;;0; 'pop3_hits'=0;;;0; 'imap_hits'=0;;;0; 'smtp_hits'=0;0:20;0:10;0;
Expand Down
2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/services.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation Check services.
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Test Timeout 120s

Test Setup Ctn Generic Suite Setup

*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin
Expand Down
2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/storage.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation Check storage usage.
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Test Timeout 120s

Test Setup Ctn Generic Suite Setup

*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin
Expand Down
2 changes: 1 addition & 1 deletion tests/network/cyberoam/snmp/vpn-status.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation Check VPN status. VPN-Connection-Status: inactive, active,pa
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Test Timeout 120s

Test Setup Ctn Generic Suite Setup

*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=network::cyberoam::snmp::plugin
Expand Down

0 comments on commit bc3f659

Please sign in to comment.