Skip to content

Commit b269303

Browse files
committed
Fix data-int base
1 parent 0c8b4b5 commit b269303

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

tests/integration/new_relations/test_new_relations_1.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,12 @@ async def test_invalid_extra_user_roles(ops_test: OpsTest):
580580

581581
another_data_integrator_app_name = f"another-{DATA_INTEGRATOR_APP_NAME}"
582582
data_integrator_apps_names = [DATA_INTEGRATOR_APP_NAME, another_data_integrator_app_name]
583+
# Base is ignored
583584
await ops_test.model.deploy(
584585
DATA_INTEGRATOR_APP_NAME,
585586
application_name=another_data_integrator_app_name,
586-
base=CHARM_BASE,
587+
channel="latest/edge",
588+
series="jammy",
587589
)
588590
await ops_test.model.wait_for_idle(
589591
apps=[another_data_integrator_app_name], status="blocked"

tests/integration/new_relations/test_relations_coherence.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import logging
55
import secrets
66
import string
7+
from asyncio import gather
78

89
import psycopg2
910
import pytest
@@ -26,22 +27,23 @@
2627
async def test_relations(ops_test: OpsTest, charm):
2728
"""Test that check relation data."""
2829
async with ops_test.fast_forward():
29-
await ops_test.model.deploy(
30-
charm,
31-
application_name=DATABASE_APP_NAME,
32-
num_units=1,
33-
base=CHARM_BASE,
34-
config={"profile": "testing"},
30+
await gather(
31+
ops_test.model.deploy(
32+
charm,
33+
application_name=DATABASE_APP_NAME,
34+
num_units=1,
35+
base=CHARM_BASE,
36+
config={"profile": "testing"},
37+
),
38+
# Creating first time relation with user role
39+
# Base is ignored
40+
ops_test.model.deploy(DATA_INTEGRATOR_APP_NAME, series="jammy"),
3541
)
36-
await ops_test.model.wait_for_idle(apps=[DATABASE_APP_NAME], status="active", timeout=3000)
37-
38-
# Creating first time relation with user role
39-
await ops_test.model.deploy(DATA_INTEGRATOR_APP_NAME, base=CHARM_BASE)
4042
await ops_test.model.applications[DATA_INTEGRATOR_APP_NAME].set_config({
4143
"database-name": DATA_INTEGRATOR_APP_NAME.replace("-", "_"),
4244
})
4345
await ops_test.model.add_relation(DATA_INTEGRATOR_APP_NAME, DATABASE_APP_NAME)
44-
await ops_test.model.wait_for_idle(apps=APP_NAMES, status="active")
46+
await ops_test.model.wait_for_idle(apps=APP_NAMES, status="active", timeout=1500)
4547

4648
connection_string = await build_connection_string(
4749
ops_test,

0 commit comments

Comments
 (0)