[Greater-commits] r256 - trunk/GREAT-ER-DB/impl/postgresql/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jun 23 17:18:36 CEST 2011
Author: aheinecke
Date: 2011-06-23 17:18:35 +0200 (Thu, 23 Jun 2011)
New Revision: 256
Modified:
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_a_res.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_b_subst.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_c_catch.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_d_connect.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_e_para_tree_def.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_f_stretch.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_g_disch.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_h_market.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_i_env.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_j_sess.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_k_mod.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_l_user.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_m_group.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_n_message.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_q_temp_sess.py
Log:
Fix tests so that they use a password for login
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_a_res.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_a_res.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_a_res.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -52,8 +52,9 @@
def setUp(self):
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
- self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
+ print self.connection_target
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_insert_res(self):
res_record = DA_S_res({'res_id':0,'river_factor':'1000','river_unit':'g/l','stp_factor':'1','stp_unit':'mg/l','pec_initial':'for the result CsimMean [ug/L] the PECinitial value computes to : 124,56 [ug/L]','pec_catch':'For the result CsimMean [ug/L] the PECcatchment value computes to: 40,2 [ug/L]','remark':'These results very send to Mr. Smith for analysis'})
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_b_subst.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_b_subst.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_b_subst.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -49,7 +49,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_insert_subst_subst_det(self):
subst_record = DA_S_subst({'subst_id':0,'name':'subst30924','user_id':'anonym','cre_date':'30-11-2003','mod_date':'29-11-2003','status':'ready','privs':6, 'is_templ':'Y','remark':'remark_string here!'})
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_c_catch.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_c_catch.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_c_catch.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -51,7 +51,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_insert_catch(self):
catch_record = DA_S_catch({'catch_id':0,'user_id':"anonym",'cre_date':'30-11-2003','mod_date':'29-11-2003','status':'ready','privs':6, 'name':'CATCH_1823776', 'remark':'remark_string here!'})
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_d_connect.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_d_connect.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_d_connect.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -41,11 +41,11 @@
def setUp(self):
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
- self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
+ self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
def test_db_user(self):
try:
- self.res = da_db_connect("anonym", "", self.connection_target)
+ self.res = da_db_connect("anonym", "123", self.connection_target)
da_db_disconnect()
self.assertEquals(self.res,None)
except RuntimeError:
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_e_para_tree_def.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_e_para_tree_def.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_e_para_tree_def.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -40,7 +40,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_get_para_tree(self):
self.res = da_get_para_tree('SUBST', 'ENVIRONMENTAL', 'Ws')
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_f_stretch.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_f_stretch.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_f_stretch.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -47,7 +47,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
# def test_0_insert_stretch(self):
# self.stretch = DA_S_catch({'stretch_id':20,'catch_id':100,'stretch_class_id':1,'type':'3','Q_VAL':'0.137832;0.32718','Q_DIST':'4','V_VAL':'0.21387;0.261','V_DIST':'2','L':'2179','D_VAL':'unknown','D_DIST':'0'})
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_g_disch.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_g_disch.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_g_disch.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -44,7 +44,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_get_disch_disch_class(self):
self.res = da_get_disch(101,1,1)
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_h_market.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_h_market.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_h_market.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -41,7 +41,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_insert_market(self):
market_record = DA_S_market({'market_id':0,'disch_id':1,'catch_id':101,'name':'market875','user_id':'anonym','cre_date':'30-11-2003','mod_date':'29-11-2003','status':'ready','privs':6, 'consumption':'1','flux_nondom':'1,2','flux_runoff':'0','remark':'remark_string here!'})
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_i_env.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_i_env.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_i_env.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -48,7 +48,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_insert_env_env_det(self):
env_record = DA_S_env({'env_id':0,'name':'env30924','user_id':'anonym','cre_date':'30-11-2003','mod_date':'29-11-2003','status':'ready','privs':6, 'is_templ':'Y','remark':'remark_string here!'})
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_j_sess.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_j_sess.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_j_sess.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -49,7 +49,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_insert_sess_sess_disch(self):
sess_record = DA_S_sess({'sess_id':0,'catch_id':101,'subst_id':101,'env_id':101,'market_id':101,'mod_id':101,'res_id':101,'sess_disch_id':101,'name':'sess239847','user_id':'anonym','cre_date':'30-01-2003','mod_date':'29-01-2003','status':'ready','privs':6, 'is_temp_sess':'Y','temp_sess_src_id':212,'temp_sess_db_sid':'','remark':'remark_string here!'})
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_k_mod.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_k_mod.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_k_mod.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -49,7 +49,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_insert_mod(self):
mod_record = DA_S_mod({'mod_id':0,'name':'Model 1','user_id':'anonym','cre_date':'30-11-2003','mod_date':'29-11-2003','status':'VALID','privs':6,'remark':'My first Test!'})
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_l_user.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_l_user.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_l_user.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -43,7 +43,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_insert_user(self):
user_record = DA_S_user({'user_id':'hans_wurst','group_id':101,'cre_date':'30-11-2003','mod_date':'29-11-2003','status':'VALID','remark':'Standard User!'})
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_m_group.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_m_group.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_m_group.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -45,7 +45,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_insert_group(self):
group_record = DA_S_group({'group_id':0,'name':'GUEST','admin':'0','cre_date':'30-11-2003','mod_date':'29-11-2003','status':'ready','remark':'remark_string here!'})
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_n_message.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_n_message.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_n_message.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -40,7 +40,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_get_message(self):
self.res = da_get_all_messages()
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -38,7 +38,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_get_phrase_grp(self):
self.res = da_get_phrase_grp(1,'E')
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_q_temp_sess.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_q_temp_sess.py 2011-06-23 15:16:57 UTC (rev 255)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_q_temp_sess.py 2011-06-23 15:18:35 UTC (rev 256)
@@ -44,7 +44,7 @@
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "", self.connection_target)
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_create_temp_sess(self):
# if you do individual tests, you have to adjust the sess_id's, because there
More information about the Greater-commits
mailing list