diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-05-25 21:31:58 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-06-19 16:26:47 -0400 |
commit | 3ce5c484aa9d25927b106f9bd3f819ec861176ad (patch) | |
tree | aa8f818fd9456129035fdca375b5b7cba3e80bfa /src/test/yaml | |
parent | c1283ae8472dbd4e2c3593b76b7600ac72640b80 (diff) | |
download | phosphor-dbus-monitor-3ce5c484aa9d25927b106f9bd3f819ec861176ad.tar.gz phosphor-dbus-monitor-3ce5c484aa9d25927b106f9bd3f819ec861176ad.zip |
Add testcase for callbacks
Change-Id: Iff1ddb9c18b5384d05a4d2dbfba95ade8cc1783c
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/test/yaml')
-rw-r--r-- | src/test/yaml/callbackgentest/one.yaml | 62 | ||||
-rw-r--r-- | src/test/yaml/callbackgentest/two.yaml | 27 |
2 files changed, 89 insertions, 0 deletions
diff --git a/src/test/yaml/callbackgentest/one.yaml b/src/test/yaml/callbackgentest/one.yaml new file mode 100644 index 0000000..e94b262 --- /dev/null +++ b/src/test/yaml/callbackgentest/one.yaml @@ -0,0 +1,62 @@ +# Validate two callbacks that share an index +# and a single callback with its own index. +# +# Expecting three callbacks pointing at two indicies. + +- 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! diff --git a/src/test/yaml/callbackgentest/two.yaml b/src/test/yaml/callbackgentest/two.yaml new file mode 100644 index 0000000..6037f43 --- /dev/null +++ b/src/test/yaml/callbackgentest/two.yaml @@ -0,0 +1,27 @@ +# Validate the same callback name works in differnt config files. + +- name: test path group 1 + 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: 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! |