diff options
author | Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com> | 2019-07-11 10:16:43 +0200 |
---|---|---|
committer | Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com> | 2020-01-27 09:52:18 +0000 |
commit | 107077def176ad4a29557fae353de9bb00381ca9 (patch) | |
tree | 98c079957b689e7b615ee12ada7ba06e2d6bb4de /redfish-core/lib/account_service.hpp | |
parent | 4228a1609a9f9751604a1e636de11a34ed58b840 (diff) | |
download | bmcweb-107077def176ad4a29557fae353de9bb00381ca9.tar.gz bmcweb-107077def176ad4a29557fae353de9bb00381ca9.zip |
Add VirtualMedia schema to Redfish
This change adds VirtualMedia scheme to Redfish.
Implementation is based on input from virtual-media module
and nbd proxy which is a bmcweb part. The code is used
only in case ndb-proxy is supported in bmcweb
(BMCWEB_ENABLE_VM_NBDPROXY compilation flag).
Tested:
* Manual tests together with nbd proxy and virtual media app
- For requests: Postman and/or HTTPie, started with logs
enabled and Valgrind
- Manual result validation
* Tests ran:
- GET on collection with manual validation
- PUT/POST/DELETE on collection
- GET on item/nonexistent item
- PUT/POST/DELETE on item
* Redfish Service Validator tested, no new issues found.
Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
Change-Id: I5415dc0ffe52069fd35bc614b0378bbc4ad41ff6
Diffstat (limited to 'redfish-core/lib/account_service.hpp')
-rw-r--r-- | redfish-core/lib/account_service.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp index 9f066e3..017a83d 100644 --- a/redfish-core/lib/account_service.hpp +++ b/redfish-core/lib/account_service.hpp @@ -64,11 +64,14 @@ struct LDAPConfigData std::vector<std::pair<std::string, LDAPRoleMapData>> groupRoleList; }; -using ManagedObjectType = std::vector<std::pair< - sdbusplus::message::object_path, - boost::container::flat_map< - std::string, boost::container::flat_map< - std::string, std::variant<bool, std::string>>>>>; +using DbusVariantType = sdbusplus::message::variant<bool, int32_t, std::string>; + +using DbusInterfaceType = boost::container::flat_map< + std::string, boost::container::flat_map<std::string, DbusVariantType>>; + +using ManagedObjectType = + std::vector<std::pair<sdbusplus::message::object_path, DbusInterfaceType>>; + using GetObjectType = std::vector<std::pair<std::string, std::vector<std::string>>>; |