[Greater-commits] r261 - trunk/GREAT-ER-DB/impl/postgresql/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jun 24 10:26:38 CEST 2011
Author: aheinecke
Date: 2011-06-24 10:26:37 +0200 (Fri, 24 Jun 2011)
New Revision: 261
Modified:
trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py
Log:
Create a role for the testusers
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py 2011-06-24 08:26:08 UTC (rev 260)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py 2011-06-24 08:26:37 UTC (rev 261)
@@ -167,6 +167,7 @@
self.wait_for_postmaster()
self.alter_user(self.admin_name, self.admin_password)
+ self.create_role("anon_group")
self.create_user(self.user_name, "123")
self.create_user(self.another_user_name, self.another_user_password)
@@ -325,6 +326,10 @@
os.path.join(self.dbdir, "pg_ctl-reload.log"))
+ def create_role(self, rolename):
+ """Create role rolename"""
+ self.execute_sql("template1", "admin", "CREATE ROLE %s" % rolename)
+
def create_user(self, username, password):
"""Create user username with password in the database"""
self.execute_sql("template1", "admin",
More information about the Greater-commits
mailing list