1b97bfff7SBrad Bishop# Validate condition callback rendering.
2b97bfff7SBrad Bishop
3b97bfff7SBrad Bishop- name: test path group 1
4b97bfff7SBrad Bishop  class: group
5b97bfff7SBrad Bishop  group: path
6b97bfff7SBrad Bishop  members:
7babf3b78SBrad Bishop      - meta: PATH
8b97bfff7SBrad Bishop        path: /xyz/openbmc_project/testing/inst4
9b97bfff7SBrad Bishop
10b97bfff7SBrad Bishop- name: test path group 2
11b97bfff7SBrad Bishop  class: group
12b97bfff7SBrad Bishop  group: path
13b97bfff7SBrad Bishop  members:
14babf3b78SBrad Bishop      - meta: PATH
15b97bfff7SBrad Bishop        path: /xyz/openbmc_project/testing/inst4
16babf3b78SBrad Bishop      - meta: PATH
17b97bfff7SBrad Bishop        path: /xyz/openbmc_project/testing/inst6
18b97bfff7SBrad Bishop
19b97bfff7SBrad Bishop- name: test property group 1
20b97bfff7SBrad Bishop  class: group
21b97bfff7SBrad Bishop  group: property
22b97bfff7SBrad Bishop  type: int32
23b97bfff7SBrad Bishop  members:
24b97bfff7SBrad Bishop      - interface: xyz.openbmc_project.Sensor.Iface1
25babf3b78SBrad Bishop        meta: PROPERTY
26b97bfff7SBrad Bishop        property: Value
27b97bfff7SBrad Bishop
28b97bfff7SBrad Bishop- name: test property group 2
29b97bfff7SBrad Bishop  class: group
30b97bfff7SBrad Bishop  group: property
31b97bfff7SBrad Bishop  type: string
32b97bfff7SBrad Bishop  members:
33b97bfff7SBrad Bishop      - interface: xyz.openbmc_project.Sensor.Iface3
34babf3b78SBrad Bishop        meta: PROPERTY
35b97bfff7SBrad Bishop        property: Value2
36b97bfff7SBrad Bishop
37b97bfff7SBrad Bishop- name: test count condition 1
38b97bfff7SBrad Bishop  class: condition
39b97bfff7SBrad Bishop  condition: count
40b97bfff7SBrad Bishop  paths: test path group 1
41b97bfff7SBrad Bishop  properties: test property group 1
42b97bfff7SBrad Bishop  callback: test journal callback 1
43*2b31c988SPatrick Williams  countop: ">="
44b97bfff7SBrad Bishop  countbound: 3
45*2b31c988SPatrick Williams  op: ">="
46b97bfff7SBrad Bishop  bound: 115
47b97bfff7SBrad Bishop
48b97bfff7SBrad Bishop- name: test count condition 2
49b97bfff7SBrad Bishop  class: condition
50b97bfff7SBrad Bishop  condition: count
51b97bfff7SBrad Bishop  paths: test path group 1
52b97bfff7SBrad Bishop  properties: test property group 1
53b97bfff7SBrad Bishop  callback: test journal callback 1
54*2b31c988SPatrick Williams  countop: ">="
55b97bfff7SBrad Bishop  countbound: 3
56*2b31c988SPatrick Williams  op: ">="
57b97bfff7SBrad Bishop  bound: 115
58b97bfff7SBrad Bishop
59b97bfff7SBrad Bishop- name: test journal callback 1
60b97bfff7SBrad Bishop  class: callback
61b97bfff7SBrad Bishop  callback: journal
62b97bfff7SBrad Bishop  paths: test path group 1
63b97bfff7SBrad Bishop  properties: test property group 1
64b97bfff7SBrad Bishop  severity: INFO
65b97bfff7SBrad Bishop  message: Hello world from PDM!
66b97bfff7SBrad Bishop
67b97bfff7SBrad Bishop- name: test count condition 3
68b97bfff7SBrad Bishop  class: condition
69b97bfff7SBrad Bishop  condition: count
70b97bfff7SBrad Bishop  paths: test path group 1
71b97bfff7SBrad Bishop  properties: test property group 1
72b97bfff7SBrad Bishop  callback: test journal callback 2
73*2b31c988SPatrick Williams  countop: ">="
74b97bfff7SBrad Bishop  countbound: 3
75*2b31c988SPatrick Williams  op: ">="
76b97bfff7SBrad Bishop  bound: 115
77b97bfff7SBrad Bishop
78b97bfff7SBrad Bishop- name: test count condition 4
79b97bfff7SBrad Bishop  class: condition
80b97bfff7SBrad Bishop  condition: count
81b97bfff7SBrad Bishop  paths: test path group 1
82b97bfff7SBrad Bishop  properties: test property group 1
83b97bfff7SBrad Bishop  callback: test journal callback 2
84*2b31c988SPatrick Williams  countop: ">="
85b97bfff7SBrad Bishop  countbound: 3
86*2b31c988SPatrick Williams  op: ">="
87b97bfff7SBrad Bishop  bound: 115
88b97bfff7SBrad Bishop
89b97bfff7SBrad Bishop- name: test journal callback 2
90b97bfff7SBrad Bishop  class: callback
91b97bfff7SBrad Bishop  callback: journal
92b97bfff7SBrad Bishop  paths: test path group 1
93b97bfff7SBrad Bishop  properties: test property group 1
94b97bfff7SBrad Bishop  severity: INFO
95b97bfff7SBrad Bishop  message: Hello world from PDM!
9607c35131SMatthew Barth
9707c35131SMatthew Barth- name: test median condition 1
9807c35131SMatthew Barth  class: condition
9907c35131SMatthew Barth  condition: median
10007c35131SMatthew Barth  paths: test path group 1
10107c35131SMatthew Barth  properties: test property group 1
10207c35131SMatthew Barth  callback: test journal callback 1
103*2b31c988SPatrick Williams  op: ">="
10407c35131SMatthew Barth  bound: 45
10507c35131SMatthew Barth
10607c35131SMatthew Barth- name: test median condition 2
10707c35131SMatthew Barth  class: condition
10807c35131SMatthew Barth  condition: median
10907c35131SMatthew Barth  paths: test path group 2
11007c35131SMatthew Barth  properties: test property group 1
11107c35131SMatthew Barth  callback: test journal callback 2
112*2b31c988SPatrick Williams  op: ">="
11307c35131SMatthew Barth  bound: 45
114