From: Aki Tuomi Date: Wed, 8 Feb 2023 18:40:41 +0000 (+0200) Subject: auth: test-lua - Check that password is returned in lookup X-Git-Tag: 2.4.0~2993 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=053f6f14c0df01d28eded5a51f876d1f1addc959;p=thirdparty%2Fdovecot%2Fcore.git auth: test-lua - Check that password is returned in lookup --- diff --git a/src/auth/test-lua.c b/src/auth/test-lua.c index e658a3459f..0b49f825e8 100644 --- a/src/auth/test-lua.c +++ b/src/auth/test-lua.c @@ -115,6 +115,7 @@ static void test_db_lua_auth_lookup(void) test_assert(auth_lua_script_init(script, &error) == 0); test_assert(auth_lua_call_passdb_lookup(script, req, &scheme, &pass, &error) == 1); dlua_script_unref(&script); + test_assert_strcmp(pass, "pass"); } if (error != NULL) { i_error("Test failed: %s", error);