Lines Matching refs:managerPtr

246     MockConfigMgr* managerPtr =  in TEST_F()  local
250 EXPECT_CALL(*managerPtr, stopService("nslcd.service")).Times(1); in TEST_F()
251 EXPECT_CALL(*managerPtr, restartService("nslcd.service")).Times(2); in TEST_F()
252 EXPECT_CALL(*managerPtr, restartService("nscd.service")).Times(1); in TEST_F()
253 managerPtr->createConfig( in TEST_F()
257 managerPtr->getADConfigPtr()->enabled(false); in TEST_F()
259 EXPECT_FALSE(managerPtr->getADConfigPtr()->enabled()); in TEST_F()
260 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
264 managerPtr->restore(); in TEST_F()
266 EXPECT_TRUE(managerPtr->getADConfigPtr()->enabled()); in TEST_F()
267 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapServerURI(), in TEST_F()
269 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBindDN(), "cn=Users,dc=com"); in TEST_F()
270 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBaseDN(), "cn=Users,dc=corp"); in TEST_F()
271 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapSearchScope(), in TEST_F()
273 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapType(), in TEST_F()
275 EXPECT_EQ(managerPtr->getADConfigPtr()->userNameAttribute(), "uid"); in TEST_F()
276 EXPECT_EQ(managerPtr->getADConfigPtr()->groupNameAttribute(), "gid"); in TEST_F()
277 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBindDNPassword(), ""); in TEST_F()
278 EXPECT_EQ(managerPtr->configBindPassword(), "MyLdap12"); in TEST_F()
279 delete managerPtr; in TEST_F()
294 MockConfigMgr* managerPtr = in TEST_F() local
299 EXPECT_CALL(*managerPtr, stopService("nslcd.service")).Times(1); in TEST_F()
300 EXPECT_CALL(*managerPtr, restartService("nslcd.service")).Times(3); in TEST_F()
301 EXPECT_CALL(*managerPtr, restartService("nscd.service")).Times(1); in TEST_F()
303 managerPtr->createConfig( in TEST_F()
307 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
310 managerPtr->getADConfigPtr()->ldapServerURI("ldap://9.194.251.139/"); in TEST_F()
311 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapServerURI(), in TEST_F()
317 managerPtr->getADConfigPtr()->ldapServerURI("ldaps://9.194.251.139/"), in TEST_F()
321 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapServerURI(), in TEST_F()
324 managerPtr->restore(); in TEST_F()
326 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapServerURI(), in TEST_F()
328 delete managerPtr; in TEST_F()
343 MockConfigMgr* managerPtr = in TEST_F() local
348 EXPECT_CALL(*managerPtr, stopService("nslcd.service")).Times(1); in TEST_F()
349 EXPECT_CALL(*managerPtr, restartService("nslcd.service")).Times(3); in TEST_F()
350 EXPECT_CALL(*managerPtr, restartService("nscd.service")).Times(1); in TEST_F()
352 managerPtr->createConfig( in TEST_F()
356 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
359 managerPtr->getADConfigPtr()->ldapBindDN( in TEST_F()
361 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBindDN(), in TEST_F()
368 managerPtr->getADConfigPtr()->ldapBindDN(""); in TEST_F()
377 managerPtr->restore(); in TEST_F()
379 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBindDN(), in TEST_F()
381 delete managerPtr; in TEST_F()
396 MockConfigMgr* managerPtr = in TEST_F() local
400 EXPECT_CALL(*managerPtr, stopService("nslcd.service")).Times(1); in TEST_F()
401 EXPECT_CALL(*managerPtr, restartService("nslcd.service")).Times(3); in TEST_F()
402 EXPECT_CALL(*managerPtr, restartService("nscd.service")).Times(1); in TEST_F()
403 managerPtr->createConfig( in TEST_F()
407 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
409 managerPtr->getADConfigPtr()->ldapBaseDN( in TEST_F()
411 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBaseDN(), in TEST_F()
418 managerPtr->getADConfigPtr()->ldapBaseDN(""); in TEST_F()
427 managerPtr->restore(); in TEST_F()
429 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBaseDN(), in TEST_F()
431 delete managerPtr; in TEST_F()
446 MockConfigMgr* managerPtr = in TEST_F() local
450 EXPECT_CALL(*managerPtr, stopService("nslcd.service")).Times(1); in TEST_F()
451 EXPECT_CALL(*managerPtr, restartService("nslcd.service")).Times(3); in TEST_F()
452 EXPECT_CALL(*managerPtr, restartService("nscd.service")).Times(1); in TEST_F()
453 managerPtr->createConfig( in TEST_F()
457 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
460 managerPtr->getADConfigPtr()->ldapSearchScope( in TEST_F()
462 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapSearchScope(), in TEST_F()
465 managerPtr->restore(); in TEST_F()
467 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapSearchScope(), in TEST_F()
469 delete managerPtr; in TEST_F()
484 MockConfigMgr* managerPtr = in TEST_F() local
488 EXPECT_CALL(*managerPtr, stopService("nslcd.service")).Times(1); in TEST_F()
489 EXPECT_CALL(*managerPtr, restartService("nslcd.service")).Times(2); in TEST_F()
490 EXPECT_CALL(*managerPtr, restartService("nscd.service")).Times(1); in TEST_F()
491 managerPtr->createConfig( in TEST_F()
495 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
499 EXPECT_THROW(managerPtr->getADConfigPtr()->ldapType( in TEST_F()
502 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapType(), in TEST_F()
505 managerPtr->restore(); in TEST_F()
507 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapType(), in TEST_F()
509 delete managerPtr; in TEST_F()
524 MockConfigMgr* managerPtr = in TEST_F() local
528 EXPECT_CALL(*managerPtr, stopService("nslcd.service")).Times(1); in TEST_F()
529 EXPECT_CALL(*managerPtr, restartService("nslcd.service")).Times(2); in TEST_F()
530 EXPECT_CALL(*managerPtr, restartService("nscd.service")).Times(1); in TEST_F()
531 managerPtr->createConfig( in TEST_F()
535 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
536 EXPECT_TRUE(managerPtr->secureLDAP()); in TEST_F()
537 managerPtr->restore(); in TEST_F()
539 EXPECT_TRUE(managerPtr->secureLDAP()); in TEST_F()
541 delete managerPtr; in TEST_F()
556 MockConfigMgr* managerPtr = in TEST_F() local
560 EXPECT_CALL(*managerPtr, stopService("nslcd.service")).Times(1); in TEST_F()
561 EXPECT_CALL(*managerPtr, restartService("nslcd.service")).Times(1); in TEST_F()
562 EXPECT_CALL(*managerPtr, restartService("nscd.service")).Times(1); in TEST_F()
563 managerPtr->createConfig( in TEST_F()
567 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
578 delete managerPtr; in TEST_F()
593 MockConfigMgr* managerPtr = in TEST_F() local
597 EXPECT_CALL(*managerPtr, stopService("nslcd.service")).Times(3); in TEST_F()
598 EXPECT_CALL(*managerPtr, restartService("nslcd.service")).Times(2); in TEST_F()
599 EXPECT_CALL(*managerPtr, restartService("nscd.service")).Times(2); in TEST_F()
600 managerPtr->createConfig( in TEST_F()
605 managerPtr->createConfig( in TEST_F()
611 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
613 EXPECT_EQ(managerPtr->getADConfigPtr()->enabled(), true); in TEST_F()
614 EXPECT_EQ(managerPtr->getOpenLdapConfigPtr()->enabled(), false); in TEST_F()
621 managerPtr->getOpenLdapConfigPtr()->enabled(true); in TEST_F()
630 EXPECT_EQ(managerPtr->getADConfigPtr()->enabled(), true); in TEST_F()
631 EXPECT_EQ(managerPtr->getOpenLdapConfigPtr()->enabled(), false); in TEST_F()
633 managerPtr->getADConfigPtr()->enabled(false); in TEST_F()
634 EXPECT_EQ(managerPtr->getADConfigPtr()->enabled(), false); in TEST_F()
635 EXPECT_EQ(managerPtr->getOpenLdapConfigPtr()->enabled(), false); in TEST_F()
637 managerPtr->getOpenLdapConfigPtr()->enabled(true); in TEST_F()
638 EXPECT_EQ(managerPtr->getOpenLdapConfigPtr()->enabled(), true); in TEST_F()
639 EXPECT_EQ(managerPtr->getADConfigPtr()->enabled(), false); in TEST_F()
641 delete managerPtr; in TEST_F()