Add a testcase for setProperty
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: Ifade8963ebc8d18dbdca46ece16800cf8ea8a6ad
diff --git a/example/events.d/match1.yaml b/example/events.d/match1.yaml
index 3a08305..19d501a 100644
--- a/example/events.d/match1.yaml
+++ b/example/events.d/match1.yaml
@@ -4,20 +4,31 @@
events:
- name: Example Match(1)
description: >
- Matches any PropertiesChanged signal.
+ Sets the value of ExampleProperty1 on /changeme
+ when the value of ExampleProperty2 on
+ /testing/inventory/trigger2 changes to yyyxxx.
type: match
signatures:
- type: signal
interface: org.freedesktop.DBus.Properties
+ path: /testing/inventory/trigger2
member: PropertiesChanged
+ filters:
+ - name: propertyChangedTo
+ args:
+ interface: xyz.openbmc_project.Example.Iface2
+ property: ExampleProperty2
+ value:
+ type: string
+ value: yyyxxx
actions:
- name: setProperty
args:
interface: xyz.openbmc_project.Example.Iface1
property: ExampleProperty1
- path: /test
+ path: /changeme
value:
type: string
- value: test
+ value: changed
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4