Fix issues with raft traffic encryption (#1919)

and run raft behave tests with encryption enabled.

Using the new `pysyncobj` release allowed us to get rid of a lot of hacks with accessing private properties and methods of the parent class and reduce the size of the `raft.py`.

Close https://github.com/zalando/patroni/issues/1746
This commit is contained in:
Alexander Kukushkin
2021-04-30 11:28:41 +02:00
committed by GitHub
parent 294bb43bf1
commit 99626a07f2
7 changed files with 131 additions and 182 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ def install_requirements(what):
for r in read('requirements.txt').split('\n'):
r = r.strip()
if r != '':
extras = {e for e, v in EXTRAS_REQUIRE.items() if v and r.startswith(v[0])}
extras = {e for e, v in EXTRAS_REQUIRE.items() if v and any(r.startswith(x) for x in v)}
if not extras or what == 'all' or what in extras:
requirements.append(r)