summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-02-07 08:11:01 +0900
committerMichael Paquier <michael@paquier.xyz>2020-02-07 08:11:01 +0900
commit2f4733993a967ce7f89d1a02c9f12988e9b7ff6f (patch)
treea35cee3af078c594f9fd0f0fa3e36d222e789738 /src/test
parent4988d7e96953ac858563e225079b6992810aab22 (diff)
Revert "Add GUC checks for ssl_min_protocol_version and ssl_max_protocol_version"
This reverts commit 41aadee, as the GUC checks could run on older values with the new values used, and result in incorrect errors if both parameters are changed at the same time. Per complaint from Tom Lane. Discussion: https://postgr.es/m/27574.1581015893@sss.pgh.pa.us Backpatch-through: 12
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ssl/t/001_ssltests.pl20
-rw-r--r--src/test/ssl/t/SSLServer.pm2
2 files changed, 2 insertions, 20 deletions
diff --git a/src/test/ssl/t/001_ssltests.pl b/src/test/ssl/t/001_ssltests.pl
index 66278381bd2..67a3a28db6a 100644
--- a/src/test/ssl/t/001_ssltests.pl
+++ b/src/test/ssl/t/001_ssltests.pl
@@ -13,7 +13,7 @@ use SSLServer;
if ($ENV{with_openssl} eq 'yes')
{
- plan tests => 77;
+ plan tests => 75;
}
else
{
@@ -87,24 +87,6 @@ command_ok(
'restart succeeds with password-protected key file');
$node->_update_pid(1);
-# Test compatibility of SSL protocols.
-# TLSv1.1 is lower than TLSv1.2, so it won't work.
-$node->append_conf(
- 'postgresql.conf',
- qq{ssl_min_protocol_version='TLSv1.2'
-ssl_max_protocol_version='TLSv1.1'});
-command_fails(
- [ 'pg_ctl', '-D', $node->data_dir, '-l', $node->logfile, 'restart' ],
- 'restart fails with incorrect SSL protocol bounds');
-# Go back to the defaults, this works.
-$node->append_conf(
- 'postgresql.conf',
- qq{ssl_min_protocol_version='TLSv1'
-ssl_max_protocol_version=''});
-command_ok(
- [ 'pg_ctl', '-D', $node->data_dir, '-l', $node->logfile, 'restart' ],
- 'restart succeeds with correct SSL protocol bounds');
-
### Run client-side tests.
###
### Test that libpq accepts/rejects the connection correctly, depending
diff --git a/src/test/ssl/t/SSLServer.pm b/src/test/ssl/t/SSLServer.pm
index 228cddf3a2c..d25c38dbbc7 100644
--- a/src/test/ssl/t/SSLServer.pm
+++ b/src/test/ssl/t/SSLServer.pm
@@ -128,7 +128,7 @@ sub configure_test_server_for_ssl
print $conf "log_statement=all\n";
# enable SSL and set up server key
- print $conf "include 'sslconfig.conf'\n";
+ print $conf "include 'sslconfig.conf'";
close $conf;