@@ -105,6 +105,20 @@ def test_deploy(first_model: str, second_model: str, charm: str) -> None:
105105        num_units = 3 ,
106106    )
107107
108+     logging .info ("Deploying the test application" )
109+     model_1  =  Juju (model = first_model )
110+     model_1 .deploy (
111+         charm = DB_TEST_APP_NAME ,
112+         app = DB_TEST_APP_NAME ,
113+         base = "ubuntu@22.04" ,
114+         channel = "latest/edge" ,
115+         constraints = constraints ,
116+         num_units = 1 ,
117+     )
118+ 
119+     logging .info ("Relating the test application" )
120+     model_1 .integrate (f"{ DB_APP_1 }  :database" , f"{ DB_TEST_APP_NAME }  :database" )
121+ 
108122    logging .info ("Waiting for the applications to settle" )
109123    model_1 .wait (
110124        ready = wait_for_apps_status (jubilant .all_active , DB_APP_1 ), timeout = 20  *  MINUTE_SECS 
@@ -138,29 +152,6 @@ def test_async_relate(first_model: str, second_model: str) -> None:
138152    )
139153
140154
141- def  test_deploy_test_app (first_model : str ) ->  None :
142-     """Deploy the test application.""" 
143-     constraints  =  {"arch" : architecture .architecture }
144- 
145-     logging .info ("Deploying the test application" )
146-     model_1  =  Juju (model = first_model )
147-     model_1 .deploy (
148-         charm = DB_TEST_APP_NAME ,
149-         app = DB_TEST_APP_NAME ,
150-         base = "ubuntu@22.04" ,
151-         channel = "latest/edge" ,
152-         constraints = constraints ,
153-         num_units = 1 ,
154-     )
155- 
156-     logging .info ("Relating the test application" )
157-     model_1 .integrate (f"{ DB_APP_1 }  :database" , f"{ DB_TEST_APP_NAME }  :database" )
158- 
159-     model_1 .wait (
160-         ready = wait_for_apps_status (jubilant .all_active , DB_TEST_APP_NAME ), timeout = 10  *  MINUTE_SECS 
161-     )
162- 
163- 
164155def  test_create_replication (first_model : str , second_model : str ) ->  None :
165156    """Run the create-replication action and wait for the applications to settle.""" 
166157    model_1  =  Juju (model = first_model )
0 commit comments