test
This commit is contained in:
parent
9ed6b92d6a
commit
1b732e4eba
|
@ -16,7 +16,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.
|
||||
#
|
||||
|
||||
|
||||
package snmp_standard::mode::uptime;
|
||||
|
||||
|
|
|
@ -28,8 +28,8 @@ time ${tc}
|
|||
Should Match Regexp ${output} ${expected_result}
|
||||
|
||||
Examples: tc extra_options expected_result --
|
||||
... 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;.*$
|
||||
... 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 ^(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