Add support for application startup events.
Allow clients to specify filters and actions that trigger
on application startup.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: Ib36c5bab778d7c87906dd3f61a3a6e033c7ccde1
diff --git a/test/test.cpp b/test/test.cpp
index 816d471..3f39fa9 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -209,6 +209,24 @@
},
};
+ // Validate startup events occurred.
+ {
+ sdbusplus::message::object_path relCreateMe3{"/createme3"};
+ std::string createMe3{root + relCreateMe3.str};
+
+ auto get = b.new_method_call(
+ MGR_SERVICE,
+ createMe3.c_str(),
+ "org.freedesktop.DBus.Properties",
+ "GetAll");
+ get.append("xyz.openbmc_project.Example.Iface1");
+ auto resp = b.call(get);
+
+ Object::mapped_type properties;
+ assert(!resp.is_method_error());
+ resp.read(properties);
+ }
+
// Make sure the notify method works.
{
sdbusplus::message::object_path relPath{"/foo"};