Brad Bishop | b97bfff | 2017-05-25 22:14:54 -0400 | [diff] [blame] | 1 | # Validate condition callback rendering. |
| 2 | |
| 3 | - name: test path group 1 |
| 4 | class: group |
| 5 | group: path |
| 6 | members: |
Brad Bishop | babf3b7 | 2017-05-31 19:44:53 -0400 | [diff] [blame] | 7 | - meta: PATH |
Brad Bishop | b97bfff | 2017-05-25 22:14:54 -0400 | [diff] [blame] | 8 | path: /xyz/openbmc_project/testing/inst4 |
| 9 | |
| 10 | - name: test path group 2 |
| 11 | class: group |
| 12 | group: path |
| 13 | members: |
Brad Bishop | babf3b7 | 2017-05-31 19:44:53 -0400 | [diff] [blame] | 14 | - meta: PATH |
Brad Bishop | b97bfff | 2017-05-25 22:14:54 -0400 | [diff] [blame] | 15 | path: /xyz/openbmc_project/testing/inst4 |
Brad Bishop | babf3b7 | 2017-05-31 19:44:53 -0400 | [diff] [blame] | 16 | - meta: PATH |
Brad Bishop | b97bfff | 2017-05-25 22:14:54 -0400 | [diff] [blame] | 17 | 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 Bishop | babf3b7 | 2017-05-31 19:44:53 -0400 | [diff] [blame] | 25 | meta: PROPERTY |
Brad Bishop | b97bfff | 2017-05-25 22:14:54 -0400 | [diff] [blame] | 26 | 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 Bishop | babf3b7 | 2017-05-31 19:44:53 -0400 | [diff] [blame] | 34 | meta: PROPERTY |
Brad Bishop | b97bfff | 2017-05-25 22:14:54 -0400 | [diff] [blame] | 35 | 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 Barth | 07c3513 | 2019-10-21 10:02:33 -0500 | [diff] [blame] | 96 | |
| 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 |