canonical / mongodb-k8s-operator

Operator charm for MongoDB
Apache License 2.0
13 stars 15 forks source link

[DPE-4911]: Fix flaky relations test #272

Closed Gu1nness closed 3 months ago

Gu1nness commented 3 months ago

Issue

The new_relations test fails sometimes because it fails to get the secret. This happens when one of the units has not received the RelationJoined event. It ends up in this state

Solution

Ensuring that the message is good allows to ensure that the secret is set without modifying the test application. This is done like it's done already in another test.

Miscellaneous