@@ -71,7 +71,6 @@ async def test_deploy_charms(ops_test: OpsTest, charm):
71
71
await ops_test .model .wait_for_idle (apps = APP_NAMES , status = "active" , timeout = 3000 )
72
72
73
73
74
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
75
74
@pytest .mark .group (1 )
76
75
async def test_no_read_only_endpoint_in_standalone_cluster (ops_test : OpsTest ):
77
76
"""Test that there is no read-only endpoint in a standalone cluster."""
@@ -119,7 +118,6 @@ async def test_no_read_only_endpoint_in_standalone_cluster(ops_test: OpsTest):
119
118
)
120
119
121
120
122
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
123
121
@pytest .mark .group (1 )
124
122
async def test_read_only_endpoint_in_scaled_up_cluster (ops_test : OpsTest ):
125
123
"""Test that there is read-only endpoint in a scaled up cluster."""
@@ -138,7 +136,6 @@ async def test_read_only_endpoint_in_scaled_up_cluster(ops_test: OpsTest):
138
136
)
139
137
140
138
141
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
142
139
@pytest .mark .group (1 )
143
140
async def test_database_relation_with_charm_libraries (ops_test : OpsTest ):
144
141
"""Test basic functionality of database relation interface."""
@@ -187,7 +184,6 @@ async def test_database_relation_with_charm_libraries(ops_test: OpsTest):
187
184
cursor .execute ("DROP TABLE test;" )
188
185
189
186
190
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
191
187
@pytest .mark .group (1 )
192
188
async def test_user_with_extra_roles (ops_test : OpsTest ):
193
189
"""Test superuser actions and the request for more permissions."""
@@ -209,7 +205,6 @@ async def test_user_with_extra_roles(ops_test: OpsTest):
209
205
connection .close ()
210
206
211
207
212
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
213
208
@pytest .mark .group (1 )
214
209
async def test_two_applications_doesnt_share_the_same_relation_data (ops_test : OpsTest ):
215
210
"""Test that two different application connect to the database with different credentials."""
@@ -263,7 +258,6 @@ async def test_two_applications_doesnt_share_the_same_relation_data(ops_test: Op
263
258
psycopg2 .connect (connection_string )
264
259
265
260
266
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
267
261
@pytest .mark .group (1 )
268
262
async def test_an_application_can_connect_to_multiple_database_clusters (ops_test : OpsTest ):
269
263
"""Test that an application can connect to different clusters of the same database."""
@@ -295,7 +289,6 @@ async def test_an_application_can_connect_to_multiple_database_clusters(ops_test
295
289
assert application_connection_string != another_application_connection_string
296
290
297
291
298
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
299
292
@pytest .mark .group (1 )
300
293
async def test_an_application_can_connect_to_multiple_aliased_database_clusters (ops_test : OpsTest ):
301
294
"""Test that an application can connect to different clusters of the same database."""
@@ -330,7 +323,6 @@ async def test_an_application_can_connect_to_multiple_aliased_database_clusters(
330
323
assert application_connection_string != another_application_connection_string
331
324
332
325
333
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
334
326
@pytest .mark .group (1 )
335
327
async def test_an_application_can_request_multiple_databases (ops_test : OpsTest ):
336
328
"""Test that an application can request additional databases using the same interface."""
@@ -352,7 +344,6 @@ async def test_an_application_can_request_multiple_databases(ops_test: OpsTest):
352
344
assert first_database_connection_string != second_database_connection_string
353
345
354
346
355
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
356
347
@pytest .mark .group (1 )
357
348
async def test_relation_data_is_updated_correctly_when_scaling (ops_test : OpsTest ):
358
349
"""Test that relation data, like connection data, is updated correctly when scaling."""
@@ -420,7 +411,6 @@ async def test_relation_data_is_updated_correctly_when_scaling(ops_test: OpsTest
420
411
psycopg2 .connect (primary_connection_string )
421
412
422
413
423
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
424
414
@pytest .mark .group (1 )
425
415
async def test_relation_with_no_database_name (ops_test : OpsTest ):
426
416
"""Test that a relation with no database name doesn't block the charm."""
@@ -438,7 +428,6 @@ async def test_relation_with_no_database_name(ops_test: OpsTest):
438
428
await ops_test .model .wait_for_idle (apps = APP_NAMES , status = "active" , raise_on_blocked = True )
439
429
440
430
441
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
442
431
@pytest .mark .group (1 )
443
432
async def test_admin_role (ops_test : OpsTest ):
444
433
"""Test that the admin role gives access to all the databases."""
@@ -524,7 +513,6 @@ async def test_admin_role(ops_test: OpsTest):
524
513
connection .close ()
525
514
526
515
527
- @pytest .mark .runner (["self-hosted" , "linux" , "X64" , "jammy" , "large" ])
528
516
@pytest .mark .group (1 )
529
517
async def test_invalid_extra_user_roles (ops_test : OpsTest ):
530
518
async with ops_test .fast_forward ():
0 commit comments