-
Notifications
You must be signed in to change notification settings - Fork 0
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 coordinator #60
Merged
Merged
Test coordinator #60
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Coordinator pytest fixtures 2) Coordinator unit tests 3) Minor refactoring of roles_config in coordinator.py
MichaelThamm
commented
Aug 20, 2024
sed-i
reviewed
Aug 20, 2024
sed-i
reviewed
Aug 21, 2024
sed-i
reviewed
Aug 21, 2024
MichaelThamm
commented
Aug 21, 2024
sed-i
reviewed
Aug 21, 2024
MichaelThamm
added a commit
that referenced
this pull request
Aug 22, 2024
* Added the following: 1) Coordinator pytest fixtures 2) Coordinator unit tests 3) Created test_roles_config.py tests * Removed: 1) Coordinator.py changes due to lack of testing
PietroPasotti
added a commit
that referenced
this pull request
Aug 26, 2024
* Catch SecretNotFoundError when privkey shouldn't be here (#48) * Catch SecretNotFoundError when privkey shouldn't be here * Bring back if self.tls_available check from pre-refactor times * lint * Bump the version that was forgotten in #48 (#50) * Add issues integration action (#52) * Add issues integration action * Order imports differently as lint started to complain * Update databag model dump return value (#53) * dump returns databag * tests * root ca cert patch * fixed static checks * fix * removed conftest * added health check logic to worker (#55) * added health check logic to worker * adapted status check to be less tempo-specific * use regular paths for codespell too * rerun black * vbump * added worker error on timeout if restart fails (#56) * added worker error on timeout if restart fails * maintenance status throughout retries * fixed static * only restart own services * added tls support for worker checks (#59) * added tls support for worker checks * lint * static fix * Test coordinator (#60) * Added the following: 1) Coordinator pytest fixtures 2) Coordinator unit tests 3) Rrefactoring of roles_config in coordinator.py * ClusterRolesConfig was switched to a dataclass with __post_init__ and is_coherent_with methods 4) Created test_roles_config.py tests * Chore: Fix leftover comments and minor code changes * * Updates 1) Fmt 2) Merged 'main:coordinator.py' into test-coordinator-cleanup to fix Secrets error * Added docstrings to ClusterRoleConfig --------- Co-authored-by: Mateusz Kulewicz <mateusz.kulewicz@canonical.com> Co-authored-by: PietroPasotti <starfire.daemon@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Coordinator is missing unit tests and pytest.fixtures
Solution
Added fixtures for a default working coordinator and some unit tests
Context
Testing Instructions
tox -e unit -- tests/test_coordinated_workers/test_coordinator.py