wilfriedroset
2384d9e735
Add API route /health ( #1079 )
...
close #119
2019-06-11 15:22:52 +02:00
Alexander Kukushkin
1a0876e5ca
Refactor acceptance tests to improve stability ( #884 )
...
Hope it will crash less often when executed on travis against k8s
2018-11-30 12:40:56 +01:00
Alexander Kukushkin
87e9aab04c
Improve tests ( #778 )
...
* Implement missing unit-tests
* Add acceptance tests for ISSUE #776
* Update list of classifiers, keywords and authors
2018-08-29 11:29:37 +02:00
Alexander Kukushkin
18786464a1
Rename failover to switchover and make new failover work without leader ( #588 )
...
In addition to that implement /switchover endpoint as an alias to /failover endpoint and implement more checks like:
* candidate must be provided for a failover
* switchover can't be scheduled in a pause state
* and so on
Fixes https://github.com/zalando/patroni/issues/585
Fixes https://github.com/zalando/patroni/issues/520
2018-01-05 15:17:56 +01:00
Alexander Kukushkin
25aa49b240
Run one manual failover test via rest API instead of patronictl
...
and bump Patroni version
2017-07-31 11:18:01 +02:00
Alexander Kukushkin
322aa45e09
BUGFIX: patronictl edit-config didn't worked with zookeeper ( #492 )
...
When updating config key we should use `ClusterConfig.index` instead of
`ClusterConfig.modify_index`. The second one should be used by Patroni
internally to check that key was really changed, because when key is
deleted and recreated it's version always starts from the same value: 0
In addition to that use patronictl instead of http PATCH in some of
acceptance tests to change cluster config.
Fixes https://github.com/zalando/patroni/issues/491
2017-07-31 11:07:00 +02:00
Alexander Kukushkin
39f5f7982c
Scheduled failovers in 1 second don't work reliably with loop_wait=2
2017-01-13 11:25:07 +01:00
Alexander Kukushkin
1f829a4b34
Switch to trusty and run acceptance tests with postgres 9.6
2017-01-13 09:32:38 +01:00
Alexander Kukushkin
1e573aec8f
Do session/renew call to Consul when update_leader is called ( #336 )
2016-10-10 10:05:55 +02:00
Alexander Kukushkin
33ff372ef6
Always try to rewind on manual failover
2016-09-01 11:08:26 +02:00
Alexander Kukushkin
1dcdd6eaa0
Acceptance tests for pause mode
2016-08-30 16:50:07 +02:00
Alexander Kukushkin
366ed9cc52
fix pep8 formatting and implement missing tests
2016-08-29 15:39:24 +02:00
Murat Kabilov
a47a2bceff
Manage scheduled restarts using patronictl ( #248 )
...
Manage scheduled restarts using patronictl
2016-08-09 12:54:48 +02:00
Oleksii Kliukin
ffd27b5705
Rename with_pending_restart to restart_pending.
2016-07-13 11:07:37 +02:00
Oleksii Kliukin
bf95b75489
Use the parameter that really sets the pending_restart flag.
2016-07-11 18:20:15 +02:00
Oleksii Kliukin
c91eda8d78
Merge branch 'master' into feature/scheduled_restarts
2016-07-11 12:56:24 +02:00
Oleksii Kliukin
29845dd383
Restart the node according to the schedule.
...
The scheduled restart data structures are now independent of those
used by the normal restarts. This would be fixed in subsequent
commits.
Add the behave tests, that cover the POST /restart (but not DELETE).
2016-06-23 10:43:54 +02:00
Alexander Kukushkin
fcde17583c
Acceptance tests for patronictl
...
Call patronictl.py when it's possible instead of doing REST API calls.
2016-06-16 15:06:18 +02:00
Alexander Kukushkin
24822bd9ac
Returning 304 for POST, PATCH, PUT is not good idea
2016-06-06 10:50:42 +02:00
Alexander Kukushkin
ebb9e252d8
Rename restart_pending to pending_restart for compatibility
2016-06-02 09:31:30 +02:00
Alexander Kukushkin
1c30948ef9
Implement PUT /config and enhance some checks
2016-06-01 17:06:31 +02:00
Alexander Kukushkin
f7912991a8
Reshuffle acceptance tests one more time
2016-05-30 12:37:14 +02:00
Alexander Kukushkin
e085c866dc
Reshuffle acceptance tests
...
Move dynamic config tests from basic_replication to patroni_api
2016-05-30 11:30:41 +02:00
Alexander Kukushkin
073ef3784f
Implement PATCH /config
2016-05-27 16:29:33 +02:00
Alexander Kukushkin
d57310bbc0
Fix one more corner-case
...
It could take up to 10 seconds to create replication slot.
In addition to that when replica fails to connect to the master via
streaming replication it doesn't retry immediately, but with some
timeout (5 seconds). 10 + 5 == 15 what causes replication check
scenarios fail.
2016-04-13 14:09:45 +02:00
Alexander Kukushkin
b4e86f0809
Make it possible to schedule failover in less then 10 seconds
...
But only when API request was posted to the leader
2016-04-13 13:32:39 +02:00
Alexander Kukushkin
15d30a2d35
Try to stabilize acceptance tests
2016-04-13 13:32:39 +02:00
Alexander Kukushkin
24a2ea6cef
Refactor acceptance tests to make them work against ZooKeeper
...
and make it easier to implement controllers for new DCS, i.e. consul
2016-04-10 10:37:43 +02:00
Alexander Kukushkin
e6af18f0bb
Former leader was not able to reattach to cluster without pg_rewind
...
It was shutdown correctly and I expected such 'join' working, but it was
not, because new leader didn't had enough time to catch up with the
master before promote.
2016-03-24 14:45:21 +01:00
Alexander Kukushkin
54055c1ff8
Rename ambiguous Failover.member to candidate
...
But! 'member' is still accepted by REST API and also name 'member' is
used to strore/read this value to/from DCS (for backward comatibility)
2016-03-18 15:59:47 +01:00
Alexander Kukushkin
42d798a3de
acceptance tests on travis
2016-03-10 17:19:10 +01:00
Oleksii Kliukin
3f1c34f557
Add tests for the scheduled failover.
...
The actual amount of time to establish the master and the replication
after the scheduled failover seems sufficient (15 seconds with the
failover in 10 seconds), but occasionally leads to test failures.
This is unlikely the test issue and should be investigated inside
the patroni.
2016-03-02 19:39:12 +01:00
Oleksii Kliukin
069440be15
Improve the "replication work" sentence definition.
...
Add an ability to specify the origin and the destination for
the replication works clause. Use this ability in the API
promotion test to ensure the replication from the former
replica to the former master.
2016-03-02 15:43:44 +01:00
Oleksii Kliukin
24ebcc72f6
Add more tests for the restart and promotion.
2016-03-01 22:07:18 +01:00
Oleksii Kliukin
0d44e3eb7c
Add simple API tests for 2 nodes, to be extended.
2016-02-26 18:00:11 +01:00
Oleksii Kliukin
4e9ebf48a8
Add API tests for a stand-alone node. Bugfixes.
...
Add tests for patroni API.
Fix test failures when an already running etcd is used.
2016-02-26 17:37:37 +01:00