Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 1 | #include "dbus_environment.hpp" |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 2 | #include "helpers.hpp" |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 3 | #include "mocks/json_storage_mock.hpp" |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 4 | #include "mocks/report_factory_mock.hpp" |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 5 | #include "params/report_params.hpp" |
| 6 | #include "report.hpp" |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 7 | #include "report_manager.hpp" |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 8 | #include "utils/transform.hpp" |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 9 | |
| 10 | using namespace testing; |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 11 | using namespace std::chrono_literals; |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 12 | |
| 13 | class TestReportManager : public Test |
| 14 | { |
| 15 | public: |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 16 | ReportParams reportParams; |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 17 | |
| 18 | std::unique_ptr<ReportFactoryMock> reportFactoryMockPtr = |
| 19 | std::make_unique<StrictMock<ReportFactoryMock>>(); |
| 20 | ReportFactoryMock& reportFactoryMock = *reportFactoryMockPtr; |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 21 | |
| 22 | std::unique_ptr<StorageMock> storageMockPtr = |
| 23 | std::make_unique<NiceMock<StorageMock>>(); |
| 24 | StorageMock& storageMock = *storageMockPtr; |
| 25 | |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 26 | std::unique_ptr<ReportMock> reportMockPtr = |
| 27 | std::make_unique<NiceMock<ReportMock>>(reportParams.reportName()); |
| 28 | ReportMock& reportMock = *reportMockPtr; |
| 29 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 30 | std::unique_ptr<ReportManager> sut; |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 31 | |
| 32 | MockFunction<void(std::string)> checkPoint; |
| 33 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 34 | void SetUp() override |
| 35 | { |
| 36 | sut = std::make_unique<ReportManager>(std::move(reportFactoryMockPtr), |
| 37 | std::move(storageMockPtr), |
| 38 | DbusEnvironment::getObjServer()); |
| 39 | } |
| 40 | |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 41 | void TearDown() override |
| 42 | { |
| 43 | DbusEnvironment::synchronizeIoc(); |
| 44 | } |
| 45 | |
| 46 | std::pair<boost::system::error_code, std::string> |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 47 | addReport(const ReportParams& params) |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 48 | { |
| 49 | std::promise<std::pair<boost::system::error_code, std::string>> |
| 50 | addReportPromise; |
| 51 | DbusEnvironment::getBus()->async_method_call( |
| 52 | [&addReportPromise](boost::system::error_code ec, |
| 53 | const std::string& path) { |
| 54 | addReportPromise.set_value({ec, path}); |
| 55 | }, |
| 56 | DbusEnvironment::serviceName(), ReportManager::reportManagerPath, |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 57 | ReportManager::reportManagerIfaceName, "AddReport", |
| 58 | params.reportName(), params.reportingType(), |
| 59 | params.emitReadingUpdate(), params.logToMetricReportCollection(), |
| 60 | static_cast<uint64_t>(params.interval().count()), |
| 61 | params.readingParameters()); |
Krzysztof Grobelny | f32f6fe | 2020-10-30 13:51:58 +0100 | [diff] [blame] | 62 | return DbusEnvironment::waitForFuture(addReportPromise.get_future()); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | template <class T> |
| 66 | static T getProperty(std::string property) |
| 67 | { |
| 68 | std::promise<T> propertyPromise; |
| 69 | sdbusplus::asio::getProperty<T>( |
| 70 | *DbusEnvironment::getBus(), DbusEnvironment::serviceName(), |
| 71 | ReportManager::reportManagerPath, |
| 72 | ReportManager::reportManagerIfaceName, property, |
| 73 | [&propertyPromise](boost::system::error_code ec) { |
| 74 | EXPECT_THAT(static_cast<bool>(ec), ::testing::Eq(false)); |
| 75 | propertyPromise.set_value(T{}); |
| 76 | }, |
| 77 | [&propertyPromise](T t) { propertyPromise.set_value(t); }); |
Krzysztof Grobelny | f32f6fe | 2020-10-30 13:51:58 +0100 | [diff] [blame] | 78 | return DbusEnvironment::waitForFuture(propertyPromise.get_future()); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 79 | } |
| 80 | }; |
| 81 | |
| 82 | TEST_F(TestReportManager, minInterval) |
| 83 | { |
| 84 | EXPECT_THAT(getProperty<uint64_t>("MinInterval"), |
| 85 | Eq(static_cast<uint64_t>(ReportManager::minInterval.count()))); |
| 86 | } |
| 87 | |
| 88 | TEST_F(TestReportManager, maxReports) |
| 89 | { |
Wludzik, Jozef | 503c158 | 2020-12-11 14:48:01 +0100 | [diff] [blame] | 90 | EXPECT_THAT(getProperty<size_t>("MaxReports"), |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 91 | Eq(ReportManager::maxReports)); |
| 92 | } |
| 93 | |
| 94 | TEST_F(TestReportManager, addReport) |
| 95 | { |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 96 | reportFactoryMock.expectMake(_, reportParams, Ref(*sut), Ref(storageMock)) |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 97 | .WillOnce(Return(ByMove(std::move(reportMockPtr)))); |
| 98 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 99 | auto [ec, path] = addReport(reportParams); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 100 | EXPECT_THAT(ec.value(), Eq(boost::system::errc::success)); |
| 101 | EXPECT_THAT(path, Eq(reportMock.getPath())); |
| 102 | } |
| 103 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 104 | TEST_F(TestReportManager, DISABLED_failToAddReportTwice) |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 105 | { |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 106 | reportFactoryMock.expectMake(_, reportParams, Ref(*sut), Ref(storageMock)) |
| 107 | .WillOnce(Return(ByMove(std::move(reportMockPtr)))); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 108 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 109 | addReport(reportParams); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 110 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 111 | auto [ec, path] = addReport(reportParams); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 112 | EXPECT_THAT(ec.value(), Eq(boost::system::errc::file_exists)); |
| 113 | EXPECT_THAT(path, Eq(std::string())); |
| 114 | } |
| 115 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 116 | TEST_F(TestReportManager, DISABLED_failToAddReportWithInvalidInterval) |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 117 | { |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 118 | reportFactoryMock.expectMake(_, std::nullopt, Ref(*sut), Ref(storageMock)) |
| 119 | .Times(0); |
| 120 | reportFactoryMock.expectMake(std::nullopt, Ref(*sut), Ref(storageMock), _) |
| 121 | .Times(0); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 122 | |
Wludzik, Jozef | bc766b4 | 2020-12-08 16:06:22 +0100 | [diff] [blame] | 123 | reportParams.reportingType("Periodic"); |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 124 | reportParams.interval(reportParams.interval() - 1ms); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 125 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 126 | auto [ec, path] = addReport(reportParams); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 127 | EXPECT_THAT(ec.value(), Eq(boost::system::errc::invalid_argument)); |
| 128 | EXPECT_THAT(path, Eq(std::string())); |
| 129 | } |
| 130 | |
Wludzik, Jozef | bc766b4 | 2020-12-08 16:06:22 +0100 | [diff] [blame] | 131 | TEST_F(TestReportManager, DISABLED_failToAddReportWithInvalidReportingType) |
| 132 | { |
| 133 | reportFactoryMock.expectMake(_, std::nullopt, Ref(*sut), Ref(storageMock)) |
| 134 | .Times(0); |
| 135 | reportFactoryMock.expectMake(std::nullopt, Ref(*sut), Ref(storageMock), _) |
| 136 | .Times(0); |
| 137 | |
| 138 | reportParams.reportingType("Invalid"); |
| 139 | |
| 140 | auto [ec, path] = addReport(reportParams); |
| 141 | EXPECT_THAT(ec.value(), Eq(boost::system::errc::invalid_argument)); |
| 142 | EXPECT_THAT(path, Eq(std::string())); |
| 143 | } |
| 144 | |
| 145 | TEST_F(TestReportManager, DISABLED_failToAddReportWithMoreSensorsThanExpected) |
| 146 | { |
| 147 | reportFactoryMock.expectMake(_, std::nullopt, Ref(*sut), Ref(storageMock)) |
| 148 | .Times(0); |
| 149 | reportFactoryMock.expectMake(std::nullopt, Ref(*sut), Ref(storageMock), _) |
| 150 | .Times(0); |
| 151 | |
| 152 | auto readingParams = reportParams.readingParameters(); |
| 153 | for (size_t i = 0; i < ReportManager::maxReadingParams + 1; i++) |
| 154 | { |
| 155 | readingParams.push_back(readingParams.front()); |
| 156 | } |
| 157 | reportParams.readingParameters(std::move(readingParams)); |
| 158 | |
| 159 | auto [ec, path] = addReport(reportParams); |
| 160 | EXPECT_THAT(ec.value(), Eq(boost::system::errc::argument_list_too_long)); |
| 161 | EXPECT_THAT(path, Eq(std::string())); |
| 162 | } |
| 163 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 164 | TEST_F(TestReportManager, DISABLED_failToAddReportWhenMaxReportIsReached) |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 165 | { |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 166 | reportFactoryMock.expectMake(_, std::nullopt, Ref(*sut), Ref(storageMock)) |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 167 | .Times(ReportManager::maxReports); |
| 168 | |
| 169 | for (size_t i = 0; i < ReportManager::maxReports; i++) |
| 170 | { |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 171 | reportParams.reportName(reportParams.reportName() + std::to_string(i)); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 172 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 173 | auto [ec, path] = addReport(reportParams); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 174 | EXPECT_THAT(ec.value(), Eq(boost::system::errc::success)); |
| 175 | } |
| 176 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 177 | reportParams.reportName(reportParams.reportName() + |
| 178 | std::to_string(ReportManager::maxReports)); |
| 179 | auto [ec, path] = addReport(reportParams); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 180 | EXPECT_THAT(ec.value(), Eq(boost::system::errc::too_many_files_open)); |
| 181 | EXPECT_THAT(path, Eq(std::string())); |
| 182 | } |
| 183 | |
| 184 | TEST_F(TestReportManager, removeReport) |
| 185 | { |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 186 | { |
| 187 | InSequence seq; |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 188 | reportFactoryMock |
| 189 | .expectMake(_, reportParams, Ref(*sut), Ref(storageMock)) |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 190 | .WillOnce(Return(ByMove(std::move(reportMockPtr)))); |
| 191 | EXPECT_CALL(reportMock, Die()); |
| 192 | EXPECT_CALL(checkPoint, Call("end")); |
| 193 | } |
| 194 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 195 | addReport(reportParams); |
| 196 | sut->removeReport(&reportMock); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 197 | checkPoint.Call("end"); |
| 198 | } |
| 199 | |
| 200 | TEST_F(TestReportManager, removingReportThatIsNotInContainerHasNoEffect) |
| 201 | { |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 202 | { |
| 203 | InSequence seq; |
| 204 | EXPECT_CALL(checkPoint, Call("end")); |
| 205 | EXPECT_CALL(reportMock, Die()); |
| 206 | } |
| 207 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 208 | sut->removeReport(&reportMock); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 209 | checkPoint.Call("end"); |
| 210 | } |
| 211 | |
| 212 | TEST_F(TestReportManager, removingSameReportTwiceHasNoSideEffect) |
| 213 | { |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 214 | { |
| 215 | InSequence seq; |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 216 | reportFactoryMock |
| 217 | .expectMake(_, reportParams, Ref(*sut), Ref(storageMock)) |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 218 | .WillOnce(Return(ByMove(std::move(reportMockPtr)))); |
| 219 | EXPECT_CALL(reportMock, Die()); |
| 220 | EXPECT_CALL(checkPoint, Call("end")); |
| 221 | } |
| 222 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 223 | addReport(reportParams); |
| 224 | sut->removeReport(&reportMock); |
| 225 | sut->removeReport(&reportMock); |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 226 | checkPoint.Call("end"); |
| 227 | } |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 228 | |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 229 | TEST_F(TestReportManager, updateReportCallsUpdateReadingsForExistReport) |
| 230 | { |
| 231 | reportFactoryMock.expectMake(_, reportParams, Ref(*sut), Ref(storageMock)) |
| 232 | .WillOnce(Return(ByMove(std::move(reportMockPtr)))); |
| 233 | EXPECT_CALL(reportMock, updateReadings()); |
| 234 | |
| 235 | addReport(reportParams); |
| 236 | sut->updateReport(reportParams.reportName()); |
| 237 | } |
| 238 | |
| 239 | TEST_F(TestReportManager, updateReportDoNothingIfReportDoesNotExist) |
| 240 | { |
| 241 | reportFactoryMock.expectMake(_, reportParams, Ref(*sut), Ref(storageMock)) |
| 242 | .WillOnce(Return(ByMove(std::move(reportMockPtr)))); |
| 243 | EXPECT_CALL(reportMock, updateReadings()).Times(0); |
| 244 | |
| 245 | addReport(reportParams); |
| 246 | sut->updateReport("NotAReport"); |
| 247 | } |
| 248 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 249 | class TestReportManagerStorage : public TestReportManager |
| 250 | { |
| 251 | public: |
| 252 | using FilePath = interfaces::JsonStorage::FilePath; |
| 253 | using DirectoryPath = interfaces::JsonStorage::DirectoryPath; |
| 254 | |
| 255 | void SetUp() override |
| 256 | { |
| 257 | ON_CALL(storageMock, list()) |
| 258 | .WillByDefault(Return(std::vector<FilePath>{FilePath("report1")})); |
| 259 | ON_CALL(storageMock, load(FilePath("report1"))) |
Krzysztof Grobelny | 6ccfcbf | 2020-11-04 09:31:36 +0100 | [diff] [blame] | 260 | .WillByDefault(InvokeWithoutArgs([this] { return data; })); |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 261 | } |
| 262 | |
| 263 | void makeReportManager() |
| 264 | { |
| 265 | sut = std::make_unique<ReportManager>(std::move(reportFactoryMockPtr), |
| 266 | std::move(storageMockPtr), |
| 267 | DbusEnvironment::getObjServer()); |
| 268 | } |
| 269 | |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 270 | static std::vector<LabeledMetricParameters> |
| 271 | convertToLabeled(const ReadingParameters& params) |
| 272 | { |
| 273 | return utils::transform(params, [](const auto& item) { |
| 274 | return LabeledMetricParameters( |
| 275 | utils::transform(std::get<0>(item), |
| 276 | [](const auto& elem) { |
| 277 | return LabeledSensorParameters("service", |
| 278 | elem); |
| 279 | }), |
| 280 | std::get<1>(item), std::get<2>(item), std::get<3>(item)); |
| 281 | }); |
| 282 | } |
| 283 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 284 | nlohmann::json data = nlohmann::json{ |
| 285 | {"Version", Report::reportVersion}, |
| 286 | {"Name", reportParams.reportName()}, |
| 287 | {"ReportingType", reportParams.reportingType()}, |
| 288 | {"EmitsReadingsUpdate", reportParams.emitReadingUpdate()}, |
| 289 | {"LogToMetricReportsCollection", |
| 290 | reportParams.logToMetricReportCollection()}, |
| 291 | {"Interval", reportParams.interval().count()}, |
| 292 | {"ReadingParameters", |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 293 | convertToLabeled(reportParams.readingParameters())}}; |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 294 | }; |
| 295 | |
| 296 | TEST_F(TestReportManagerStorage, reportManagerCtorAddReportFromStorage) |
| 297 | { |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 298 | reportFactoryMock.expectMake( |
| 299 | reportParams, _, Ref(storageMock), |
| 300 | ElementsAreArray(convertToLabeled(reportParams.readingParameters()))); |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 301 | |
| 302 | makeReportManager(); |
| 303 | } |
| 304 | |
| 305 | TEST_F(TestReportManagerStorage, |
| 306 | reportManagerCtorRemoveFileIfVersionDoesNotMatch) |
| 307 | { |
| 308 | data["Version"] = Report::reportVersion - 1; |
| 309 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 310 | EXPECT_CALL(storageMock, remove(FilePath("report1"))); |
| 311 | |
| 312 | makeReportManager(); |
| 313 | } |
| 314 | |
| 315 | TEST_F(TestReportManagerStorage, |
| 316 | reportManagerCtorRemoveFileIfIntervalHasWrongType) |
| 317 | { |
| 318 | data["Interval"] = "1000"; |
| 319 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 320 | EXPECT_CALL(storageMock, remove(FilePath("report1"))); |
| 321 | |
| 322 | makeReportManager(); |
| 323 | } |