summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Bcfg2/Server/Hostbase/test/harness.py11
-rw-r--r--src/lib/Bcfg2/Server/Hostbase/test/test_environ_settings.py35
-rw-r--r--src/lib/Bcfg2/Server/Hostbase/test/test_ldapauth.py10
-rw-r--r--src/lib/Bcfg2/Server/Hostbase/test/test_settings.py12
4 files changed, 0 insertions, 68 deletions
diff --git a/src/lib/Bcfg2/Server/Hostbase/test/harness.py b/src/lib/Bcfg2/Server/Hostbase/test/harness.py
deleted file mode 100644
index befcff5c0..000000000
--- a/src/lib/Bcfg2/Server/Hostbase/test/harness.py
+++ /dev/null
@@ -1,11 +0,0 @@
-import os, sys
-
-here = os.path.realpath('harness')
-
-server_hostbase = os.path.realpath(here + '../../../../')
-
-sys.path.insert(0,server_hostbase)
-sys.path.insert(0,server_hostbase + '../')
-#commented this out, but might be needed for now until the harness is figured out
-#if so, use your actual path to the Hostbase module
-#sys.path.insert(0,'/home/dahl/Code/bcfg2/src/lib/Server/Hostbase')
diff --git a/src/lib/Bcfg2/Server/Hostbase/test/test_environ_settings.py b/src/lib/Bcfg2/Server/Hostbase/test/test_environ_settings.py
deleted file mode 100644
index ad35c624e..000000000
--- a/src/lib/Bcfg2/Server/Hostbase/test/test_environ_settings.py
+++ /dev/null
@@ -1,35 +0,0 @@
-import sys
-import os
-
-
-def env_setup():
- os.environ['bcfg_db_engine'] = 'foo'
- os.environ['bcfg_db_name'] = 'bar'
- os.environ['bcfg_db_user'] = 'baz'
- os.environ['bcfg_db_password'] = 'pass'
- os.environ['bcfg_db_host'] = 'biff'
- os.environ['bcfg_db_port'] = '3306'
- os.environ['bcfg_time_zone'] = 'CHI'
-
-def teardown():
- pass
-
-def test_environ_settings():
-
- os.environ['bcfg_db_engine'] = 'foo'
- os.environ['bcfg_db_name'] = 'bar'
- os.environ['bcfg_db_user'] = 'baz'
- os.environ['bcfg_db_password'] = 'pass'
- os.environ['bcfg_db_host'] = 'biff'
- os.environ['bcfg_db_port'] = '3306'
- os.environ['bcfg_time_zone'] = 'CHI'
- import Hostbase.settings
- s = Hostbase.settings
- s.CFG_TYPE = 'environ'
- assert s.DATABASE_ENGINE == 'mysql'
- assert s.DATABASE_PASSWORD == 'pass'
- assert s.DATABASE_NAME == 'bar'
- assert s.DATABASE_USER == 'baz'
- assert s.DATABASE_HOST == 'biff'
- assert s.DATABASE_PORT == '3306'
- assert s.TIME_ZONE == 'CHI'
diff --git a/src/lib/Bcfg2/Server/Hostbase/test/test_ldapauth.py b/src/lib/Bcfg2/Server/Hostbase/test/test_ldapauth.py
deleted file mode 100644
index 7fc009ad2..000000000
--- a/src/lib/Bcfg2/Server/Hostbase/test/test_ldapauth.py
+++ /dev/null
@@ -1,10 +0,0 @@
-import os,sys
-import harness
-
-from Hostbase.ldapauth import *
-
-def test_it():
- l = ldapauth(os.environ['LDAP_SVC_ACCT_NAME'],
- os.environ['LDAP_SVC_ACCT_PASS'])
-
- assert l.department == 'foo'
diff --git a/src/lib/Bcfg2/Server/Hostbase/test/test_settings.py b/src/lib/Bcfg2/Server/Hostbase/test/test_settings.py
deleted file mode 100644
index 0dfc30f38..000000000
--- a/src/lib/Bcfg2/Server/Hostbase/test/test_settings.py
+++ /dev/null
@@ -1,12 +0,0 @@
-import sys
-import os
-import Hostbase.settings
-
-def setup():
- pass
-
-def teardown():
- pass
-
-def test_mcs_settings():
- pass