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

[DPE-2781] Test replica relations to sharding interface #298

Merged
merged 18 commits into from
Nov 22, 2023

Conversation

MiaAltieri
Copy link
Contributor

Issue

No tests for incorrect usage of MongoDB charm running as replica set

Solution

Add tests that show:

  • using a replica set as a config-server leads to blocked
  • using a replica set as a shard leads to blocked

Context

A mongodb charm can run as a Shard, Config-Server, or as a plain Replica set. Sharding relations are not supported with replica sets and so we must test for those and show informative status messages

Extra Charm Code

Adding these tests highlighted holes in the code and so those mistakes have been patched

delgod
delgod previously approved these changes Nov 21, 2023
@MiaAltieri MiaAltieri merged commit 2304e13 into 6/edge Nov 22, 2023
19 checks passed
@MiaAltieri MiaAltieri deleted the test-replica-rels branch November 22, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants