blob: fc1eaa7513a38e4dece1ac680a8fdbce996b1793 [file] [log] [blame]
Brad Bishopec2ed2f2017-05-31 21:10:43 -04001# Test PDM configuration file. This file validates that all
2# possible configuration file directives result in an application
3# that builds. For an example with documentation please see
4# example.yaml
5
6- name: test path group
7 class: group
8 group: path
9 members:
10 - meta: PATH
11 path: /xyz/openbmc_project/testing/inst1
12 - meta: PATH
13 path: /xyz/openbmc_project/testing/inst2
14 - meta: PATH
15 path: /xyz/openbmc_project/testing/inst3
16 - meta: PATH
17 path: /xyz/openbmc_project/testing/inst4
18
19- name: test byte property group
20 class: group
21 group: property
22 type: byte
23 members:
24 - interface: xyz.openbmc_project.byteIface
25 meta: PROPERTY
26 property: byteValue
27
28- name: test u16 property group
29 class: group
30 group: property
31 type: uint16
32 members:
33 - interface: xyz.openbmc_project.U16Iface
34 meta: PROPERTY
35 property: u16Value
36
37- name: test u32 property group
38 class: group
39 group: property
40 type: uint32
41 members:
42 - interface: xyz.openbmc_project.U32Iface
43 meta: PROPERTY
44 property: u32Value
45
46- name: test u64 property group
47 class: group
48 group: property
49 type: uint64
50 members:
51 - interface: xyz.openbmc_project.U64Iface
52 meta: PROPERTY
53 property: u64Value
54
55- name: test s16 property group
56 class: group
57 group: property
58 type: int16
59 members:
60 - interface: xyz.openbmc_project.S16Iface
61 meta: PROPERTY
62 property: s16Value
63
64- name: test s32 property group
65 class: group
66 group: property
67 type: int32
68 members:
69 - interface: xyz.openbmc_project.S32Iface
70 meta: PROPERTY
71 property: s32Value
72
73- name: test s64 property group
74 class: group
75 group: property
76 type: int64
77 members:
78 - interface: xyz.openbmc_project.S64Iface
79 meta: PROPERTY
80 property: s64Value
81
82- name: test string property group
83 class: group
84 group: property
85 type: string
86 members:
87 - interface: xyz.openbmc_project.StringIface
88 meta: PROPERTY
89 property: StringValue
90
91- name: test bool property group
92 class: group
93 group: property
94 type: boolean
95 members:
96 - interface: xyz.openbmc_project.BoolIface
97 meta: PROPERTY
98 property: BoolValue
99
100- name: test byte watch
101 class: watch
102 watch: property
103 paths: test path group
104 properties: test byte property group
105
106- name: test u16 watch
107 class: watch
108 watch: property
109 paths: test path group
110 properties: test u16 property group
111
112- name: test u32 watch
113 class: watch
114 watch: property
115 paths: test path group
116 properties: test u32 property group
117
118- name: test u64 watch
119 class: watch
120 watch: property
121 paths: test path group
122 properties: test u64 property group
123
124- name: test s16 watch
125 class: watch
126 watch: property
127 paths: test path group
128 properties: test s16 property group
129
130- name: test s32 watch
131 class: watch
132 watch: property
133 paths: test path group
134 properties: test s32 property group
135
136- name: test s64 watch
137 class: watch
138 watch: property
139 paths: test path group
140 properties: test s64 property group
141
142- name: test bool watch
143 class: watch
144 watch: property
145 paths: test path group
146 properties: test bool property group
147
148- name: test string watch
149 class: watch
150 watch: property
151 paths: test path group
152 properties: test string property group
153
154- name: test byte journal
155 class: callback
156 callback: journal
157 paths: test path group
158 properties: test byte property group
159 severity: DEBUG
160 message: Testing...
161
162- name: test u16 journal
163 class: callback
164 callback: journal
165 paths: test path group
166 properties: test u16 property group
167 severity: INFO
168 message: Testing...
169
170- name: test u32 journal
171 class: callback
172 callback: journal
173 paths: test path group
174 properties: test u32 property group
175 severity: NOTICE
176 message: Testing...
177
178- name: test u64 journal
179 class: callback
180 callback: journal
181 paths: test path group
182 properties: test u64 property group
183 severity: WARNING
184 message: Testing...
185
186- name: test s16 journal
187 class: callback
188 callback: journal
189 paths: test path group
190 properties: test s16 property group
191 severity: ERR
192 message: Testing...
193
194- name: test s32 journal
195 class: callback
196 callback: journal
197 paths: test path group
198 properties: test s32 property group
199 severity: CRIT
200 message: Testing...
201
202- name: test s64 journal
203 class: callback
204 callback: journal
205 paths: test path group
206 properties: test s64 property group
207 severity: ALERT
208 message: Testing...
209
210- name: test bool journal
211 class: callback
212 callback: journal
213 paths: test path group
214 properties: test bool property group
215 severity: EMERG
216 message: Testing...
217
218- name: test string journal
219 class: callback
220 callback: journal
221 paths: test path group
222 properties: test string property group
223 severity: INFO
224 message: Testing...
225
Gunnar Mills2c11e452017-08-14 16:13:32 -0500226- name: test string elog
227 class: callback
228 callback: elog
229 paths: test path group
230 properties: test string property group
231 error: xyz::openbmc_project::Common::Error::InvalidArgument
232 metadata:
233 - name: xyz::openbmc_project::Common::InvalidArgument::ARGUMENT_NAME
234 value: testing...
235 type: string
236 - name: xyz::openbmc_project::Common::InvalidArgument::ARGUMENT_VALUE
237 value: testing...
238 type: string
239
240- name: test int32 elog
241 class: callback
242 callback: elog
243 paths: test path group
244 properties: test string property group
245 error: xyz::openbmc_project::Common::Callout::Error::Device
246 metadata:
247 - name: xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO
248 value: 123
249 type: int32
250 - name: xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH
251 value: testing...
252 type: string
253
254- name: test int64 elog
255 class: callback
256 callback: elog
257 paths: test path group
258 properties: test string property group
259 error: xyz::openbmc_project::Common::File::Error::Seek
260 metadata:
261 - name: xyz::openbmc_project::Common::File::Seek::OFFSET
262 value: 123
263 type: int64
264 - name: xyz::openbmc_project::Common::File::Seek::WHENCE
265 value: 123
266 type: int32
267 - name: xyz::openbmc_project::Common::File::Seek::ERRNO
268 value: 123
269 type: int32
270 - name: xyz::openbmc_project::Common::File::Seek::PATH
271 value: testing...
272 type: string
273
Gunnar Mills937df1a2017-08-15 12:39:04 -0500274- name: test no metadata elog
275 class: callback
276 callback: elog
277 paths: test path group
278 properties: test string property group
279 error: xyz::openbmc_project::Common::Error::InternalFailure
280
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400281- name: test method
282 class: callback
283 callback: method
284 service: org.test
285 path: /test
286 interface: org.test
287 method: Test
288 args:
289 - value: 123
290 type: string
291 - value: false
292 type: boolean
293 - value: true
294 type: boolean
295 - value: 123
296 type: byte
297 - value: 123
298 type: uint16
299 - value: 123
300 type: uint32
301 - value: 123
302 type: uint64
303 - value: 123
304 type: int16
305 - value: 123
306 type: int32
307 - value: 123
308 type: int64
309
310- name: test count lt
311 class: condition
312 condition: count
313 paths: test path group
314 properties: test byte property group
315 callback: test method
316 countop: '<'
317 countbound: 3
318 op: '<'
319 bound: 115
320
321- name: test count lte
322 class: condition
323 condition: count
324 paths: test path group
325 properties: test byte property group
326 callback: test method
327 defer: 1000us
328 countop: '<='
329 countbound: 3
330 op: '<='
331 bound: 115
332
333- name: test count gt
334 class: condition
335 condition: count
336 paths: test path group
337 properties: test byte property group
338 defer: 1000us
339 callback: test method
340 countop: '>'
341 countbound: 3
342 op: '>'
343 bound: 115
344
345- name: test count gte
346 class: condition
347 condition: count
348 paths: test path group
349 properties: test byte property group
350 defer: 1000us
351 callback: test method
352 countop: '>='
353 countbound: 3
354 op: '>='
355 bound: 115
356
357- name: test count eq
358 class: condition
359 condition: count
360 paths: test path group
361 properties: test byte property group
362 defer: 1000us
363 callback: test method
364 countop: '=='
365 countbound: 3
366 op: '=='
367 bound: 115
368
369- name: test count neq
370 class: condition
371 condition: count
372 paths: test path group
373 properties: test byte property group
374 defer: 1000us
375 callback: test method
376 countop: '!='
377 countbound: 3
378 op: '!='
379 bound: 115
380
381- name: test count u16
382 class: condition
383 condition: count
384 paths: test path group
385 properties: test u16 property group
386 defer: 1000us
387 callback: test method
388 countop: '=='
389 countbound: 3
390 op: '=='
391 bound: 115
392
393- name: test count u32
394 class: condition
395 condition: count
396 paths: test path group
397 properties: test u32 property group
398 defer: 1000us
399 callback: test method
400 countop: '=='
401 countbound: 3
402 op: '=='
403 bound: 115
404
405- name: test count u64
406 class: condition
407 condition: count
408 paths: test path group
409 properties: test u64 property group
410 defer: 1000us
411 callback: test method
412 countop: '=='
413 countbound: 3
414 op: '=='
415 bound: 115
416
417- name: test count s16
418 class: condition
419 condition: count
420 paths: test path group
421 properties: test s16 property group
422 defer: 1000us
423 callback: test method
424 countop: '=='
425 countbound: 3
426 op: '=='
427 bound: 115
428
429- name: test count s32
430 class: condition
431 condition: count
432 paths: test path group
433 properties: test s32 property group
434 defer: 1000us
435 callback: test method
436 countop: '=='
437 countbound: 3
438 op: '=='
439 bound: 115
440
441- name: test count s64
442 class: condition
443 condition: count
444 paths: test path group
445 properties: test s64 property group
446 defer: 1000us
447 callback: test method
448 countop: '=='
449 countbound: 3
450 op: '=='
451 bound: 115
452
453- name: test count bool
454 class: condition
455 condition: count
456 paths: test path group
457 properties: test bool property group
458 defer: 1000us
459 callback: test method
460 countop: '=='
461 countbound: 3
462 op: '=='
463 bound: false