Welcome to mirror list, hosted at ThFree Co, Russian Federation.

system_localtime.yaml « common « zbxsysinfo « libs « tests - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6ff25863840a3e13bd8cad1ecdddfd9b3a0dd76d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
test case: "timestamp check without params"
in:
  timestamp: 1513598769
  key: "system.localtime"
out:
  result: "1513598769"
  return: "SYSINFO_RET_OK"
---
test case: "timestamp check with empty params"
in:
  timestamp: 1513598769
  key: "system.localtime[]"
out:
  result: "1513598769"
  return: "SYSINFO_RET_OK"
---
test case: "timestamp check with UTC type param"
in:
  timestamp: "1513598769"
  key: "system.localtime[utc]"
out:
  result: "1513598769"
  return: "SYSINFO_RET_OK"
---
test case: "localtime check"
in:
  timestamp: "2017-12-18,14:06:09.123,+02:30"
  key: "system.localtime[local]"
out:
  result: "2017-12-18,14:06:09.123,+02:30"
  return: "SYSINFO_RET_OK"
---
test case: "input parameter count check"
in:
  key: "system.localtime[1,2]"
out:
  result: "Too many parameters."
  return: "SYSINFO_RET_FAIL"
---
test case: "input parameter value check"
in:
  key: "system.localtime[bebebe]"
out:
  result: "Invalid first parameter."
  return: "SYSINFO_RET_FAIL"