Skip to content

Commit 3cfb8e2

Browse files
committed
- fix auth_test
- add -W options to case: test_right_password_and_wrong_pgpass
1 parent d461615 commit 3cfb8e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/auth_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ def test_right_password(self):
123123
self.fail(e.value)
124124

125125
def test_right_password_and_wrong_pgpass(self):
126-
""" Test case: PGPB_AUTH05 - correct password and incorrect .pgpass"""
126+
""" Test case: PGPB_AUTH05 - correct password and incorrect .pgpass (-W)"""
127127
line = ":".join(['127.0.0.1', str(self.node.port), 'postgres', 'backup', 'wrong_password'])
128128
create_pgpass(self.pgpass_file, line)
129129
try:
130130
self.assertIn("completed",
131-
str(run_pb_with_auth([self.pb.probackup_path] + self.cmd, 'password\r\n'))
131+
str(run_pb_with_auth([self.pb.probackup_path] + self.cmd + ['-W'], 'password\r\n'))
132132
)
133133
except (TIMEOUT, ExceptionPexpect) as e:
134134
self.fail(e.value)

0 commit comments

Comments
 (0)