test
This commit is contained in:
parent
ee1ebc93cd
commit
9ed6b92d6a
|
@ -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;
|
||||
|
|
|
@ -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;.*$
|
||||
|
|
Loading…
Reference in New Issue