aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testldap.py
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-03-31 19:39:43 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-03-31 19:39:43 +0000
commit706105a0d834e474a0629ff81b79e6d61db59640 (patch)
treea7b38644c0c46c9a1dab9b086573e73fd61ddc7f /tests/testldap.py
parent12f4bcdeec1a108be40936e4afb26d30119288ee (diff)
downloadsos-706105a0d834e474a0629ff81b79e6d61db59640.tar.gz
remove old unittests
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@906 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'tests/testldap.py')
-rw-r--r--tests/testldap.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/testldap.py b/tests/testldap.py
deleted file mode 100644
index 19511f74..00000000
--- a/tests/testldap.py
+++ /dev/null
@@ -1,41 +0,0 @@
-from sos.sosreport import *
-from commons import *
-from nose.tools import *
-import os, sys, shutil
-
-class GlobalVars:
- pass
-
-class TestLDAP:
- def __init__(self):
- GlobalVars.commons = commons
- GlobalVars.dstroot = None
-
- def setup(self):
- """ prework """
- pass
-
- def teardown(self):
- """ cleanup dstroot and other miscellaneous files """
- if os.path.isdir(GlobalVars.dstroot) and not None:
- shutil.rmtree(GlobalVars.dstroot)
-
- def testPostProc(self):
- """ check scraping of bindpw if exists """
- GlobalVars.commons['testOptions'].append("-oldap")
- GlobalVars.dstroot = sosreport(GlobalVars.commons['testOptions'])
- ldapconf = os.path.join(GlobalVars.dstroot,'etc/ldap.conf')
- if os.path.isfile(ldapconf) and os.path.isfile("/etc/ldap.conf"):
- f = open('/etc/ldap.conf','r').readlines()
- for line in f:
- assert_false('bindpw ***' in line)
-
- def testCapture(self):
- """ check for capture of proper files """
- GlobalVars.commons['testOptions'].append("-oldap")
- GlobalVars.dstroot = sosreport(GlobalVars.commons['testOptions'])
- ldapdir = os.path.join(GlobalVars.dstroot,'etc/openldap')
- if os.path.isdir(ldapdir) and \
- os.path.isfile(os.path.join(GlobalVars.dstroot,'etc/ldap.conf')):
- GlobalVars.commons['testOptions'].pop()
- assert_true