* Read db connection settings from the db_settings.ini file.
* Ensure audit loggin feature won't cause failures.
---
 backend/server/test/unit-test/rhnSQL/test_1.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/backend/server/test/unit-test/rhnSQL/test_1.py 
b/backend/server/test/unit-test/rhnSQL/test_1.py
index c00e697..75b5b5a 100644
--- a/backend/server/test/unit-test/rhnSQL/test_1.py
+++ b/backend/server/test/unit-test/rhnSQL/test_1.py
@@ -11,14 +11,22 @@ import time
 import types
 from spacewalk.server import rhnSQL
 
-DB = 'rhnuser/rhnuser@webdev'
+import misc_functions
+
+DB_SETTINGS = misc_functions.db_settings("oracle")
 
 class Tests1(unittest.TestCase):
 
     def setUp(self):
         self.table_name = "misatest_%d" % os.getpid()
-        rhnSQL.initDB(DB)
+        rhnSQL.initDB(
+            backend  = "oracle",
+            username = DB_SETTINGS["user"],
+            password = DB_SETTINGS["password"],
+            database = DB_SETTINGS["database"]
+        )
         self._cleanup()
+        rhnSQL.clear_log_id()
 
         rhnSQL.execute("create table %s (id int, val varchar2(10))" %
             self.table_name)
-- 
1.8.4

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to