Lines Matching refs:sut
65 std::unique_ptr<Report> sut; member in TestReport
124 sut = makeReport(defaultParams()); in SetUp()
226 EXPECT_THAT(sut->getId(), Eq(defaultParams().reportId())); in TEST_F()
231 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), in TEST_F()
233 EXPECT_THAT(getProperty<uint64_t>(sut->getPath(), "Interval"), in TEST_F()
235 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistency"), Eq(true)); in TEST_F()
237 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
241 EXPECT_THAT(getProperty<bool>(sut->getPath(), "EmitsReadingsUpdate"), in TEST_F()
244 EXPECT_THAT(getProperty<uint64_t>(sut->getPath(), "AppendLimit"), in TEST_F()
246 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "ReportingType"), in TEST_F()
248 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "ReportUpdates"), in TEST_F()
251 getProperty<bool>(sut->getPath(), "LogToMetricReportsCollection"), in TEST_F()
255 getProperty<ReadingParameters>(sut->getPath(), "ReadingParameters"), in TEST_F()
257 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "Name"), in TEST_F()
260 getProperty<std::vector<object_path>>(sut->getPath(), "Triggers"), in TEST_F()
266 EXPECT_THAT(getProperty<Readings>(sut->getPath(), "Readings"), in TEST_F()
285 setProperty(sut->getPath(), "ReadingParameters", newParams).value(), in TEST_F()
288 getProperty<ReadingParameters>(sut->getPath(), "ReadingParameters"), in TEST_F()
313 setProperty(sut->getPath(), "ReadingParameters", newParams).value(), in TEST_F()
327 setProperty(sut->getPath(), "ReportActions", newActions).value(), in TEST_F()
330 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
350 setProperty(sut->getPath(), "ReportActions", newActions).value(), in TEST_F()
353 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
368 setProperty(sut->getPath(), "ReportActions", newActions).value(), in TEST_F()
371 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
379 setProperty(sut->getPath(), "ReportActions", invalidActions).value(), in TEST_F()
382 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
393 sut = makeReport(ReportParams().reportId("TestId_1").reportActions({})); in TEST_F()
395 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
408 sut = makeReport( in TEST_F()
415 getProperty<std::vector<std::string>>(sut->getPath(), "ReportActions"), in TEST_F()
422 EXPECT_THAT(setProperty(sut->getPath(), "Enabled", newValue).value(), in TEST_F()
424 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), Eq(newValue)); in TEST_F()
430 EXPECT_THAT(callMethod(sut->getPath(), "SetReportingProperties", in TEST_F()
434 EXPECT_THAT(getProperty<uint64_t>(sut->getPath(), "Interval"), in TEST_F()
443 callMethod(sut->getPath(), "SetReportingProperties", "", newValue), in TEST_F()
446 EXPECT_THAT(getProperty<uint64_t>(sut->getPath(), "Interval"), in TEST_F()
474 EXPECT_THAT(callMethod(sut->getPath(), "SetReportingProperties", "XYZ", in TEST_F()
489 EXPECT_THAT(callMethod(sut->getPath(), "SetReportingProperties", in TEST_F()
501 setProperty(sut->getPath(), "EmitsReadingsUpdate", true).value(), in TEST_F()
503 EXPECT_THAT(getProperty<bool>(sut->getPath(), "EmitsReadingsUpdate"), in TEST_F()
511 setProperty(sut->getPath(), "LogToMetricReportsCollection", true) in TEST_F()
515 getProperty<bool>(sut->getPath(), "LogToMetricReportsCollection"), in TEST_F()
523 EXPECT_CALL(storageMock, remove(to_file_path(sut->getId()))) in TEST_F()
527 EXPECT_THAT(setProperty(sut->getPath(), "Persistency", persistency).value(), in TEST_F()
529 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistency"), in TEST_F()
535 EXPECT_CALL(*reportManagerMock, removeReport(sut.get())); in TEST_F()
536 auto ec = deleteReport(sut->getPath()); in TEST_F()
550 EXPECT_CALL(storageMock, remove(to_file_path(sut->getId()))) in TEST_F()
553 auto ec = deleteReport(sut->getPath()); in TEST_F()
573 getProperty<std::vector<object_path>>(sut->getPath(), "Triggers"), in TEST_F()
597 getProperty<std::vector<object_path>>(sut->getPath(), "Triggers"), in TEST_F()
620 getProperty<std::vector<object_path>>(sut->getPath(), "Triggers"), in TEST_F()
674 sut = makeReport(defaultParams()); in TEST_P()
678 EXPECT_CALL(storageMock, remove(to_file_path(sut->getId()))); in TEST_P()
680 EXPECT_CALL(storageMock, store(to_file_path(sut->getId()), _)); in TEST_P()
683 setProperty(sut->getPath(), "Persistency", false); in TEST_P()
685 setProperty(sut->getPath(), "Persistency", true); in TEST_P()
697 sut = makeReport(defaultParams()); in TEST_P()
752 sut = makeReport(GetParam()); in SetUp()
767 getProperty<std::string>(sut->getPath(), "ReportingType")), in TEST_P()
775 messanger.send(messages::UpdateReportInd{{sut->getId()}}); in TEST_P()
776 const auto [timestamp, readings] = getProperty<Readings>(sut->getPath(), in TEST_P()
786 setProperty(sut->getPath(), "Enabled", false); in TEST_P()
787 messanger.send(messages::UpdateReportInd{{sut->getId()}}); in TEST_P()
788 const auto [timestamp, readings] = getProperty<Readings>(sut->getPath(), in TEST_P()
798 messanger.send(messages::UpdateReportInd{{sut->getId() + "x"s}}); in TEST_P()
799 const auto [timestamp, readings] = getProperty<Readings>(sut->getPath(), in TEST_P()
809 sut = in SetUp()
818 ASSERT_THAT(update(sut->getPath()), Eq(boost::system::errc::success)); in TEST_F()
820 const auto [timestamp, readings] = getProperty<Readings>(sut->getPath(), in TEST_F()
828 ASSERT_THAT(update(sut->getPath()), Eq(boost::system::errc::success)); in TEST_F()
830 const auto [timestamp, readings] = getProperty<Readings>(sut->getPath(), in TEST_F()
843 sut = makeReport(GetParam()); in SetUp()
857 ASSERT_THAT(update(sut->getPath()), Eq(boost::system::errc::success)); in TEST_P()
859 EXPECT_THAT(getProperty<Readings>(sut->getPath(), "Readings"), in TEST_P()
870 sut = makeReport(GetParam()); in SetUp()
883 EXPECT_THAT(getProperty<Readings>(sut->getPath(), "Readings"), in TEST_P()
891 sut = makeReport(defaultParams() in SetUp()
903 const auto [timestamp, readings] = getProperty<Readings>(sut->getPath(), in TEST_F()
913 const auto [timestamp, readings] = getProperty<Readings>(sut->getPath(), in TEST_F()
946 callMethod(sut->getPath(), "SetReportingProperties", in changeReport()
952 auto [timestamp, readings] = getProperty<Readings>(sut->getPath(), in readings()
961 messanger.send(messages::UpdateReportInd{{sut->getId()}}); in updateReportFourTimes()
1062 sut = makeReport(ReportParams(GetParam().reportParams) in TEST_P()
1069 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), in TEST_P()
1076 sut = makeReport(ReportParams(GetParam().reportParams) in TEST_P()
1085 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), in TEST_P()
1092 sut = makeReport(ReportParams(GetParam().reportParams) in TEST_P()
1100 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Enabled"), Eq(true)); in TEST_P()
1137 sut->getPath(), Report::reportIfaceName), in makeMonitor()
1158 sut = makeReport(defaultParams().reportingType(ReportingType::onChange)); in TEST_F()
1163 EXPECT_THAT(reportPtr, Eq(sut.get())); in TEST_F()
1170 sut = makeReport(defaultParams().reportingType(ReportingType::onChange)); in TEST_F()
1176 static_cast<interfaces::MetricListener&>(*sut.get())))); in TEST_F()
1179 sut = nullptr; in TEST_F()
1189 sut = makeReport(defaultParams().enabled(true)); in TEST_F()
1199 sut = makeReport(defaultParams().enabled(false)); in TEST_F()
1210 sut = makeReport(defaultParams() in TEST_F()
1227 sut = makeReport(defaultParams() in TEST_F()
1245 sut = makeReport(ReportParams()); in TEST_F()
1248 getProperty<std::vector<object_path>>(sut->getPath(), "Triggers"), in TEST_F()
1256 sut = makeReport(ReportParams() in TEST_F()
1268 sut = makeReport(ReportParams() in TEST_F()
1282 sut = makeReport(ReportParams() in TEST_F()
1310 sut = makeReport(params); in TEST_F()
1325 sut = makeReport(params); in TEST_F()