Oleksii Kliukin
24ebcc72f6
Add more tests for the restart and promotion.
2016-03-01 22:07:18 +01:00
Oleksii Kliukin
ed15f7cd73
Improve tests start/stop, add etcd logging.
...
Toggle the etcd debug logging and write the log to the test dir.
Make sure etcd and patroni are terminated when the tests finish
by sending SIGKILL in case SIGTERM does not work.
Make sure before.all code does the proper cleanup when the exception
is thrown.
2016-03-01 22:03:38 +01:00
Oleksii Kliukin
fa1a7687e5
Correct the step definition, randomize the table.
...
Make sure the step definition does not include "command" worlds.
Use the table name that includes current timestamp in the tests.
2016-03-01 22:00:30 +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
Oleksii Kliukin
83b7c34b00
Do not try to close an already closed file.
2016-02-25 15:35:15 +01:00
Oleksii Kliukin
a84a3fc5e1
Changeset missing in the previous commit.
2016-02-25 15:16:35 +01:00
Oleksii Kliukin
67f55b4606
Stylistic issues: clearly mark unused variables.
2016-02-25 15:11:48 +01:00
Oleksii Kliukin
4a8edf44e6
Convert normal methods to static methods when possible.
2016-02-25 14:55:29 +01:00
Oleksii Kliukin
481a80a3ce
Fix another couple of warnings from the QuantifiedCode and Co.
2016-02-25 14:39:22 +01:00
Oleksii Kliukin
4986db5c6a
Code refactoring, no functional changes.
...
Move etcd code into a separate class.
Reduce the number of global interdependencies.
Clearly define private members of PatroniController and EtcdController.
It would not make the QuantifiedCode entirely happy, since lettuce
passes the step argument to the step definition, that is not used
in the client code, but internally (via the @steps decorator on
the steps class), but that's the issue of the tool used.
2016-02-25 12:52:45 +01:00
Oleksii Kliukin
53b5dfe39e
Remove an unused function.
2016-02-24 19:24:46 +01:00
Oleksii Kliukin
c9b8c2d3a9
Bugfixes, add a function to kill patroni daemon, make the feature description more concise.
2016-02-24 19:22:42 +01:00
Oleksii Kliukin
6f03953268
Merge basic failover and basic replication scenarios in one feature.
2016-02-24 17:12:45 +01:00
Oleksii Kliukin
6ec3523748
Collect test output, add basic failover test.
2016-02-24 16:30:52 +01:00
Oleksii Kliukin
f781d0b9fe
Address the code review by Alex Shulgin.
2016-02-16 16:50:50 +01:00
Oleksii Kliukin
38bd037d99
Add the 1st lettuce test for the basic replication.
...
Basically check that the table inserted on the primary
will get its way to the secondary.
2016-02-05 13:30:42 +01:00