Removed FutureVersion from API
Instead of using FutureVersion API currently used version is updated.
This change needs to be bumped together with [1]. API that utilized map
of variants to be more flexible and backwards compatible was reverted.
It was decided that straight forward API that is commonly used should be
used instead.
Removed MetricId property from Metric. In telemetry it was implemented
as a name for Metric, but it was supposed to work as described in [2].
Currently MetricId is not supported by telemetry service and property
was removed.
Tested:
- After chaging bmcweb to use new API old and new features are working
as expected
[1]: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/44270
[2]: https://redfish.dmtf.org/schemas/v1/MetricReportDefinition.v1_4_2.json
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
Change-Id: I5930a466a370f268d68f575a4a3db5ee9655e574
diff --git a/tests/src/helpers/metric_value_helpers.hpp b/tests/src/helpers/metric_value_helpers.hpp
index 9634de3..dee48bd 100644
--- a/tests/src/helpers/metric_value_helpers.hpp
+++ b/tests/src/helpers/metric_value_helpers.hpp
@@ -6,12 +6,12 @@
inline void PrintTo(const MetricValue& o, std::ostream* os)
{
- (*os) << "{ id: " << o.id << ", metadata: " << o.metadata
- << ", value: " << o.value << ", timestamp: " << o.timestamp << " }";
+ (*os) << "{ metadata: " << o.metadata << ", value: " << o.value
+ << ", timestamp: " << o.timestamp << " }";
}
inline bool operator==(const MetricValue& left, const MetricValue& right)
{
- return std::tie(left.id, left.metadata, left.value, left.timestamp) ==
- std::tie(right.id, right.metadata, right.value, right.timestamp);
+ return std::tie(left.metadata, left.value, left.timestamp) ==
+ std::tie(right.metadata, right.value, right.timestamp);
}