Lines Matching full:testing

23 using ::testing::Return;
24 using ::testing::Throw;
31 class TestUserMgr : public testing::Test
52 .WillByDefault(testing::Return(true)); in createLocalUser()
57 .WillByDefault(testing::Return(false)); in createLocalUser()
159 using ::testing::_; in TEST_F()
254 class UserMgrInTest : public testing::Test, public UserMgr
300 ON_CALL(*this, executeUserAdd(testing::_, testing::_, testing::_, in UserMgrInTest()
301 testing::Eq(true))) in UserMgrInTest()
304 .WillByDefault(testing::Return(true)); in UserMgrInTest()
305 testing::Return(); in UserMgrInTest()
308 ON_CALL(*this, executeUserAdd(testing::_, testing::_, testing::_, in UserMgrInTest()
309 testing::Eq(false))) in UserMgrInTest()
312 .WillByDefault(testing::Return(false)); in UserMgrInTest()
313 testing::Return(); in UserMgrInTest()
316 ON_CALL(*this, executeUserDelete).WillByDefault(testing::Return()); in UserMgrInTest()
319 .WillByDefault(testing::Return()); in UserMgrInTest()
321 ON_CALL(*this, getIpmiUsersCount).WillByDefault(testing::Return(0)); in UserMgrInTest()
323 ON_CALL(*this, executeUserRename).WillByDefault(testing::Return()); in UserMgrInTest()
325 ON_CALL(*this, executeUserModify(testing::_, testing::_, testing::_)) in UserMgrInTest()
326 .WillByDefault(testing::Return()); in UserMgrInTest()
329 executeUserModifyUserEnable(testing::_, testing::Eq(true))) in UserMgrInTest()
332 .WillByDefault(testing::Return(true)); in UserMgrInTest()
333 testing::Return(); in UserMgrInTest()
337 executeUserModifyUserEnable(testing::_, testing::Eq(false))) in UserMgrInTest()
340 .WillByDefault(testing::Return(false)); in UserMgrInTest()
341 testing::Return(); in UserMgrInTest()
344 ON_CALL(*this, executeGroupCreation(testing::_)) in UserMgrInTest()
345 .WillByDefault(testing::Return()); in UserMgrInTest()
347 ON_CALL(*this, executeGroupDeletion(testing::_)) in UserMgrInTest()
348 .WillByDefault(testing::Return()); in UserMgrInTest()
350 ON_CALL(*this, executeGroupCreation).WillByDefault(testing::Return()); in UserMgrInTest()
352 ON_CALL(*this, executeGroupDeletion).WillByDefault(testing::Return()); in UserMgrInTest()
634 .WillOnce(testing::Throw( in TEST_F()
646 EXPECT_CALL(*this, executeUserDelete(testing::StrEq(username))) in TEST_F()
647 .WillOnce(testing::Throw( in TEST_F()
649 .WillOnce(testing::DoDefault()); in TEST_F()
663 EXPECT_CALL(*this, executeUserClearFailRecords(testing::StrEq(username))) in TEST_F()
664 .WillOnce(testing::Throw( in TEST_F()
666 .WillOnce(testing::DoDefault()); in TEST_F()
723 testing::UnorderedElementsAre("redfish", "ssh")); in TEST_F()
736 EXPECT_CALL(*this, executeUserRename(testing::StrEq(username), in TEST_F()
737 testing::StrEq(newUsername))) in TEST_F()
738 .WillOnce(testing::Throw( in TEST_F()
748 testing::UnorderedElementsAre("redfish", "ssh")); in TEST_F()
774 testing::UnorderedElementsAre("ipmi", "ssh")); in TEST_F()
785 EXPECT_CALL(*this, executeUserModify(testing::StrEq(username), testing::_, in TEST_F()
786 testing::_)) in TEST_F()
787 .WillOnce(testing::Throw( in TEST_F()
963 EXPECT_CALL(*this, executeUserModifyUserEnable(testing::StrEq(username), in TEST_F()
964 testing::Eq(false))) in TEST_F()
965 .WillOnce(testing::Throw( in TEST_F()
995 EXPECT_CALL(*this, getFailedAttempt(testing::StrEq(username.c_str()))) in TEST_F()
996 .WillOnce(testing::Return(output)); in TEST_F()
1005 EXPECT_CALL(*this, getFailedAttempt(testing::StrEq(username.c_str()))) in TEST_F()
1006 .WillOnce(testing::Throw( in TEST_F()
1023 EXPECT_CALL(*this, getFailedAttempt(testing::StrEq(username.c_str()))) in TEST_F()
1024 .WillOnce(testing::Return(output)); in TEST_F()
1040 EXPECT_CALL(*this, getFailedAttempt(testing::StrEq(username.c_str()))) in TEST_F()
1041 .WillOnce(testing::Return(output)); in TEST_F()
1141 EXPECT_THAT(allGroups(), testing::UnorderedElementsAre( in TEST_F()
1181 .WillOnce(testing::Throw( in TEST_F()
1193 EXPECT_CALL(*this, executeGroupDeletion(testing::StrEq(groupName))) in TEST_F()
1194 .WillOnce(testing::Throw( in TEST_F()
1196 .WillOnce(testing::DoDefault()); in TEST_F()
1215 testing::UnorderedElementsAre("redfish", "ipmi", "ssh", "hostconsole")); in TEST()