Fix SSL tests
These were accidentally broken by the great backpatching of 331828b754378733cb5c2e49227603e7354e4e39.
This commit is contained in:
parent
196870f2fc
commit
ab32a40572
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user