Skip to content

Commit

Permalink
ssh: adding expect reponse to connection closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Lavu committed Aug 23, 2023
1 parent 25aa578 commit 0605095
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sssd_test_framework/utils/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ def password(self, username: str, password: str) -> bool:
expect {{
-re $prompt {{puts "expect result: Password authentication successful"; exit 0}}
"{username}@localhost: Permission denied" {{puts "expect result: Authentication failure"; exit 1}}
"Connection closed by UNKNOWN port 65535" {{puts "expect result: Connection closed"; exit 2}}
timeout {{puts "expect result: Unexpected output"; exit 201}}
eof {{puts "expect result: Unexpected end of file"; exit 202}}
}}
Expand Down

0 comments on commit 0605095

Please sign in to comment.