Partially revert patroni@8c5ab4c (#3180)

Still check against `postgres --describe-config` if a GUC does not have
a validator but is a valid postgres GUC
This commit is contained in:
Polina Bungina
2024-10-16 11:13:25 +02:00
committed by GitHub
parent 74c0acf36d
commit ff278705d6
8 changed files with 89 additions and 25 deletions
+2 -1
View File
@@ -10,13 +10,14 @@ from patroni.postgresql.bootstrap import Bootstrap
from patroni.postgresql.cancellable import CancellableSubprocess
from patroni.postgresql.config import ConfigHandler, get_param_diff
from . import BaseTestPostgresql, psycopg_connect
from . import BaseTestPostgresql, mock_available_gucs, psycopg_connect
@patch('subprocess.call', Mock(return_value=0))
@patch('subprocess.check_output', Mock(return_value=b"postgres (PostgreSQL) 12.1"))
@patch('patroni.psycopg.connect', psycopg_connect)
@patch('os.rename', Mock())
@patch.object(Postgresql, 'available_gucs', mock_available_gucs)
class TestBootstrap(BaseTestPostgresql):
@patch('patroni.postgresql.CallbackExecutor', Mock())