Skip to content

Commit

Permalink
Run one manual failover test via rest API instead of patronictl
Browse files Browse the repository at this point in the history
and bump Patroni version
  • Loading branch information
Alexander Kukushkin committed Jul 29, 2017
1 parent 9f9acb6 commit f2fe833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions features/patroni_api.feature
Expand Up @@ -65,8 +65,8 @@ Scenario: check API requests for the primary-replica pair in the pause mode
Then postgres1 role is the secondary after 15 seconds

Scenario: check the failover via the API in the pause mode
Given I run patronictl.py failover batman --master postgres0 --candidate postgres1 --force
Then I receive a response returncode 0
Given I issue a POST request to http://127.0.0.1:8008/failover with {"leader": "postgres0", "candidate": "postgres1"}
Then I receive a response code 200
And postgres1 is a leader after 5 seconds
And postgres1 role is the primary after 10 seconds
And postgres0 role is the secondary after 10 seconds
Expand Down
2 changes: 1 addition & 1 deletion patroni/version.py
@@ -1 +1 @@
__version__ = '1.3.1'
__version__ = '1.3.2'

0 comments on commit f2fe833

Please sign in to comment.