From c83e35b50b0e1d1b430718d00c1099c25f4a9bd8 Mon Sep 17 00:00:00 2001 From: Georgy Moshkin <gmoshkin@picodata.io> Date: Mon, 29 Jan 2024 13:38:31 +0300 Subject: [PATCH] test: fix test which checks connect with wrong auth method --- test/int/test_cli_connect.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/int/test_cli_connect.py b/test/int/test_cli_connect.py index b530adb8c3..779fe6d3df 100644 --- a/test/int/test_cli_connect.py +++ b/test/int/test_cli_connect.py @@ -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") -- GitLab