blob: 6e2c36e073b17b954a7d17cb877af69435a3295b [file] [log] [blame]
Brad Bishopb97bfff2017-05-25 22:14:54 -04001# Validate condition callback rendering.
2
3- name: test path group 1
4 class: group
5 group: path
6 members:
Brad Bishopbabf3b72017-05-31 19:44:53 -04007 - meta: PATH
Brad Bishopb97bfff2017-05-25 22:14:54 -04008 path: /xyz/openbmc_project/testing/inst4
9
10- name: test path group 2
11 class: group
12 group: path
13 members:
Brad Bishopbabf3b72017-05-31 19:44:53 -040014 - meta: PATH
Brad Bishopb97bfff2017-05-25 22:14:54 -040015 path: /xyz/openbmc_project/testing/inst4
Brad Bishopbabf3b72017-05-31 19:44:53 -040016 - meta: PATH
Brad Bishopb97bfff2017-05-25 22:14:54 -040017 path: /xyz/openbmc_project/testing/inst6
18
19- name: test property group 1
20 class: group
21 group: property
22 type: int32
23 members:
24 - interface: xyz.openbmc_project.Sensor.Iface1
Brad Bishopbabf3b72017-05-31 19:44:53 -040025 meta: PROPERTY
Brad Bishopb97bfff2017-05-25 22:14:54 -040026 property: Value
27
28- name: test property group 2
29 class: group
30 group: property
31 type: string
32 members:
33 - interface: xyz.openbmc_project.Sensor.Iface3
Brad Bishopbabf3b72017-05-31 19:44:53 -040034 meta: PROPERTY
Brad Bishopb97bfff2017-05-25 22:14:54 -040035 property: Value2
36
37- name: test count condition 1
38 class: condition
39 condition: count
40 paths: test path group 1
41 properties: test property group 1
42 callback: test journal callback 1
43 countop: '>='
44 countbound: 3
45 op: '>='
46 bound: 115
47
48- name: test count condition 2
49 class: condition
50 condition: count
51 paths: test path group 1
52 properties: test property group 1
53 callback: test journal callback 1
54 countop: '>='
55 countbound: 3
56 op: '>='
57 bound: 115
58
59- name: test journal callback 1
60 class: callback
61 callback: journal
62 paths: test path group 1
63 properties: test property group 1
64 severity: INFO
65 message: Hello world from PDM!
66
67- name: test count condition 3
68 class: condition
69 condition: count
70 paths: test path group 1
71 properties: test property group 1
72 callback: test journal callback 2
73 countop: '>='
74 countbound: 3
75 op: '>='
76 bound: 115
77
78- name: test count condition 4
79 class: condition
80 condition: count
81 paths: test path group 1
82 properties: test property group 1
83 callback: test journal callback 2
84 countop: '>='
85 countbound: 3
86 op: '>='
87 bound: 115
88
89- name: test journal callback 2
90 class: callback
91 callback: journal
92 paths: test path group 1
93 properties: test property group 1
94 severity: INFO
95 message: Hello world from PDM!
Matthew Barth07c35132019-10-21 10:02:33 -050096
97- name: test median condition 1
98 class: condition
99 condition: median
100 paths: test path group 1
101 properties: test property group 1
102 callback: test journal callback 1
103 op: '>='
104 bound: 45
105
106- name: test median condition 2
107 class: condition
108 condition: median
109 paths: test path group 2
110 properties: test property group 1
111 callback: test journal callback 2
112 op: '>='
113 bound: 45