summaryrefslogtreecommitdiffstats
path: root/src/test/yaml
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-05-25 21:49:32 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-06-19 16:26:47 -0400
commit731171a12c6d52ead2d93303867b6d731d4d6728 (patch)
tree22cf0b9c7efc0bec6bfb453a573f175014a91bfe /src/test/yaml
parent49e661750ceed68ada3f3ae00d6d1620800c1f5f (diff)
downloadphosphor-dbus-monitor-731171a12c6d52ead2d93303867b6d731d4d6728.tar.gz
phosphor-dbus-monitor-731171a12c6d52ead2d93303867b6d731d4d6728.zip
Add testcase for callback groups
Change-Id: Icbdc8612d73bed065227d9edfde1426206886652 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/test/yaml')
-rw-r--r--src/test/yaml/callbackgroupgentest/test.yaml88
1 files changed, 88 insertions, 0 deletions
diff --git a/src/test/yaml/callbackgroupgentest/test.yaml b/src/test/yaml/callbackgroupgentest/test.yaml
new file mode 100644
index 0000000..03962ba
--- /dev/null
+++ b/src/test/yaml/callbackgroupgentest/test.yaml
@@ -0,0 +1,88 @@
+# Validate nested callback groups.
+
+- name: test path group 1
+ class: group
+ group: path
+ members:
+ - meta: path
+ path: /xyz/openbmc_project/testing/inst4
+
+- name: test path group 2
+ class: group
+ group: path
+ members:
+ - meta: path
+ path: /xyz/openbmc_project/testing/inst4
+ - meta: path
+ path: /xyz/openbmc_project/testing/inst6
+
+- name: test property group 1
+ class: group
+ group: property
+ type: int32
+ members:
+ - interface: xyz.openbmc_project.Sensor.Iface1
+ meta: property
+ property: Value
+
+- name: test property group 2
+ class: group
+ group: property
+ type: string
+ members:
+ - interface: xyz.openbmc_project.Sensor.Iface3
+ meta: property
+ property: Value2
+
+- name: test journal callback 1
+ class: callback
+ callback: journal
+ paths: test path group 1
+ properties: test property group 1
+ severity: INFO
+ message: Hello world from PDM!
+
+- name: test journal callback 2
+ class: callback
+ callback: journal
+ paths: test path group 1
+ properties: test property group 1
+ severity: INFO
+ message: Hello world from PDM!
+
+- name: test journal callback 3
+ class: callback
+ callback: journal
+ paths: test path group 2
+ properties: test property group 2
+ severity: INFO
+ message: Hello world from PDM!
+
+- name: test group callback 1
+ class: callback
+ callback: group
+ members:
+ - test journal callback 1
+ - test journal callback 2
+ - test journal callback 3
+
+- name: test group callback 2
+ class: callback
+ callback: group
+ members:
+ - test journal callback 1
+ - test journal callback 2
+
+- name: test group callback 3
+ class: callback
+ callback: group
+ members:
+ - test journal callback 3
+ - test group callback 2
+ - test group callback 3
+
+- name: test group callback 4
+ class: callback
+ callback: group
+ members:
+ - test group callback 3
OpenPOWER on IntegriCloud