mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Fix SSL tests
These were accidentally broken by the great backpatching of
331828b754
.
This commit is contained in:
@@ -46,6 +46,7 @@ sub copy_files
|
||||
sub configure_test_server_for_ssl
|
||||
{
|
||||
my $tempdir = $_[0];
|
||||
my $serverhost = $_[1];
|
||||
|
||||
# Create test users and databases
|
||||
psql 'postgres', "CREATE USER ssltestuser";
|
||||
@@ -58,6 +59,7 @@ sub configure_test_server_for_ssl
|
||||
print CONF "fsync=off\n";
|
||||
print CONF "log_connections=on\n";
|
||||
print CONF "log_hostname=on\n";
|
||||
print CONF "listen_addresses='$serverhost'\n";
|
||||
print CONF "log_statement=all\n";
|
||||
|
||||
# enable SSL and set up server key
|
||||
|
@@ -84,7 +84,7 @@ chmod 0600, "ssl/client.key";
|
||||
|
||||
diag "setting up data directory in \"$tempdir\"...";
|
||||
start_test_server($tempdir);
|
||||
configure_test_server_for_ssl($tempdir);
|
||||
configure_test_server_for_ssl($tempdir, $SERVERHOSTADDR);
|
||||
switch_server_cert($tempdir, 'server-cn-only');
|
||||
|
||||
### Part 1. Run client-side tests.
|
||||
|
Reference in New Issue
Block a user