Skip to content

Commit

Permalink
Add recovery tests
Browse files Browse the repository at this point in the history
In depth testing of the recovery mechanism during a rolling restart.
Based on org.elasticsearch.upgrades.RecoveryIT.java
  • Loading branch information
mkleen committed Nov 2, 2020
1 parent 3026930 commit 4dd86f7
Show file tree
Hide file tree
Showing 5 changed files with 515 additions and 12 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def read(filename):
packages=['crate.qa'],
namespace_packages=['crate'],
install_requires=[
'cr8>=0.16.0',
'cr8>=0.20.0',
'Cython',
'asyncpg>=0.18.2, < 0.20',
'pyodbc',
Expand Down
8 changes: 8 additions & 0 deletions src/crate/qa/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
) + tuple(glob('/Library/Java/JavaVirtualMachines/jdk*1.8*/Contents/Home'))


class UpgradePath(NamedTuple):
from_version: str
to_version: str

def __repr__(self):
return f'{self.from_version} -> {self.to_version}'


def prepare_env(java_home_candidates: Iterable[str]) -> dict:
for candidate in filter(os.path.exists, java_home_candidates):
return {'JAVA_HOME': candidate}
Expand Down
Empty file added tests/bwc/test_assertions.py
Empty file.
Loading

0 comments on commit 4dd86f7

Please sign in to comment.