@@ -139,6 +139,7 @@ def test_ctrl_c_event(self):
139139 self .fail ("Error: CTRL+C event ignored" )
140140
141141 def test_pgpassfile_env (self ):
142+ """ Test case: PGPB_AUTH06 - set environment var PGPASSFILE """
142143 path = os .path .join (self .pb .tmp_path , module_name , 'pgpass.conf' )
143144 line = ":" .join (['127.0.0.1' , str (self .node .port ), 'postgres' , 'backup' , 'password' ])
144145 create_pgpass (path , line )
@@ -153,6 +154,7 @@ def test_pgpassfile_env(self):
153154 self .fail (e )
154155
155156 def test_pgpass (self ):
157+ """ Test case: PGPB_AUTH07 - Create file .pgpass in home dir. """
156158 line = ":" .join (['127.0.0.1' , str (self .node .port ), 'postgres' , 'backup' , 'password' ])
157159 create_pgpass (self .pgpass_file , line )
158160 try :
@@ -165,6 +167,7 @@ def test_pgpass(self):
165167 self .fail (e )
166168
167169 def test_pgpassword (self ):
170+ """ Test case: PGPB_AUTH08 - set environment var PGPASSWORD """
168171 os .environ ["PGPASSWORD" ] = "password"
169172 try :
170173 self .assertEqual (
@@ -176,6 +179,7 @@ def test_pgpassword(self):
176179 self .fail (e )
177180
178181 def test_pgpassword_and_wrong_pgpass (self ):
182+ """ Test case: PGPB_AUTH09 - Check priority between PGPASSWORD and .pgpass file"""
179183 line = ":" .join (['127.0.0.1' , str (self .node .port ), 'postgres' , 'backup' , 'wrong_password' ])
180184 create_pgpass (self .pgpass_file , line )
181185 os .environ ["PGPASSWORD" ] = "password"
0 commit comments