From bf95b754896401d4ed5cde79d0023e0e56559b46 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Mon, 11 Jul 2016 18:20:15 +0200 Subject: [PATCH] Use the parameter that really sets the pending_restart flag. --- features/patroni_api.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/patroni_api.feature b/features/patroni_api.feature index 8f5c415e..57810173 100644 --- a/features/patroni_api.feature +++ b/features/patroni_api.feature @@ -79,7 +79,7 @@ Scenario: check the scheduled failover And replication works from postgres0 to postgres1 after 25 seconds Scenario: check the scheduled restart - Given I issue a PATCH request to http://127.0.0.1:8008/config with {"postgresql": {"parameters": {"checkpoint_warning": "60s"}}} + Given I issue a PATCH request to http://127.0.0.1:8008/config with {"postgresql": {"parameters": {"superuser_reserved_connections": "6"}}} Then I receive a response code 200 And Response on GET http://127.0.0.1:8008/patroni contains pending_restart after 5 seconds Given I issue a scheduled restart at http://127.0.0.1:8008 in 1 seconds with {"role": "replica"}