Skip to content

Commit 2d71263

Browse files
committed
Add recovery tests
In depth testing of the recovery mechanism during a rolling restart. Based on org.elasticsearch.upgrades.RecoveryIT.java
1 parent 3026930 commit 2d71263

File tree

5 files changed

+515
-12
lines changed

5 files changed

+515
-12
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def read(filename):
3030
packages=['crate.qa'],
3131
namespace_packages=['crate'],
3232
install_requires=[
33-
'cr8>=0.16.0',
33+
'cr8>=0.20.0',
3434
'Cython',
3535
'asyncpg>=0.18.2, < 0.20',
3636
'pyodbc',

src/crate/qa/tests.py

+8
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929
) + tuple(glob('/Library/Java/JavaVirtualMachines/jdk*1.8*/Contents/Home'))
3030

3131

32+
class UpgradePath(NamedTuple):
33+
from_version: str
34+
to_version: str
35+
36+
def __repr__(self):
37+
return f'{self.from_version} -> {self.to_version}'
38+
39+
3240
def prepare_env(java_home_candidates: Iterable[str]) -> dict:
3341
for candidate in filter(os.path.exists, java_home_candidates):
3442
return {'JAVA_HOME': candidate}

tests/bwc/test_assertions.py

Whitespace-only changes.

0 commit comments

Comments
 (0)