[Greater-commits] r255 - trunk/GREAT-ER-DB/impl/postgresql/test

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jun 23 17:16:58 CEST 2011


Author: aheinecke
Date: 2011-06-23 17:16:57 +0200 (Thu, 23 Jun 2011)
New Revision: 255

Modified:
   trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py
Log:
Create user anonym with password to avoid passwordless login issues


Modified: trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py	2011-06-23 15:15:08 UTC (rev 254)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py	2011-06-23 15:16:57 UTC (rev 255)
@@ -52,6 +52,7 @@
     If outfilename is None stdout and stderr are still captured but they
     are ignored and not written to any file.
     """
+#    print "Executing: \n%s" % " ".join(command)
     proc = Popen(command, shell=True, env=os.environ,
                  stdin=PIPE, stdout=PIPE, stderr=PIPE)
     output = proc.communicate()
@@ -166,7 +167,7 @@
         self.wait_for_postmaster()
 
         self.alter_user(self.admin_name, self.admin_password)
-        self.create_user(self.user_name, self.user_password)
+        self.create_user(self.user_name, "123")
         self.create_user(self.another_user_name, self.another_user_password)
 
     def wait_for_postmaster(self):
@@ -459,8 +460,7 @@
         db.execute_sql_file("PostgreSQL/create_db_objects.sql", "create_db_objects.log")
         db.execute_sql_file("PostgreSQL/create_system.sql", "create_system.log")
         db.execute_sql_file("PostgreSQL/update_objects.sql", "update_objects.log")
-	db.execute_sql_file("PostgreSQL/inserts.sql", "insert_data.log")
- 	
+        db.execute_sql_file("PostgreSQL/inserts.sql", "insert_data.log")
 
     return _postgres_server
 



More information about the Greater-commits mailing list