Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add ha full cluster crash tests #51

Merged
merged 6 commits into from
Oct 4, 2023
Merged

Conversation

marcoppenheimer
Copy link
Contributor

Changes Made

docs: update helpers docstrings

chore: add restart delay manifests + helpers

test: add ha full cluster crash tests

Copy link
Contributor

@deusebio deusebio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all right! Just a small question


# Check that all servers are down at the same time before restoring them
try:
assert helpers.all_db_processes_down(ops_test), "Not all units down at the same time."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question Not sure I understand why this assert is on a try block...?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So that we can call finally. If the test fails, we don't 'necessarily' want to halt execution, but we still need to restore the pebble restart delay back to normal for future tests.

@marcoppenheimer marcoppenheimer merged commit c145ca0 into feat/ha Oct 4, 2023
2 of 3 checks passed
@marcoppenheimer marcoppenheimer deleted the feat/ha_crash branch October 4, 2023 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants