summaryrefslogtreecommitdiffstats
path: root/test/test.cpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-01-21 22:17:09 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-02-02 03:30:04 +0000
commit3e4a19a3983b48c6d558d30711ec979e37e17f2b (patch)
treee01e5d0c9865fde3c8d549230993084ec5f7a39f /test/test.cpp
parent828df832d282b65eb22f0806885b8a961ecb7fa1 (diff)
downloadphosphor-inventory-manager-3e4a19a3983b48c6d558d30711ec979e37e17f2b.tar.gz
phosphor-inventory-manager-3e4a19a3983b48c6d558d30711ec979e37e17f2b.zip
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
Diffstat (limited to 'test/test.cpp')
-rw-r--r--test/test.cpp18
1 files changed, 18 insertions, 0 deletions
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 @@ void runTests()
},
};
+ // 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"};
OpenPOWER on IntegriCloud