From 9ed6b92d6a72cc191622b7f2820e5240d5701347 Mon Sep 17 00:00:00 2001 From: sfarouq-ext <116093375+sfarouq-ext@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:57:53 +0200 Subject: [PATCH] test --- src/centreon_plugins.pl | 2 +- tests/os/linux/snmp/time.robot | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/centreon_plugins.pl b/src/centreon_plugins.pl index da2f39ff5..d433afc9a 100755 --- a/src/centreon_plugins.pl +++ b/src/centreon_plugins.pl @@ -17,7 +17,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# + use strict; use warnings; diff --git a/tests/os/linux/snmp/time.robot b/tests/os/linux/snmp/time.robot index 09f05b0b8..5845b85b2 100644 --- a/tests/os/linux/snmp/time.robot +++ b/tests/os/linux/snmp/time.robot @@ -28,9 +28,9 @@ time ${tc} Should Match Regexp ${output} ${expected_result} Examples: tc extra_options expected_result -- - ... 1 --oid='' oj - ... 2 --warning-offset='0' ^(OK|WARNING|CRITICAL): Time offset (-?\\\d+) second\\\(s\\\): Local Time : (\\\d{4}-\\\d{2}-\\d{2}T\\\d{2}:\\\d{2}:\\\d{2}) \\\(\\\+\\\d{4}\\\) \\\| 'offset'=(-?\\\d+)s;.*$ - ... 3 --critical-offset='125' CRITICAL: Time offset -1211346 second(s): Local Time : 2024-08-13T10:39:44 (+0200) | 'offset'=-1211346s;;0:125;; + ... 1 --oid='' ^(OK|WARNING|CRITICAL): Time offset (-?\d+) second\(s\): Local Time : (\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}) \(\+\d{4}\) \| 'offset'=(-?\d+)s;.*$ + ... 2 --warning-offset='0' ^(OK|WARNING|CRITICAL): Time offset (-?\d+) second\(s\): Local Time : (\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}) \(\+\d{4}\) \| 'offset'=(-?\d+)s;.*$ + ... 3 --critical-offset='125' ^(OK|WARNING|CRITICAL): Time offset (-?\d+) second\(s\): Local Time : (\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}) \(\+\d{4}\) \| 'offset'=(-?\d+)s;.*$ ... 4 --ntp-hostname='NET' UNKNOWN: Cannot load module 'Net::NTP' - ... 5 --ntp-port=123 oid - ... 6 --timezone='+0100' oj + ... 5 --ntp-port=123 ^(OK|WARNING|CRITICAL): Time offset (-?\d+) second\(s\): Local Time : (\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}) \(\+\d{4}\) \| 'offset'=(-?\d+)s;.*$ + ... 6 --timezone='+0100' ^(OK|WARNING|CRITICAL): Time offset (-?\d+) second\(s\): Local Time : (\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}) \(\+\d{4}\) \| 'offset'=(-?\d+)s;.*$