diff --git a/features/patroni_api.feature b/features/patroni_api.feature index 91eb27dc..99b59c6b 100644 --- a/features/patroni_api.feature +++ b/features/patroni_api.feature @@ -78,7 +78,7 @@ Scenario: check the scheduled failover And I receive a response output "Can't schedule failover in the paused state" When I run patronictl.py resume batman Then I receive a response returncode 0 - Given I issue a scheduled failover from postgres1 to postgres0 in 1 seconds + Given I issue a scheduled failover from postgres1 to postgres0 in 3 seconds Then I receive a response returncode 0 And postgres0 is a leader after 20 seconds And postgres0 role is the primary after 10 seconds @@ -89,11 +89,11 @@ Scenario: check the scheduled restart 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"} + Given I issue a scheduled restart at http://127.0.0.1:8008 in 3 seconds with {"role": "replica"} Then I receive a response code 202 - And I sleep for 2 seconds + And I sleep for 4 seconds And Response on GET http://127.0.0.1:8008/patroni contains pending_restart after 10 seconds - Given I issue a scheduled restart at http://127.0.0.1:8008 in 1 seconds with {"restart_pending": "True"} + Given I issue a scheduled restart at http://127.0.0.1:8008 in 3 seconds with {"restart_pending": "True"} Then I receive a response code 202 And Response on GET http://127.0.0.1:8008/patroni does not contain pending_restart after 10 seconds