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.3.21~106 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf7d19e729578a2d8820bebae8bfb62b3b913b30;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 b0d154c04d..c794c7310a 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);