blob: 2345d70d60defb66d663696f01dea5a247700432 [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:
Patrick Williams2b31c982022-12-08 06:12:49 -060010 - 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
Brad Bishopec2ed2f2017-05-31 21:10:43 -040018
19- name: test byte property group
20 class: group
21 group: property
22 type: byte
23 members:
Patrick Williams2b31c982022-12-08 06:12:49 -060024 - interface: xyz.openbmc_project.byteIface
25 meta: PROPERTY
26 property: byteValue
Brad Bishopec2ed2f2017-05-31 21:10:43 -040027
28- name: test u16 property group
29 class: group
30 group: property
31 type: uint16
32 members:
Patrick Williams2b31c982022-12-08 06:12:49 -060033 - interface: xyz.openbmc_project.U16Iface
34 meta: PROPERTY
35 property: u16Value
Brad Bishopec2ed2f2017-05-31 21:10:43 -040036
37- name: test u32 property group
38 class: group
39 group: property
40 type: uint32
41 members:
Patrick Williams2b31c982022-12-08 06:12:49 -060042 - interface: xyz.openbmc_project.U32Iface
43 meta: PROPERTY
44 property: u32Value
Brad Bishopec2ed2f2017-05-31 21:10:43 -040045
46- name: test u64 property group
47 class: group
48 group: property
49 type: uint64
50 members:
Patrick Williams2b31c982022-12-08 06:12:49 -060051 - interface: xyz.openbmc_project.U64Iface
52 meta: PROPERTY
53 property: u64Value
Brad Bishopec2ed2f2017-05-31 21:10:43 -040054
55- name: test s16 property group
56 class: group
57 group: property
58 type: int16
59 members:
Patrick Williams2b31c982022-12-08 06:12:49 -060060 - interface: xyz.openbmc_project.S16Iface
61 meta: PROPERTY
62 property: s16Value
Brad Bishopec2ed2f2017-05-31 21:10:43 -040063
64- name: test s32 property group
65 class: group
66 group: property
67 type: int32
68 members:
Patrick Williams2b31c982022-12-08 06:12:49 -060069 - interface: xyz.openbmc_project.S32Iface
70 meta: PROPERTY
71 property: s32Value
Brad Bishopec2ed2f2017-05-31 21:10:43 -040072
73- name: test s64 property group
74 class: group
75 group: property
76 type: int64
77 members:
Patrick Williams2b31c982022-12-08 06:12:49 -060078 - interface: xyz.openbmc_project.S64Iface
79 meta: PROPERTY
80 property: s64Value
Brad Bishopec2ed2f2017-05-31 21:10:43 -040081
82- name: test string property group
83 class: group
84 group: property
85 type: string
86 members:
Patrick Williams2b31c982022-12-08 06:12:49 -060087 - interface: xyz.openbmc_project.StringIface
88 meta: PROPERTY
89 property: StringValue
Brad Bishopec2ed2f2017-05-31 21:10:43 -040090
91- name: test bool property group
92 class: group
93 group: property
94 type: boolean
95 members:
Patrick Williams2b31c982022-12-08 06:12:49 -060096 - interface: xyz.openbmc_project.BoolIface
97 meta: PROPERTY
98 property: BoolValue
Brad Bishopec2ed2f2017-05-31 21:10:43 -040099
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:
Patrick Williams2b31c982022-12-08 06:12:49 -0600233 - 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
Gunnar Mills2c11e452017-08-14 16:13:32 -0500239
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:
Patrick Williams2b31c982022-12-08 06:12:49 -0600247 - 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
Gunnar Mills2c11e452017-08-14 16:13:32 -0500253
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:
Patrick Williams2b31c982022-12-08 06:12:49 -0600261 - 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
Gunnar Mills2c11e452017-08-14 16:13:32 -0500273
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
Matt Spinler3c5318d2018-02-19 14:03:05 -0600281- name: test elog that captures the passing string metadata
282 class: callback
283 callback: elog_with_metadata
284 paths: test path group
285 properties: test string property group
286 error: xyz::openbmc_project::Common::Callout::Error::Inventory
287 metadata: xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH
288
289- name: test elog that captures the passing int64_t metadata
290 class: callback
291 callback: elog_with_metadata
292 paths: test path group
293 properties: test s64 property group
294 error: xyz::openbmc_project::Common::Callout::Error::Inventory
295 metadata: xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH
296
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400297- name: test method
298 class: callback
299 callback: method
300 service: org.test
301 path: /test
302 interface: org.test
303 method: Test
304 args:
Patrick Williams2b31c982022-12-08 06:12:49 -0600305 - value: 123
306 type: string
307 - value: false
308 type: boolean
309 - value: true
310 type: boolean
311 - value: 123
312 type: byte
313 - value: 123
314 type: uint16
315 - value: 123
316 type: uint32
317 - value: 123
318 type: uint64
319 - value: 123
320 type: int16
321 - value: 123
322 type: int32
323 - value: 123
324 type: int64
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400325
326- name: test count lt
327 class: condition
328 condition: count
329 paths: test path group
330 properties: test byte property group
331 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600332 countop: "<"
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400333 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600334 op: "<"
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400335 bound: 115
Matt Spinlerc458dee2018-02-19 13:09:10 -0600336 oneshot: true
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400337
338- name: test count lte
339 class: condition
340 condition: count
341 paths: test path group
342 properties: test byte property group
343 callback: test method
344 defer: 1000us
Patrick Williams2b31c982022-12-08 06:12:49 -0600345 countop: "<="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400346 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600347 op: "<="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400348 bound: 115
Matt Spinlerc458dee2018-02-19 13:09:10 -0600349 oneshot: false
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400350
351- name: test count gt
352 class: condition
353 condition: count
354 paths: test path group
355 properties: test byte property group
356 defer: 1000us
357 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600358 countop: ">"
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400359 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600360 op: ">"
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400361 bound: 115
362
363- name: test count gte
364 class: condition
365 condition: count
366 paths: test path group
367 properties: test byte property group
368 defer: 1000us
369 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600370 countop: ">="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400371 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600372 op: ">="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400373 bound: 115
374
375- name: test count eq
376 class: condition
377 condition: count
378 paths: test path group
379 properties: test byte property group
380 defer: 1000us
381 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600382 countop: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400383 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600384 op: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400385 bound: 115
386
387- name: test count neq
388 class: condition
389 condition: count
390 paths: test path group
391 properties: test byte property group
392 defer: 1000us
393 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600394 countop: "!="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400395 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600396 op: "!="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400397 bound: 115
398
399- name: test count u16
400 class: condition
401 condition: count
402 paths: test path group
403 properties: test u16 property group
404 defer: 1000us
405 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600406 countop: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400407 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600408 op: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400409 bound: 115
410
411- name: test count u32
412 class: condition
413 condition: count
414 paths: test path group
415 properties: test u32 property group
416 defer: 1000us
417 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600418 countop: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400419 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600420 op: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400421 bound: 115
422
423- name: test count u64
424 class: condition
425 condition: count
426 paths: test path group
427 properties: test u64 property group
428 defer: 1000us
429 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600430 countop: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400431 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600432 op: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400433 bound: 115
434
435- name: test count s16
436 class: condition
437 condition: count
438 paths: test path group
439 properties: test s16 property group
440 defer: 1000us
441 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600442 countop: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400443 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600444 op: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400445 bound: 115
446
447- name: test count s32
448 class: condition
449 condition: count
450 paths: test path group
451 properties: test s32 property group
452 defer: 1000us
453 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600454 countop: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400455 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600456 op: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400457 bound: 115
458
459- name: test count s64
460 class: condition
461 condition: count
462 paths: test path group
463 properties: test s64 property group
464 defer: 1000us
465 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600466 countop: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400467 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600468 op: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400469 bound: 115
470
471- name: test count bool
472 class: condition
473 condition: count
474 paths: test path group
475 properties: test bool property group
476 defer: 1000us
477 callback: test method
Patrick Williams2b31c982022-12-08 06:12:49 -0600478 countop: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400479 countbound: 3
Patrick Williams2b31c982022-12-08 06:12:49 -0600480 op: "=="
Brad Bishopec2ed2f2017-05-31 21:10:43 -0400481 bound: false
Matt Spinler7af95882017-11-01 13:02:29 -0500482
483- name: test resolve errors
484 class: callback
485 callback: resolve callout
486 paths: test path group
487 properties: test byte property group
488 callout: /test/inventory/path