diff options
author | Wludzik, Jozef <jozef.wludzik@intel.com> | 2020-05-18 12:56:57 +0300 |
---|---|---|
committer | Krzysztof Grobelny <krzysztof.grobelny@intel.com> | 2021-03-30 13:16:24 +0300 |
commit | 4dbb8aea7651dc61a4dc384625567b34393742a2 (patch) | |
tree | 5abb1d082af91d51c2bd9b86da79ae11c96af362 /src | |
parent | 4df1bee0bdc9d71043b51872875d3d22b26ab68f (diff) | |
download | bmcweb-4dbb8aea7651dc61a4dc384625567b34393742a2.tar.xz |
Add POST and DELETE in MetricReportDefinitions
Added POST action in MetricReportDefinitions node to allow user
to add new MetricReportDefinition. Using minimal set of
MetricReportDefinition parameters from user bmcweb converts it to
DBus call "AddReport" to Telemetry that serves as a backend
for Redfish TelemetryService.
Added DELETE request in MetricReportDefinitions node to allow user
to remove report from Telemetry.
Added conversion from string that represents duration format into
its numeric equivalent.
Added unit tests for conversion from and to Duration format.
Tested:
- Tested using witherspoon image on QEMU
- Verified POST action in different cases:
- all parameters are provided, new report is added to collection
- some parameters are missing or invalid, user gets response with
description of the issue
- Verified that reports are removed on DELETE request
- Verified that on invalid DELETE request user receives response
with error
- Verified time_utils::fromDurationString()
- Succesfully passed RedfishServiceValidator.py
Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
Change-Id: I2fed96848594451e22fde686f8c066d7770cc65a
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions