Lines Matching +full:- +full:eq

104             reportFactoryMock->convertMetricParams(params);  in getMetricsFromReadingParams()
178 Eq(boost::system::errc::success);
179 Matcher<T> valueAfter = Eq(newValue);
197 DbusEnvironment::getBus()->async_method_call( in call()
224 EXPECT_THAT(sut->getId(), Eq(defaultParams().reportId())); in TEST_F()
229 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), in TEST_F()
230 Eq(defaultParams().enabled())); in TEST_F()
231 EXPECT_THAT(getProperty<uint64_t>(sut->getPath(), "Interval"), in TEST_F()
232 Eq(defaultParams().interval().count())); in TEST_F()
233 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistency"), Eq(true)); in TEST_F()
235 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
236 Eq(utils::transform(defaultParams().reportActions(), [](const auto v) { in TEST_F()
239 EXPECT_THAT(getProperty<bool>(sut->getPath(), "EmitsReadingsUpdate"), in TEST_F()
240 Eq(utils::contains(defaultParams().reportActions(), in TEST_F()
242 EXPECT_THAT(getProperty<uint64_t>(sut->getPath(), "AppendLimit"), in TEST_F()
243 Eq(defaultParams().appendLimit())); in TEST_F()
244 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "ReportingType"), in TEST_F()
245 Eq(utils::enumToString(defaultParams().reportingType()))); in TEST_F()
246 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "ReportUpdates"), in TEST_F()
247 Eq(utils::enumToString(defaultParams().reportUpdates()))); in TEST_F()
249 getProperty<bool>(sut->getPath(), "LogToMetricReportsCollection"), in TEST_F()
250 Eq(utils::contains(defaultParams().reportActions(), in TEST_F()
253 getProperty<ReadingParameters>(sut->getPath(), "ReadingParameters"), in TEST_F()
254 Eq(toReadingParameters(defaultParams().metricParameters()))); in TEST_F()
255 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "Name"), in TEST_F()
256 Eq(defaultParams().reportName())); in TEST_F()
258 getProperty<std::vector<object_path>>(sut->getPath(), "Triggers"), in TEST_F()
264 EXPECT_THAT(getProperty<Readings>(sut->getPath(), "Readings"), in TEST_F()
265 Eq(Readings{})); in TEST_F()
283 setProperty(sut->getPath(), "ReadingParameters", newParams).value(), in TEST_F()
284 Eq(boost::system::errc::success)); in TEST_F()
286 getProperty<ReadingParameters>(sut->getPath(), "ReadingParameters"), in TEST_F()
287 Eq(newParams)); in TEST_F()
311 setProperty(sut->getPath(), "ReadingParameters", newParams).value(), in TEST_F()
312 Eq(boost::system::errc::invalid_argument)); in TEST_F()
325 setProperty(sut->getPath(), "ReportActions", newActions).value(), in TEST_F()
326 Eq(boost::system::errc::success)); in TEST_F()
328 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
348 setProperty(sut->getPath(), "ReportActions", newActions).value(), in TEST_F()
349 Eq(boost::system::errc::success)); in TEST_F()
351 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
352 Eq(expectedActions)); in TEST_F()
366 setProperty(sut->getPath(), "ReportActions", newActions).value(), in TEST_F()
367 Eq(boost::system::errc::success)); in TEST_F()
369 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
370 Eq(expectedActions)); in TEST_F()
377 setProperty(sut->getPath(), "ReportActions", invalidActions).value(), in TEST_F()
378 Eq(boost::system::errc::invalid_argument)); in TEST_F()
380 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
381 Eq(utils::transform(defaultParams().reportActions(), [](const auto v) { in TEST_F()
393 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
394 Eq(expectedActions)); in TEST_F()
413 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
414 Eq(expectedActions)); in TEST_F()
420 EXPECT_THAT(setProperty(sut->getPath(), "Enabled", newValue).value(), in TEST_F()
421 Eq(boost::system::errc::success)); in TEST_F()
422 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), Eq(newValue)); in TEST_F()
428 EXPECT_THAT(callMethod(sut->getPath(), "SetReportingProperties", in TEST_F()
431 Eq(boost::system::errc::success)); in TEST_F()
432 EXPECT_THAT(getProperty<uint64_t>(sut->getPath(), "Interval"), in TEST_F()
433 Eq(newValue)); in TEST_F()
438 uint64_t newValue = ReportManager::minInterval.count() - 1; in TEST_F()
440 EXPECT_THAT(callMethod(sut->getPath(), "SetReportingProperties", "", in TEST_F()
442 Eq(boost::system::errc::invalid_argument)); in TEST_F()
444 EXPECT_THAT(getProperty<uint64_t>(sut->getPath(), "Interval"), in TEST_F()
445 Eq(defaultParams().interval().count())); in TEST_F()
457 EXPECT_THAT(callMethod(report->getPath(), "SetReportingProperties", "", in TEST_F()
459 Eq(boost::system::errc::invalid_argument)); in TEST_F()
461 EXPECT_THAT(getProperty<uint64_t>(report->getPath(), "Interval"), in TEST_F()
462 Eq(defaultParams().interval().count())); in TEST_F()
472 EXPECT_THAT(callMethod(sut->getPath(), "SetReportingProperties", "XYZ", in TEST_F()
474 Eq(boost::system::errc::invalid_argument)); in TEST_F()
476 EXPECT_THAT(getProperty<std::string>(report->getPath(), "ReportingType"), in TEST_F()
477 Eq(utils::enumToString(ReportingType::onRequest))); in TEST_F()
487 EXPECT_THAT(callMethod(sut->getPath(), "SetReportingProperties", in TEST_F()
490 Eq(boost::system::errc::invalid_argument)); in TEST_F()
492 EXPECT_THAT(getProperty<std::string>(report->getPath(), "ReportingType"), in TEST_F()
493 Eq(utils::enumToString(ReportingType::onRequest))); in TEST_F()
499 setProperty(sut->getPath(), "EmitsReadingsUpdate", true).value(), in TEST_F()
500 Eq(boost::system::errc::read_only_file_system)); in TEST_F()
501 EXPECT_THAT(getProperty<bool>(sut->getPath(), "EmitsReadingsUpdate"), in TEST_F()
502 Eq(utils::contains(defaultParams().reportActions(), in TEST_F()
509 setProperty(sut->getPath(), "LogToMetricReportsCollection", true) in TEST_F()
511 Eq(boost::system::errc::read_only_file_system)); in TEST_F()
513 getProperty<bool>(sut->getPath(), "LogToMetricReportsCollection"), in TEST_F()
514 Eq(utils::contains(defaultParams().reportActions(), in TEST_F()
521 EXPECT_CALL(storageMock, remove(to_file_path(sut->getId()))) in TEST_F()
525 EXPECT_THAT(setProperty(sut->getPath(), "Persistency", persistency).value(), in TEST_F()
526 Eq(boost::system::errc::success)); in TEST_F()
527 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistency"), in TEST_F()
528 Eq(persistency)); in TEST_F()
534 auto ec = deleteReport(sut->getPath()); in TEST_F()
535 EXPECT_THAT(ec, Eq(boost::system::errc::success)); in TEST_F()
542 EXPECT_THAT(ec.value(), Eq(EBADR)); in TEST_F()
548 EXPECT_CALL(storageMock, remove(to_file_path(sut->getId()))) in TEST_F()
551 auto ec = deleteReport(sut->getPath()); in TEST_F()
552 EXPECT_THAT(ec, Eq(boost::system::errc::success)); in TEST_F()
571 getProperty<std::vector<object_path>>(sut->getPath(), "Triggers"), in TEST_F()
595 getProperty<std::vector<object_path>>(sut->getPath(), "Triggers"), in TEST_F()
618 getProperty<std::vector<object_path>>(sut->getPath(), "Triggers"), in TEST_F()
676 EXPECT_CALL(storageMock, remove(to_file_path(sut->getId()))); in TEST_P()
678 EXPECT_CALL(storageMock, store(to_file_path(sut->getId()), _)); in TEST_P()
681 setProperty(sut->getPath(), "Persistency", false); in TEST_P()
683 setProperty(sut->getPath(), "Persistency", true); in TEST_P()
687 ASSERT_THAT(storedConfiguration.at(key), Eq(value)); in TEST_P()
699 ASSERT_THAT(storedConfiguration.at(key), Eq(value)); in TEST_P()
765 getProperty<std::string>(sut->getPath(), "ReportingType")), in TEST_P()
766 Eq(GetParam().reportingType())); in TEST_P()
773 messanger.send(messages::UpdateReportInd{{sut->getId()}}); in TEST_P()
775 getProperty<Readings>(sut->getPath(), "Readings"); in TEST_P()
777 EXPECT_THAT(Milliseconds{timestamp}, Eq(systemTimestamp + 10ms)); in TEST_P()
784 setProperty(sut->getPath(), "Enabled", false); in TEST_P()
785 messanger.send(messages::UpdateReportInd{{sut->getId()}}); in TEST_P()
787 getProperty<Readings>(sut->getPath(), "Readings"); in TEST_P()
789 EXPECT_THAT(Milliseconds{timestamp}, Eq(0ms)); in TEST_P()
796 messanger.send(messages::UpdateReportInd{{sut->getId() + "x"s}}); in TEST_P()
798 getProperty<Readings>(sut->getPath(), "Readings"); in TEST_P()
800 EXPECT_THAT(Milliseconds{timestamp}, Eq(0ms)); in TEST_P()
816 ASSERT_THAT(update(sut->getPath()), Eq(boost::system::errc::success)); in TEST_F()
819 getProperty<Readings>(sut->getPath(), "Readings"); in TEST_F()
821 EXPECT_THAT(Milliseconds{timestamp}, Eq(systemTimestamp + 10ms)); in TEST_F()
826 ASSERT_THAT(update(sut->getPath()), Eq(boost::system::errc::success)); in TEST_F()
829 getProperty<Readings>(sut->getPath(), "Readings"); in TEST_F()
855 ASSERT_THAT(update(sut->getPath()), Eq(boost::system::errc::success)); in TEST_P()
857 EXPECT_THAT(getProperty<Readings>(sut->getPath(), "Readings"), in TEST_P()
858 Eq(Readings{})); in TEST_P()
881 EXPECT_THAT(getProperty<Readings>(sut->getPath(), "Readings"), in TEST_P()
882 Eq(Readings{})); in TEST_P()
902 getProperty<Readings>(sut->getPath(), "Readings"); in TEST_F()
904 EXPECT_THAT(Milliseconds{timestamp}, Eq(systemTimestamp + 10ms)); in TEST_F()
912 getProperty<Readings>(sut->getPath(), "Readings"); in TEST_F()
944 callMethod(sut->getPath(), "SetReportingProperties", in changeReport()
951 readings] = getProperty<Readings>(sut->getPath(), "Readings"); in readings()
959 messanger.send(messages::UpdateReportInd{{sut->getId()}}); in updateReportFourTimes()
1067 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), in TEST_P()
1068 Eq(GetParam().expectedEnabled)); in TEST_P()
1083 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), in TEST_P()
1084 Eq(GetParam().expectedEnabled)); in TEST_P()
1098 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), Eq(true)); in TEST_P()
1135 sut->getPath(), Report::reportIfaceName), in makeMonitor()
1161 EXPECT_THAT(reportPtr, Eq(sut.get())); in TEST_F()
1246 getProperty<std::vector<object_path>>(sut->getPath(), "Triggers"), in TEST_F()
1261 Eq(storedConfiguration.end())); in TEST_F()
1272 Eq(storedConfiguration.end())); in TEST_F()
1287 Eq(utils::toLabeledReadings(readings))); in TEST_F()