Skip to content

Commit

Permalink
Trust in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Sep 29, 2023
1 parent f22a618 commit 97c7ecf
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ async def test_database_relation_with_charm_libraries(ops_test: OpsTest, pgb_cha
application_name=PGB,
num_units=2,
series=CHARM_SERIES,
trust=True,
),
ops_test.model.deploy(
PG,
Expand Down
1 change: 1 addition & 0 deletions tests/integration/relations/test_backend_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ async def test_relate_pgbouncer_to_postgres(ops_test: OpsTest, pgb_charm):
resources=resources,
application_name=PGB,
series=CHARM_SERIES,
trust=True,
),
# Edge 5 is the new postgres charm
ops_test.model.deploy(PG, channel="14/edge", trust=True, num_units=3),
Expand Down
1 change: 1 addition & 0 deletions tests/integration/relations/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ async def test_create_db_legacy_relation(ops_test: OpsTest, pgb_charm):
application_name=PGB,
num_units=3,
series=CHARM_SERIES,
trust=True,
),
ops_test.model.deploy(PG, num_units=3, trust=True, channel="14/edge"),
ops_test.model.deploy("finos-waltz-k8s", application_name=FINOS_WALTZ, channel="edge"),
Expand Down
1 change: 1 addition & 0 deletions tests/integration/relations/test_db_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ async def test_create_db_admin_legacy_relation(ops_test: OpsTest, pgb_charm):
resources=resources,
application_name=PGB,
series=CHARM_SERIES,
trust=True,
),
ops_test.model.deploy(PG, trust=True, num_units=3, channel="14/edge"),
ops_test.model.deploy(
Expand Down
7 changes: 6 additions & 1 deletion tests/integration/relations/test_peers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ async def test_deploy_at_scale(ops_test, pgb_charm):
}
async with ops_test.fast_forward():
await ops_test.model.deploy(
pgb_charm, resources=resources, application_name=PGB, num_units=3, series=CHARM_SERIES
pgb_charm,
resources=resources,
application_name=PGB,
num_units=3,
series=CHARM_SERIES,
trust=True,
)
await ops_test.model.wait_for_idle(
apps=[PGB], status="blocked", timeout=1000, wait_for_exact_units=3
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async def test_build_and_deploy(ops_test: OpsTest, pgb_charm):
resources=resources,
application_name=PGB,
series=CHARM_SERIES,
trust=True,
)
await ops_test.model.wait_for_idle(apps=[PGB], status="blocked", timeout=1000)

Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ async def test_build_and_deploy(ops_test: OpsTest, pgb_charm):
application_name=PGB,
num_units=APPLICATION_UNITS,
series=CHARM_SERIES,
trust=True,
)

if not await app_name(ops_test, CLIENT_APP_NAME):
Expand Down

0 comments on commit 97c7ecf

Please sign in to comment.