Lines Matching +full:- +full:eq
124 Eq(boost::system::errc::success);
125 Matcher<T> valueAfter = Eq(newValue);
141 DbusEnvironment::getBus()->async_method_call( in deleteTrigger()
152 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "Name"), in TEST_F()
153 Eq(triggerParams.name())); in TEST_F()
154 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistent"), Eq(true)); in TEST_F()
156 getProperty<std::vector<std::string>>(sut->getPath(), "TriggerActions"), in TEST_F()
157 Eq(utils::transform( in TEST_F()
160 EXPECT_THAT((getProperty<SensorsInfo>(sut->getPath(), "Sensors")), in TEST_F()
161 Eq(utils::fromLabeledSensorsInfo(triggerParams.sensors()))); in TEST_F()
163 getProperty<std::vector<object_path>>(sut->getPath(), "Reports"), in TEST_F()
164 Eq(triggerParams.reports())); in TEST_F()
166 getProperty<bool>(sut->getPath(), "Discrete"), in TEST_F()
167 Eq(isTriggerThresholdDiscrete(triggerParams.thresholdParams()))); in TEST_F()
170 sut->getPath(), "NumericThresholds"), in TEST_F()
171 Eq(std::get<0>(utils::FromLabeledThresholdParamConversion()( in TEST_F()
175 sut->getPath(), "DiscreteThresholds"), in TEST_F()
176 Eq(std::get<1>(utils::FromLabeledThresholdParamConversion()( in TEST_F()
182 EXPECT_THAT(sut->getId(), Eq(triggerParams.id())); in TEST_F()
183 EXPECT_THAT(sut->getPath(), in TEST_F()
184 Eq(utils::constants::triggerDirPath.str + triggerParams.id())); in TEST_F()
190 EXPECT_THAT(setProperty(sut->getPath(), "Name", name), in TEST_F()
191 Eq(boost::system::errc::success)); in TEST_F()
192 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "Name"), Eq(name)); in TEST_F()
201 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newNames), in TEST_F()
202 Eq(boost::system::errc::success)); in TEST_F()
204 getProperty<std::vector<object_path>>(sut->getPath(), "Reports"), in TEST_F()
205 Eq(newNames)); in TEST_F()
219 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
220 Eq(boost::system::errc::success)); in TEST_F()
232 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
233 Eq(boost::system::errc::success)); in TEST_F()
246 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
247 Eq(boost::system::errc::invalid_argument)); in TEST_F()
258 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
259 Eq(boost::system::errc::invalid_argument)); in TEST_F()
271 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
272 Eq(boost::system::errc::invalid_argument)); in TEST_F()
284 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
285 Eq(boost::system::errc::invalid_argument)); in TEST_F()
296 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
297 Eq(boost::system::errc::invalid_argument)); in TEST_F()
311 EXPECT_THAT(setProperty(sut->getPath(), "Sensors", newSensors), in TEST_F()
312 Eq(boost::system::errc::success)); in TEST_F()
322 EXPECT_THAT(setProperty(sut->getPath(), "Thresholds", newThresholds), in TEST_F()
323 Eq(boost::system::errc::success)); in TEST_F()
338 sut->getPath(), "Thresholds", in TEST_F()
339 {.valueBefore = Eq(currentValue), in TEST_F()
341 .ec = Eq(boost::system::errc::invalid_argument), in TEST_F()
342 .valueAfter = Eq(currentValue)}); in TEST_F()
350 sut->getPath(), "Name", in TEST_F()
351 {.valueBefore = Eq(currentValue), in TEST_F()
353 .ec = Eq(boost::system::errc::invalid_argument), in TEST_F()
354 .valueAfter = Eq(currentValue)}); in TEST_F()
373 Eq(base.at_label<utils::tstring::Type>())); in TEST_F()
375 Eq(base.at_label<utils::tstring::Direction>())); in TEST_F()
377 Eq(base.at_label<utils::tstring::DwellTime>())); in TEST_F()
379 Eq(base.at_label<utils::tstring::ThresholdValue>())); in TEST_F()
399 Eq(base.at_label<utils::tstring::UserId>())); in TEST_F()
401 Eq(base.at_label<utils::tstring::Severity>())); in TEST_F()
403 Eq(base.at_label<utils::tstring::DwellTime>())); in TEST_F()
405 Eq(base.at_label<utils::tstring::ThresholdValue>())); in TEST_F()
411 EXPECT_CALL(storageMock, remove(to_file_path(sut->getId()))); in TEST_F()
414 auto ec = deleteTrigger(sut->getPath()); in TEST_F()
415 EXPECT_THAT(ec, Eq(boost::system::errc::success)); in TEST_F()
424 auto ec = deleteTrigger(sut->getPath()); in TEST_F()
425 EXPECT_THAT(ec, Eq(boost::system::errc::success)); in TEST_F()
432 EXPECT_THAT(ec.value(), Eq(EBADR)); in TEST_F()
437 EXPECT_CALL(storageMock, remove(to_file_path(sut->getId()))); in TEST_F()
440 EXPECT_THAT(setProperty(sut->getPath(), "Persistent", persistent), in TEST_F()
441 Eq(boost::system::errc::success)); in TEST_F()
442 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistent"), in TEST_F()
443 Eq(persistent)); in TEST_F()
462 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistent"), Eq(false)); in TEST_F()
504 ASSERT_THAT(storedConfiguration.at("Version"), Eq(expectedTriggerVersion)); in TEST_F()
509 ASSERT_THAT(storedConfiguration.at("Id"), Eq(triggerParams.id())); in TEST_F()
514 ASSERT_THAT(storedConfiguration.at("Name"), Eq(triggerParams.name())); in TEST_F()
520 Eq(utils::transform(triggerParams.triggerActions(), in TEST_F()
529 Eq(triggerParams.reportIds())); in TEST_F()
556 ASSERT_THAT(storedConfiguration.at("ThresholdParamsDiscriminator"), Eq(0)); in TEST_F()
577 Eq(1)); in TEST_F()