Skip to content

Commit

Permalink
Don't clean up per cloud app
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Apr 8, 2024
1 parent b8be2bf commit d5521d6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/integration/test_backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@ async def test_backup(ops_test: OpsTest, cloud_configs: Tuple[Dict, Dict], charm
assert backups, "backups not outputted"
await ops_test.model.wait_for_idle(status="active", timeout=1000)

# Remove the database app.
await ops_test.model.remove_application(database_app_name, block_until_done=True)
# Remove the TLS operator.
await ops_test.model.remove_application(TLS_CERTIFICATES_APP_NAME, block_until_done=True)

Expand All @@ -285,13 +283,11 @@ async def test_restore_on_new_cluster(ops_test: OpsTest, github_secrets, charm)
"""Test that is possible to restore a backup to another PostgreSQL cluster."""
previous_database_app_name = f"{DATABASE_APP_NAME}-gcp"
database_app_name = f"new-{DATABASE_APP_NAME}"
await ops_test.model.deploy(charm, application_name=previous_database_app_name)
await ops_test.model.deploy(
charm,
application_name=database_app_name,
series=CHARM_SERIES,
)
await ops_test.model.relate(previous_database_app_name, S3_INTEGRATOR_APP_NAME)
await ops_test.model.relate(database_app_name, S3_INTEGRATOR_APP_NAME)
async with ops_test.fast_forward():
logger.info(
Expand Down

0 comments on commit d5521d6

Please sign in to comment.