Skip to content

Commit

Permalink
Ensure 3001 is master to prevent test failing (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysmeister authored Dec 21, 2024
1 parent d426f41 commit 683bccc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/targets/mongodb_replicaset/tasks/330_no_auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 683bccc

Please sign in to comment.