postgres.git / summary / log / commit / refs

commit    dcf112bd4e4cfe1651fafe169dffdaf076bd0b43
Author:   Daniel Gustafsson <dgustafsson@postgresql.org>
Date:     Thu Nov 05 23:49:07 2026 +0000
First released in: 18.7

    Fix oauth validator test on EXEC_BACKEND
    
    Commit 8e54a414570010af included a test for invalidated oauth validator
    with a SKIP stanza for EXEC_BACKEND Windows builds, but failed to handle
    non-Windows EXEC_BACKEND builds.  Since the debug GUC for retrieveing the
    EXEC_BACKEND state is only available since, we add an alternative output
    to capture the failure on EXEC_BACKEND.  Per buildfarm member culicidae.
    
    Author: Daniel Gustafsson <daniel@yesql.se>
    Reported-by: Jacob Champion <jacob.champion@enterprisedb.com>
    Discussion: https://postgr.es/m/C6EE5C79-AC29-4F3D-B0BD-B07E9298051A@yesql.se


src/test/modules/oauth_validator/t/001_server.pl | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/test/modules/oauth_validator/t/001_server.pl b/src/test/modules/oauth_validator/t/001_server.pl index 84aa3535bae..80079690a2a 100644 --- a/src/test/modules/oauth_validator/t/001_server.pl +++ b/src/test/modules/oauth_validator/t/001_server.pl @@ -106,20 +106,14 @@ $log_start = $node->wait_for_log( $bgconn->query_safe('SELECT 1'); # The failed reload leaves the old HBA lines in place, but their validator is -# no longer allowed. -SKIP: -{ - skip "EXEC_BACKEND builds do not use already loaded configuration", 1 - if ($PostgreSQL::Test::Utils::windows_os); - $node->connect_fails( - "user=test dbname=postgres oauth_issuer=$issuer oauth_client_id=f02c6361-0635", - "validator removed from oauth_validator_libraries is not used", - expected_stderr => - qr/OAuth bearer authentication failed for user "test"/, - log_like => [ - qr/oauth_validator_libraries must be set for authentication method oauth/ - ]); -} +# no longer allowed. In EXEC_BACKEND builds the backend will exit from not +# being able to load the config. +$node->connect_fails( + "user=test dbname=postgres oauth_issuer=$issuer oauth_client_id=f02c6361-0635", + "validator removed from oauth_validator_libraries is not used", + log_like => [ + qr/oauth_validator_libraries must be set for authentication method oauth|FATAL: could not load/ + ]); # Test that a quoted empty name is rejected $node->append_conf('postgresql.conf', "oauth_validator_libraries = 'validator,\"\"'"); [parent: e83298599633]