diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-03-31 09:12:58 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-03-31 09:34:13 -0400 |
commit | b8fa8a206e380b1aeac1a8ea086f6c38cdb97b5e (patch) | |
tree | 8b7bc76d35902e8288899b1431b705d17e54eecc | |
parent | b620ff89f7ba1f2b03e38625d6f41d4dda98108d (diff) | |
download | sssd-b8fa8a206e380b1aeac1a8ea086f6c38cdb97b5e.tar.gz sssd-b8fa8a206e380b1aeac1a8ea086f6c38cdb97b5e.tar.bz2 sssd-b8fa8a206e380b1aeac1a8ea086f6c38cdb97b5e.zip |
Add regression test for https://fedorahosted.org/sssd/ticket/441
-rwxr-xr-x | src/config/SSSDConfigTest.py | 5 | ||||
-rw-r--r-- | src/config/testconfigs/sssd-valid.conf | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py index 2d637bb9..127ad22c 100755 --- a/src/config/SSSDConfigTest.py +++ b/src/config/SSSDConfigTest.py @@ -1323,7 +1323,12 @@ class SSSDConfigTestSSSDConfig(unittest.TestCase): self.assertTrue(isinstance(domain, SSSDConfig.SSSDDomain)) self.assertTrue(domain.active) + domain = sssdconfig.get_domain('LDAP') + self.assertTrue(isinstance(domain, SSSDConfig.SSSDDomain)) + self.assertFalse(domain.active) + # TODO verify the contents of this domain + self.assertTrue(domain.get_option('ldap_id_use_start_tls')) # Negative Test - No such domain self.assertRaises(SSSDConfig.NoDomainError, sssdconfig.get_domain, 'nosuchdomain') diff --git a/src/config/testconfigs/sssd-valid.conf b/src/config/testconfigs/sssd-valid.conf index 79016eb4..3c2dda80 100644 --- a/src/config/testconfigs/sssd-valid.conf +++ b/src/config/testconfigs/sssd-valid.conf @@ -31,6 +31,7 @@ auth_provider = local debug_level = 0 [domain/LDAP] +ldap_id_use_start_tls = true id_provider = ldap auth_provider=ldap debug_level = 0 |