Skip to content

Commit

Permalink
update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepassio committed Feb 6, 2025
1 parent 887f211 commit 3ffd1bf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/apps/podman/restapi/mode/containerusage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use base qw(centreon::plugins::templates::counter);

use strict;
use warnings;
use Digest::MD5 qw(md5_hex);
use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng);

sub set_counters {
Expand Down
10 changes: 5 additions & 5 deletions tests/apps/podman/restapi/containerusage.robot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*** Settings ***
Documentation Check the Podman pod status
Documentation Test the Podman container-usage mode
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Expand All @@ -20,8 +20,8 @@ ${cmd} ${CENTREON_PLUGINS}


*** Test Cases ***
System status ${tc}
[Documentation] Check the pod status
Container usage ${tc}
[Documentation] Check the container usage
[Tags] apps podman restapi
${command} Catenate
Expand All @@ -42,8 +42,8 @@ System status ${tc}
... 8 --warning-write-io=500000000 WARNING: Write : 941.43MB | 'podman.container.cpu.usage.percent'=0.11%;;;0;100 'podman.container.memory.usage.bytes'=11374592B;;;0; 'podman.container.io.read'=456812354B;;;0; 'podman.container.io.write'=987156423B;0:500000000;;0; 'podman.container.network.in'=1006B;;;0; 'podman.container.network.out'=2146B;;;0;
... 9 --critical-write-io=750000000 CRITICAL: Write : 941.43MB | 'podman.container.cpu.usage.percent'=0.11%;;;0;100 'podman.container.memory.usage.bytes'=11374592B;;;0; 'podman.container.io.read'=456812354B;;;0; 'podman.container.io.write'=987156423B;;0:750000000;0; 'podman.container.network.in'=1006B;;;0; 'podman.container.network.out'=2146B;;;0;

System status ${tc}
[Documentation] Check the pod status
Container usage ${tc}
[Documentation] Check the container usage
[Tags] apps podman restapi
${command} Catenate
Expand Down
6 changes: 3 additions & 3 deletions tests/apps/podman/restapi/podstatus.robot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*** Settings ***
Documentation Check the Podman pod status
Documentation Test the Podman pod-status mode
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Expand All @@ -20,7 +20,7 @@ ${cmd} ${CENTREON_PLUGINS}


*** Test Cases ***
System status ${tc}
Pod status ${tc}
[Documentation] Check the pod status
[Tags] apps podman restapi
Expand All @@ -44,7 +44,7 @@ System status ${tc}
... 10 --warning-paused-containers=0 WARNING: Paused containers: 1 | 'podman.pod.cpu.usage.percent'=1.46%;;;0;100 'podman.pod.memory.usage.bytes'=481727346.688B;;;0; 'podman.pod.containers.running.count'=5;;;0; 'podman.pod.containers.stopped.count'=2;;;0; 'podman.pod.containers.paused.count'=1;0:0;;0;
... 11 --critical-paused-containers=0 CRITICAL: Paused containers: 1 | 'podman.pod.cpu.usage.percent'=1.46%;;;0;100 'podman.pod.memory.usage.bytes'=481727346.688B;;;0; 'podman.pod.containers.running.count'=5;;;0; 'podman.pod.containers.stopped.count'=2;;;0; 'podman.pod.containers.paused.count'=1;;0:0;0;

System status ${tc}
Pod status ${tc}
[Documentation] Check the pod status
[Tags] apps podman restapi
Expand Down
3 changes: 1 addition & 2 deletions tests/apps/podman/restapi/systemstatus.robot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*** Settings ***
Documentation Check the Podman system status
Documentation Test the Podman system-status mode
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource

Expand Down Expand Up @@ -44,4 +44,3 @@ System status ${tc}
... 11 --critical-containers-stopped=@2:6 CRITICAL: Stopped containers: 2 | 'podman.system.cpu.usage.percent'=1.19%;;;0;100 'podman.system.memory.usage.bytes'=1980252160B;;;0; 'podman.system.swap.usage.bytes'=72836626B;;;0; 'podman.system.containers.running.count'=3;;;0;6 'podman.system.containers.stopped.count'=2;;@2:6;0;6 'podman.system.uptime.seconds'=52440s;;;0;
... 12 --warning-uptime=@:60000 WARNING: Uptime: 52440 s | 'podman.system.cpu.usage.percent'=1.19%;;;0;100 'podman.system.memory.usage.bytes'=1980252160B;;;0; 'podman.system.swap.usage.bytes'=72836626B;;;0; 'podman.system.containers.running.count'=3;;;0;6 'podman.system.containers.stopped.count'=2;;;0;6 'podman.system.uptime.seconds'=52440s;@0:60000;;0;
... 13 --critical-uptime=@:120000 CRITICAL: Uptime: 52440 s | 'podman.system.cpu.usage.percent'=1.19%;;;0;100 'podman.system.memory.usage.bytes'=1980252160B;;;0; 'podman.system.swap.usage.bytes'=72836626B;;;0; 'podman.system.containers.running.count'=3;;;0;6 'podman.system.containers.stopped.count'=2;;;0;6 'podman.system.uptime.seconds'=52440s;;@0:120000;0;

0 comments on commit 3ffd1bf

Please sign in to comment.