Bugfixes, add a function to kill patroni daemon, make the feature description more concise.

This commit is contained in:
Oleksii Kliukin
2016-02-24 19:22:42 +01:00
parent 6f03953268
commit c9b8c2d3a9
3 changed files with 26 additions and 15 deletions
+4 -10
View File
@@ -1,11 +1,5 @@
Feature: basic replication
In order to check that basic replication works
As observers
We start the primary and the replica
add a table on the primary
and check that it gets replicated to the replica over time.
We stop the primary and check that the replica promotes itself to primary
We start the old primary and check that it rejoins as a replica.
We should check that the basic bootstrapping, replication and failover works.
Scenario: check replication of a single table
Given I start postgres0
@@ -14,9 +8,9 @@ Feature: basic replication
Then table foo is present on postgres1 after 10 seconds
Scenario: check the basic failover
When I shut down postgres0
Then postgres1 role is the primary after 10 seconds
When I kill postgres0
Then postgres1 role is the primary after 30 seconds
When I start postgres0
Then postgres0 role is the secondary after 10 seconds
When I add the table bar to postgres1
Then table bar is present on postgres1 after 10 seconds
Then table bar is present on postgres0 after 10 seconds