diff options
| author | Michael Paquier | 2021-04-06 04:23:57 +0000 |
|---|---|---|
| committer | Michael Paquier | 2021-04-06 04:23:57 +0000 |
| commit | 5a71964a832febfee23cedc3bb354049d6ca78a7 (patch) | |
| tree | 976ca0d31dfc35ee74d9e84c091972a39aed06b3 /src/test/kerberos | |
| parent | ac4645c0157fc5fcef0af8ff571512aa284a2cec (diff) | |
Fix some issues with SSL and Kerberos tests
The recent refactoring done in c50624c accidentally broke a portion of
the kerberos tests checking after a query, so add its functionality
back. Some inactive SSL tests had their arguments in an incorrect
order, which would cause them to fail if they were to run.
Author: Jacob Champion
Discussion: https://postgr.es/m/4f5b0b3dc0b6fe9ae6a34886b4d4000f61eb567e.camel@vmware.com
Diffstat (limited to 'src/test/kerberos')
| -rw-r--r-- | src/test/kerberos/t/001_auth.pl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/test/kerberos/t/001_auth.pl b/src/test/kerberos/t/001_auth.pl index de52a667854..8db18294608 100644 --- a/src/test/kerberos/t/001_auth.pl +++ b/src/test/kerberos/t/001_auth.pl @@ -20,7 +20,7 @@ use Time::HiRes qw(usleep); if ($ENV{with_gssapi} eq 'yes') { - plan tests => 30; + plan tests => 32; } else { @@ -196,7 +196,7 @@ sub test_access $node->connect_ok( $connstr, $test_name, sql => $query, - expected_stdout => qr/t/); + expected_stdout => qr/^t$/); } else { @@ -227,9 +227,10 @@ sub test_query my $connstr = $node->connstr('postgres') . " user=$role host=$host hostaddr=$hostaddr $gssencmode"; - my ($stdoutres, $stderrres); - - $node->connect_ok($connstr, $test_name, $query, $expected); + $node->connect_ok( + $connstr, $test_name, + sql => $query, + expected_stdout => $expected); return; } |
