From b7a9a9271d2b096d3eb0354bcf9700a3244d4718 Mon Sep 17 00:00:00 2001 From: Dragomir Penev Date: Wed, 4 Oct 2023 12:01:32 +0300 Subject: [PATCH] Switch TLS op track --- tests/integration/test_backups.py | 2 +- tests/integration/test_tls.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_backups.py b/tests/integration/test_backups.py index 7e3cee31d8..92a0e3c3a2 100644 --- a/tests/integration/test_backups.py +++ b/tests/integration/test_backups.py @@ -40,7 +40,7 @@ async def test_backup(ops_test: OpsTest, cloud_configs: Tuple[Dict, Dict]) -> No # Deploy S3 Integrator and TLS Certificates Operator. await ops_test.model.deploy(S3_INTEGRATOR_APP_NAME) config = {"generate-self-signed-certificates": "true", "ca-common-name": "Test CA"} - await ops_test.model.deploy(TLS_CERTIFICATES_APP_NAME, config=config) + await ops_test.model.deploy(TLS_CERTIFICATES_APP_NAME, config=config, channel="legacy/stable") for cloud, config in cloud_configs[0].items(): # Deploy and relate PostgreSQL to S3 integrator (one database app for each cloud for now diff --git a/tests/integration/test_tls.py b/tests/integration/test_tls.py index 6621272a85..7146d8a43a 100644 --- a/tests/integration/test_tls.py +++ b/tests/integration/test_tls.py @@ -53,7 +53,9 @@ async def test_tls_enabled(ops_test: OpsTest) -> None: async with ops_test.fast_forward(): # Deploy TLS Certificates operator. config = {"generate-self-signed-certificates": "true", "ca-common-name": "Test CA"} - await ops_test.model.deploy(TLS_CERTIFICATES_APP_NAME, config=config) + await ops_test.model.deploy( + TLS_CERTIFICATES_APP_NAME, config=config, channel="legacy/stable" + ) # Relate it to the PostgreSQL to enable TLS. await ops_test.model.relate(DATABASE_APP_NAME, TLS_CERTIFICATES_APP_NAME)