Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSwES-0003bg-KC for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Sep 2021 06:59:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mSwEQ-0006wY-AT for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Sep 2021 06:59:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSwEP-0006wQ-9W for pgsql-hackers@lists.postgresql.org; Wed, 22 Sep 2021 06:59:50 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSwEL-0006Lr-3A for pgsql-hackers@postgresql.org; Wed, 22 Sep 2021 06:59:48 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7B11D5C0158; Wed, 22 Sep 2021 02:59:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 22 Sep 2021 02:59:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=oS16yW ra8Ar8TAaCVx5ruk8FF3R9cBPpQcIBdp2h2fw=; b=qb6k3U9opwfLPgZ8+zQvhs k31M2WVvkUWQjQBw262BC2Gc7AmNT8L/WXz606zg9NGkafAwqsO86t/ALSJZcZkx rK7I/PSsJnvS8+A4NAHsUQmGPZS032tV+KcaZMpGZFdej3OQPcVftXYZGEW+VqcU ZN3BC/NqlaYTR3sFUSrHay1YxZUWpOX7sWVyDxR8upguNsJ2goY+K2V11gF3HLBY Xs2fFKr5ugTFp2FiOLEmM31rXi9AsI9aVQoW6SSYZMHrsLXz6HBfwZNKGwf8j/Yg lkrEBGXTo20EETkm2CniRvyg0U0BG3EqdZu8gJEEQvBjzT7bUEJhkFTQBSGschWg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeiiedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgesmhdtreertdefheenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhephfduleevieetveevtddu teehheeuieeujeevjeegheevjedvhfehieevhfejieelnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Sep 2021 02:59:40 -0400 (EDT) Subject: Re: Proposal: Save user's original authenticated identity for logging To: Michael Paquier , Jacob Champion Cc: "pgsql-hackers@postgresql.org" References: <4a87886f034c713c056c43850f55e6e0ba50d8b5.camel@vmware.com> From: Peter Eisentraut Message-ID: Date: Wed, 22 Sep 2021 08:59:38 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------542F7955989FF1299A74D2F3" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------542F7955989FF1299A74D2F3 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 03.04.21 14:30, Michael Paquier wrote: > On Fri, Apr 02, 2021 at 01:45:31PM +0900, Michael Paquier wrote: >> As a whole, this is a consolidation of its own, so let's apply this >> part first. > > Slight rebase for this one to take care of the updates with the SSL > error messages. I noticed this patch eliminated one $Test::Builder::Level assignment. Was there a reason for this? I think we should add it back, and also add a few missing ones in similar places. See attached patch. --------------542F7955989FF1299A74D2F3 Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="0001-Add-missing-Test-Builder-Level-settings.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Add-missing-Test-Builder-Level-settings.patch" From e9ce373a0482799dc37a695058fc2ca4370f33d1 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 22 Sep 2021 08:58:07 +0200 Subject: [PATCH] Add missing $Test::Builder::Level settings --- src/test/authentication/t/001_password.pl | 2 ++ src/test/authentication/t/002_saslprep.pl | 2 ++ src/test/kerberos/t/001_auth.pl | 2 ++ src/test/ldap/t/001_auth.pl | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/test/authentication/t/001_password.pl b/src/test/authentication/t/001_password.pl index 427a360198..1296c5307a 100644 --- a/src/test/authentication/t/001_password.pl +++ b/src/test/authentication/t/001_password.pl @@ -42,6 +42,8 @@ sub reset_pg_hba # named parameters are passed to connect_ok/fails as-is. sub test_role { + local $Test::Builder::Level = $Test::Builder::Level + 1; + my ($node, $role, $method, $expected_res, %params) = @_; my $status_string = 'failed'; $status_string = 'success' if ($expected_res eq 0); diff --git a/src/test/authentication/t/002_saslprep.pl b/src/test/authentication/t/002_saslprep.pl index f080a0ccba..5b8b4b28e7 100644 --- a/src/test/authentication/t/002_saslprep.pl +++ b/src/test/authentication/t/002_saslprep.pl @@ -36,6 +36,8 @@ sub reset_pg_hba # Test access for a single role, useful to wrap all tests into one. sub test_login { + local $Test::Builder::Level = $Test::Builder::Level + 1; + my $node = shift; my $role = shift; my $password = shift; diff --git a/src/test/kerberos/t/001_auth.pl b/src/test/kerberos/t/001_auth.pl index b5594924ca..27c93abe78 100644 --- a/src/test/kerberos/t/001_auth.pl +++ b/src/test/kerberos/t/001_auth.pl @@ -185,6 +185,8 @@ END # Test connection success or failure, and if success, that query returns true. sub test_access { + local $Test::Builder::Level = $Test::Builder::Level + 1; + my ($node, $role, $query, $expected_res, $gssencmode, $test_name, @expect_log_msgs) = @_; diff --git a/src/test/ldap/t/001_auth.pl b/src/test/ldap/t/001_auth.pl index 0ae14e4c85..0dfc1f9ee1 100644 --- a/src/test/ldap/t/001_auth.pl +++ b/src/test/ldap/t/001_auth.pl @@ -166,6 +166,8 @@ END sub test_access { + local $Test::Builder::Level = $Test::Builder::Level + 1; + my ($node, $role, $expected_res, $test_name, %params) = @_; my $connstr = "user=$role"; -- 2.33.0 --------------542F7955989FF1299A74D2F3--