From 683bcccf89c12a0ce3d5c0ad4d2c3238b0ceda50 Mon Sep 17 00:00:00 2001 From: Rhys Date: Sat, 21 Dec 2024 14:43:12 +0100 Subject: [PATCH] Ensure 3001 is master to prevent test failing (#687) --- .../targets/mongodb_replicaset/tasks/330_no_auth.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/integration/targets/mongodb_replicaset/tasks/330_no_auth.yml b/tests/integration/targets/mongodb_replicaset/tasks/330_no_auth.yml index 7e5051cb0..46e4c0052 100644 --- a/tests/integration/targets/mongodb_replicaset/tasks/330_no_auth.yml +++ b/tests/integration/targets/mongodb_replicaset/tasks/330_no_auth.yml @@ -91,6 +91,16 @@ poll: 5 interval: 30 + - name: Ensure 3001 is master + community.mongodb.mongodb_stepdown: + login_host: "localhost" + login_port: "{{ item }}" + login_database: admin + loop: + - 3002 + - 3003 + + # Todo.. login to primary and have other two values for members - name: Remove a member from the replicaset community.mongodb.mongodb_replicaset: <<: *mongo_parameters