community.mongodb icon indicating copy to clipboard operation
community.mongodb copied to clipboard

mongodb_stepdown: Fix tests

Open rhysmeister opened this issue 4 months ago • 0 comments

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

rhysmeister avatar Mar 04 '24 05:03 rhysmeister