4040pytestmark = pytest .mark .broker
4141
4242
43- @pytest .mark .abort_on_fail
44- @pytest .mark .skip_if_deployed
4543def test_build_and_deploy (juju : jubilant .Juju , kafka_charm , kraft_mode , controller_app ):
4644 juju .cli ("create-storage-pool" , "test_pool" , "lxd" )
4745
@@ -60,14 +58,12 @@ def test_build_and_deploy(juju: jubilant.Juju, kafka_charm, kraft_mode, controll
6058 )
6159
6260
63- @pytest .mark .abort_on_fail
6461def test_consistency_between_workload_and_metadata (juju : jubilant .Juju ):
6562 with open ("refresh_versions.toml" , "r" ) as f :
6663 data = toml .load (f )
6764 assert juju .status ().apps [APP_NAME ].version == data ["workload" ]
6865
6966
70- @pytest .mark .abort_on_fail
7167def test_remove_controller_relation_relate (juju : jubilant .Juju , kraft_mode , controller_app ):
7268 if kraft_mode == "single" :
7369 logger .info (f"Skipping because we're using { kraft_mode } mode." )
@@ -96,7 +92,6 @@ def test_remove_controller_relation_relate(juju: jubilant.Juju, kraft_mode, cont
9692 )
9793
9894
99- @pytest .mark .abort_on_fail
10095def test_listeners (juju : jubilant .Juju , app_charm , kafka_apps ):
10196 address = get_address (juju = juju )
10297 assert check_socket (
@@ -145,7 +140,6 @@ def test_listeners(juju: jubilant.Juju, app_charm, kafka_apps):
145140 )
146141
147142
148- @pytest .mark .abort_on_fail
149143def test_client_properties_makes_admin_connection (juju : jubilant .Juju , kafka_apps , kraft_mode ):
150144 juju .integrate (APP_NAME , f"{ DUMMY_NAME } :{ REL_NAME_ADMIN } " )
151145
@@ -178,7 +172,6 @@ def test_client_properties_makes_admin_connection(juju: jubilant.Juju, kafka_app
178172 )
179173
180174
181- @pytest .mark .abort_on_fail
182175def test_logs_write_to_storage (juju : jubilant .Juju , kafka_apps ):
183176 juju .integrate (APP_NAME , f"{ DUMMY_NAME } :{ REL_NAME_ADMIN } " )
184177 juju .wait (
@@ -216,15 +209,13 @@ def test_rack_awareness_integration(juju: jubilant.Juju):
216209 )
217210
218211
219- @pytest .mark .abort_on_fail
220212def test_exporter_endpoints (juju : jubilant .Juju ):
221213 unit_address = get_address (juju = juju )
222214 jmx_exporter_url = f"http://{ unit_address } :{ JMX_EXPORTER_PORT } /metrics"
223215 jmx_resp = requests .get (jmx_exporter_url )
224216 assert jmx_resp .ok
225217
226218
227- @pytest .mark .abort_on_fail
228219def test_auxiliary_paths (juju : jubilant .Juju ):
229220 for path in PATHS ["kafka" ]:
230221 result = subprocess .check_output (
@@ -240,7 +231,6 @@ def test_auxiliary_paths(juju: jubilant.Juju):
240231 assert int (match .group (1 )) > 0
241232
242233
243- @pytest .mark .abort_on_fail
244234def test_log_level_change (juju : jubilant .Juju , kafka_apps ):
245235 status = juju .status ()
246236 for unit in status .apps [APP_NAME ].units :
@@ -284,7 +274,6 @@ def test_log_level_change(juju: jubilant.Juju, kafka_apps):
284274 )
285275
286276
287- @pytest .mark .abort_on_fail
288277@pytest .mark .skip (reason = "skipping as we can't add storage without losing Juju conn" )
289278def test_logs_write_to_new_storage (juju : jubilant .Juju ):
290279 check_output (
@@ -303,7 +292,6 @@ def test_logs_write_to_new_storage(juju: jubilant.Juju):
303292 )
304293
305294
306- @pytest .mark .abort_on_fail
307295@pytest .mark .fails_in_kafka4
308296@pytest .mark .skip (reason = "storage format command fails in KRaft mode" )
309297def test_deploy_with_existing_storage (juju : jubilant .Juju , kafka_apps ):
0 commit comments