lsfilter: Add support for non-timestamp date formats
[ninja.git] / test / unit_test / reports / groups.tst
blobff5114616c4e4c84746741a0f5b186a11bd7d92b
1 description = Group availability
2 logfile = groups.log
4 global_vars {
5         includesoftstates = 1
8 Group availability including soft states {
9         start_time = 1202684400
10         end_time = 1202770800
11         report_type = hosts
12         objects {
13                 testhost
14                 testhost2
15         }
16         correct {
17                 TIME_UP_UNSCHEDULED = 82800
18                 TIME_DOWN_UNSCHEDULED = 3600
19         }
22 Group availability including soft states, excluding OK {
23         start_time = 1202684400
24         end_time = 1202770800
25         host_filter_status {
26                 0 = -2
27         }
28         report_type = hosts
29         objects {
30                 testhost
31                 testhost2
32         }
33         correct {
34                 TIME_EXCLUDED_UNSCHEDULED = 82800
35                 TIME_DOWN_UNSCHEDULED = 3600
36         }
39 Group availability including soft states (hostgroups) {
40         start_time = 1202684400
41         end_time = 1202770800
42         report_type = hostgroups
43         objects {
44                 group1 {
45                         testhost
46                 }
47                 group2 {
48                         testhost2
49                 }
50         }
51         correct {
52                 TIME_UP_UNSCHEDULED = 82800
53                 TIME_DOWN_UNSCHEDULED = 3600
54         }
57 Group availability including soft states, reversed host order {
58         start_time = 1202684400
59         end_time = 1202770800
60         report_type = hosts
61         objects {
62                 testhost2
63                 testhost
64         }
65         correct {
66                 TIME_UP_UNSCHEDULED = 82800
67                 TIME_DOWN_UNSCHEDULED = 3600
68         }
71 Group availability excluding soft states {
72         start_time = 1202684400
73         end_time = 1202770800
74         includesoftstates = 0
75         report_type = hosts
76         objects {
77                 testhost
78                 testhost2
79         }
80         correct {
81                 TIME_UP_UNSCHEDULED = 83400
82                 TIME_DOWN_UNSCHEDULED = 3000
83         }
86 Group availability excluding soft states, reversed host order {
87         start_time = 1202684400
88         end_time = 1202770800
89         includesoftstates = 0
90         report_type = hosts
91         objects {
92                 testhost2
93                 testhost
94         }
95         correct {
96                 TIME_UP_UNSCHEDULED = 83400
97                 TIME_DOWN_UNSCHEDULED = 3000
98         }
101 Cluster mode availability including soft states {
102         start_time = 1202684400
103         end_time = 1202770800
104         sla_mode = 2
105         report_type = hosts
106         objects {
107                 testhost
108                 testhost2
109         }
110         correct {
111                 TIME_UP_UNSCHEDULED = 86400
112         }
115 Cluster mode availability including soft states, reversed host order {
116         start_time = 1202684400
117         end_time = 1202770800
118         sla_mode = 2
119         report_type = hosts
120         objects {
121                 testhost2
122                 testhost
123         }
124         correct {
125                 TIME_UP_UNSCHEDULED = 86400
126         }
129 Cluster mode availability excluding soft states {
130         start_time = 1202684400
131         end_time = 1202770800
132         includesoftstates = 0
133         sla_mode = 2
134         report_type = hosts
135         objects {
136                 testhost
137                 testhost2
138         }
139         correct {
140                 TIME_UP_UNSCHEDULED = 86400
141         }
144 Cluster mode availability excluding soft states, reversed host order {
145         start_time = 1202684400
146         end_time = 1202770800
147         includesoftstates = 0
148         sla_mode = 2
149         report_type = hosts
150         objects {
151                 testhost2
152                 testhost
153         }
154         correct {
155                 TIME_UP_UNSCHEDULED = 86400
156         }
159 Average availability including soft states {
160         start_time = 1202684400
161         end_time = 1202770800
162         sla_mode = 1
163         report_type = hosts
164         objects {
165                 testhost
166                 testhost2
167         }
168         correct {
169                 TIME_UP_UNSCHEDULED = 84600
170                 TIME_DOWN_UNSCHEDULED = 1800
171         }