diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-12-01 00:24:14 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-01-12 16:53:38 -0500 |
commit | 432e35277738a03f1ce71614a95d79750795d238 (patch) | |
tree | e2ff93dcb525f2e026826396a8e8e052a1fc742e /example/events.d | |
parent | d1bbf3a71adfd70fbeefb0f709e2892b7c109860 (diff) | |
download | phosphor-inventory-manager-432e35277738a03f1ce71614a95d79750795d238.tar.gz phosphor-inventory-manager-432e35277738a03f1ce71614a95d79750795d238.zip |
Add a testcase for destroyObject
Validate that:
-Dbus signal callbacks are established.
-The propertyChangedTo filter works correctly.
-The destroyObject action works correctly.
Change-Id: I0981fed76aa26ff275a401ae81fd230833dfc4cc
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'example/events.d')
-rw-r--r-- | example/events.d/match2.yaml | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/example/events.d/match2.yaml b/example/events.d/match2.yaml index d31a694..84b28f1 100644 --- a/example/events.d/match2.yaml +++ b/example/events.d/match2.yaml @@ -4,25 +4,30 @@ description: > events: - name: Example Match(2) description: > - Matches any PropertiesChanged signal emitted - by /xyz/openbmc_project/testing. + Destroys the /deleteme1 and /deleteme2 objects + When the value of ExampleProperty2 on + /testing/inventory/trigger changes to xxxyyy. type: match signatures: - type: signal - path: /xyz/openbmc_project/Inventory/example + path: /testing/inventory/trigger1 interface: org.freedesktop.DBus.Properties member: PropertiesChanged filters: - name: propertyChangedTo args: - interface: xyz.openbmc_project.Example.Iface1 - property: ExampleProperty1 + interface: xyz.openbmc_project.Example.Iface2 + property: ExampleProperty2 value: type: string - value: testString + value: xxxyyy actions: - name: destroyObject args: - path: Example + path: /deleteme1 + - name: destroyObject + args: + path: /deleteme2 + # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |