@@ -189,6 +189,15 @@ def test_create_search_resource(mdbs: MongoDBSearch):
189189 mdbs .assert_reaches_phase (Phase .Running , timeout = 300 )
190190
191191
192+ # After picking up MongoDBSearch CR, MongoDB reconciler will add mongod parameters to each process.
193+ # Due to how MongoDB reconciler works (blocking on waiting for agents and not changing the status to pending)
194+ # the phase won't be updated to Pending and we need to wait by checking agents' status directly in OM.
195+ @mark .e2e_search_enterprise_tls
196+ def test_wait_for_agents_ready (mdb : MongoDB ):
197+ mdb .get_om_tester ().wait_agents_ready ()
198+ mdb .assert_reaches_phase (Phase .Running , timeout = 300 )
199+
200+
192201@mark .e2e_search_enterprise_tls
193202def test_wait_for_mongod_parameters (mdb : MongoDB ):
194203 # After search CR is deployed, MongoDB controller will pick it up
@@ -214,15 +223,6 @@ def check_mongod_parameters():
214223 run_periodically (check_mongod_parameters , timeout = 600 )
215224
216225
217- # After picking up MongoDBSearch CR, MongoDB reconciler will add mongod parameters to each process.
218- # Due to how MongoDB reconciler works (blocking on waiting for agents and not changing the status to pending)
219- # the phase won't be updated to Pending and we need to wait by checking agents' status directly in OM.
220- @mark .e2e_search_enterprise_tls
221- def test_wait_for_agents_ready (mdb : MongoDB ):
222- mdb .get_om_tester ().wait_agents_ready ()
223- mdb .assert_reaches_phase (Phase .Running , timeout = 300 )
224-
225-
226226@mark .e2e_search_enterprise_tls
227227def test_search_restore_sample_database (mdb : MongoDB ):
228228 get_admin_sample_movies_helper (mdb ).restore_sample_database ()
0 commit comments