Lines Matching full:testing

21 using ::testing::Return;
22 using ::testing::Throw;
29 class TestUserMgr : public testing::Test
50 .WillByDefault(testing::Return(true)); in createLocalUser()
55 .WillByDefault(testing::Return(false)); in createLocalUser()
157 using ::testing::_; in TEST_F()
252 class UserMgrInTest : public testing::Test, public UserMgr
274 ON_CALL(*this, executeUserAdd(testing::_, testing::_, testing::_, in UserMgrInTest()
275 testing::Eq(true))) in UserMgrInTest()
278 .WillByDefault(testing::Return(true)); in UserMgrInTest()
279 testing::Return(); in UserMgrInTest()
282 ON_CALL(*this, executeUserAdd(testing::_, testing::_, testing::_, in UserMgrInTest()
283 testing::Eq(false))) in UserMgrInTest()
286 .WillByDefault(testing::Return(false)); in UserMgrInTest()
287 testing::Return(); in UserMgrInTest()
290 ON_CALL(*this, executeUserDelete).WillByDefault(testing::Return()); in UserMgrInTest()
293 .WillByDefault(testing::Return()); in UserMgrInTest()
295 ON_CALL(*this, getIpmiUsersCount).WillByDefault(testing::Return(0)); in UserMgrInTest()
297 ON_CALL(*this, executeUserRename).WillByDefault(testing::Return()); in UserMgrInTest()
299 ON_CALL(*this, executeUserModify(testing::_, testing::_, testing::_)) in UserMgrInTest()
300 .WillByDefault(testing::Return()); in UserMgrInTest()
303 executeUserModifyUserEnable(testing::_, testing::Eq(true))) in UserMgrInTest()
306 .WillByDefault(testing::Return(true)); in UserMgrInTest()
307 testing::Return(); in UserMgrInTest()
311 executeUserModifyUserEnable(testing::_, testing::Eq(false))) in UserMgrInTest()
314 .WillByDefault(testing::Return(false)); in UserMgrInTest()
315 testing::Return(); in UserMgrInTest()
318 ON_CALL(*this, executeGroupCreation(testing::_)) in UserMgrInTest()
319 .WillByDefault(testing::Return()); in UserMgrInTest()
321 ON_CALL(*this, executeGroupDeletion(testing::_)) in UserMgrInTest()
322 .WillByDefault(testing::Return()); in UserMgrInTest()
324 ON_CALL(*this, executeGroupCreation).WillByDefault(testing::Return()); in UserMgrInTest()
326 ON_CALL(*this, executeGroupDeletion).WillByDefault(testing::Return()); in UserMgrInTest()
606 .WillOnce(testing::Throw( in TEST_F()
618 EXPECT_CALL(*this, executeUserDelete(testing::StrEq(username))) in TEST_F()
619 .WillOnce(testing::Throw( in TEST_F()
621 .WillOnce(testing::DoDefault()); in TEST_F()
635 EXPECT_CALL(*this, executeUserClearFailRecords(testing::StrEq(username))) in TEST_F()
636 .WillOnce(testing::Throw( in TEST_F()
638 .WillOnce(testing::DoDefault()); in TEST_F()
695 testing::UnorderedElementsAre("redfish", "ssh")); in TEST_F()
708 EXPECT_CALL(*this, executeUserRename(testing::StrEq(username), in TEST_F()
709 testing::StrEq(newUsername))) in TEST_F()
710 .WillOnce(testing::Throw( in TEST_F()
720 testing::UnorderedElementsAre("redfish", "ssh")); in TEST_F()
746 testing::UnorderedElementsAre("ipmi", "ssh")); in TEST_F()
757 EXPECT_CALL(*this, executeUserModify(testing::StrEq(username), testing::_, in TEST_F()
758 testing::_)) in TEST_F()
759 .WillOnce(testing::Throw( in TEST_F()
935 EXPECT_CALL(*this, executeUserModifyUserEnable(testing::StrEq(username), in TEST_F()
936 testing::Eq(false))) in TEST_F()
937 .WillOnce(testing::Throw( in TEST_F()
967 EXPECT_CALL(*this, getFailedAttempt(testing::StrEq(username.c_str()))) in TEST_F()
968 .WillOnce(testing::Return(output)); in TEST_F()
977 EXPECT_CALL(*this, getFailedAttempt(testing::StrEq(username.c_str()))) in TEST_F()
978 .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()
1012 EXPECT_CALL(*this, getFailedAttempt(testing::StrEq(username.c_str()))) in TEST_F()
1013 .WillOnce(testing::Return(output)); in TEST_F()
1113 EXPECT_THAT(allGroups(), testing::UnorderedElementsAre( in TEST_F()
1153 .WillOnce(testing::Throw( in TEST_F()
1165 EXPECT_CALL(*this, executeGroupDeletion(testing::StrEq(groupName))) in TEST_F()
1166 .WillOnce(testing::Throw( in TEST_F()
1168 .WillOnce(testing::DoDefault()); in TEST_F()
1187 testing::UnorderedElementsAre("redfish", "ipmi", "ssh", "hostconsole")); in TEST()