community.mongodb
community.mongodb copied to clipboard
mongodb_stepdown: Fix tests
SUMMARY
This error happens a lot...
TASK [mongodb_stepdown : Run stepdown on 3002] ********************************* changed: [testhost] => {"changed": true, "iterations": 1, "msg": "member was stepped down"}
TASK [mongodb_stepdown : assert] *********************************************** fatal: [testhost]: FAILED! => { "assertion": "stepdown.msg == 'member was already at SECONDARY state'", "changed": false, "evaluated_to": false, "msg": "Assertion failed" }
Let's make these tests a little looser and allow this test to pass.
ISSUE TYPE
- Bug Report
COMPONENT NAME
mongodb_stepdown