Brad Bishop | 731171a | 2017-05-25 21:49:32 -0400 | [diff] [blame] | 1 | # Validate nested callback groups. |
| 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 | 731171a | 2017-05-25 21:49:32 -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 | 731171a | 2017-05-25 21:49:32 -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 | 731171a | 2017-05-25 21:49:32 -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 | 731171a | 2017-05-25 21:49:32 -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 | 731171a | 2017-05-25 21:49:32 -0400 | [diff] [blame] | 35 | property: Value2 |
| 36 | |
| 37 | - name: test journal callback 1 |
| 38 | class: callback |
| 39 | callback: journal |
| 40 | paths: test path group 1 |
| 41 | properties: test property group 1 |
| 42 | severity: INFO |
| 43 | message: Hello world from PDM! |
| 44 | |
| 45 | - name: test journal callback 2 |
| 46 | class: callback |
| 47 | callback: journal |
| 48 | paths: test path group 1 |
| 49 | properties: test property group 1 |
| 50 | severity: INFO |
| 51 | message: Hello world from PDM! |
| 52 | |
| 53 | - name: test journal callback 3 |
| 54 | class: callback |
| 55 | callback: journal |
| 56 | paths: test path group 2 |
| 57 | properties: test property group 2 |
| 58 | severity: INFO |
| 59 | message: Hello world from PDM! |
| 60 | |
Gunnar Mills | 937df1a | 2017-08-15 12:39:04 -0500 | [diff] [blame] | 61 | - name: test elog callback 1 |
| 62 | class: callback |
| 63 | callback: elog |
| 64 | paths: test path group 2 |
| 65 | properties: test property group 2 |
| 66 | error: xyz::openbmc_project::Common::Error::InvalidArgument |
| 67 | metadata: |
| 68 | - name: xyz::openbmc_project::Common::InvalidArgument::ARGUMENT_NAME |
| 69 | value: testing... |
| 70 | type: string |
| 71 | - name: xyz::openbmc_project::Common::InvalidArgument::ARGUMENT_VALUE |
| 72 | value: testing... |
| 73 | type: string |
| 74 | |
| 75 | - name: test elog callback 2 |
| 76 | class: callback |
| 77 | callback: elog |
| 78 | paths: test path group 2 |
| 79 | properties: test property group 2 |
| 80 | error: xyz::openbmc_project::Common::Error::InternalFailure |
| 81 | |
Brad Bishop | 731171a | 2017-05-25 21:49:32 -0400 | [diff] [blame] | 82 | - name: test group callback 1 |
| 83 | class: callback |
| 84 | callback: group |
| 85 | members: |
| 86 | - test journal callback 1 |
| 87 | - test journal callback 2 |
| 88 | - test journal callback 3 |
Gunnar Mills | 937df1a | 2017-08-15 12:39:04 -0500 | [diff] [blame] | 89 | - test elog callback 1 |
Brad Bishop | 731171a | 2017-05-25 21:49:32 -0400 | [diff] [blame] | 90 | |
| 91 | - name: test group callback 2 |
| 92 | class: callback |
| 93 | callback: group |
| 94 | members: |
| 95 | - test journal callback 1 |
| 96 | - test journal callback 2 |
Gunnar Mills | 937df1a | 2017-08-15 12:39:04 -0500 | [diff] [blame] | 97 | - test elog callback 2 |
Brad Bishop | 731171a | 2017-05-25 21:49:32 -0400 | [diff] [blame] | 98 | |
| 99 | - name: test group callback 3 |
| 100 | class: callback |
| 101 | callback: group |
| 102 | members: |
| 103 | - test journal callback 3 |
| 104 | - test group callback 2 |
| 105 | - test group callback 3 |
| 106 | |
| 107 | - name: test group callback 4 |
| 108 | class: callback |
| 109 | callback: group |
| 110 | members: |
| 111 | - test group callback 3 |