Skip to content
Snippets Groups Projects
Commit c83e35b5 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

test: fix test which checks connect with wrong auth method

parent 767df894
No related branches found
No related tags found
1 merge request!847Gmoshkin/connect ldap
......@@ -142,17 +142,17 @@ def test_connect_auth_type_ok(i1: Instance):
cli.expect_exact(pexpect.EOF)
def test_connect_auth_type_different(i1: Instance):
def test_connect_auth_type_wrong(i1: Instance):
cli = pexpect.spawn(
command=i1.binary_path,
args=["connect", f"{i1.host}:{i1.port}", "-u", "testuser", "-a", "chap-sha1"],
args=["connect", f"{i1.host}:{i1.port}", "-u", "testuser", "-a", "ldap"],
encoding="utf-8",
timeout=1,
)
cli.logfile = sys.stdout
cli.expect_exact("Enter password for testuser: ")
cli.sendline("")
cli.sendline("testpass")
cli.expect_exact("service responded with error")
cli.expect_exact("User not found or supplied credentials are invalid")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment