Skip to content

Commit 96411a3

Browse files
Revisit the secret backend integration test (#858)
* Revisit the secret backend integration test Both changing the postgresql series to jammy (we should change all of these to use --base at some point) as per juju/juju#15616, and also increasing the timeout appears to be turning this test from timeout to green in local setup, we should see a similar effect on the CI as well. * Revisit additional tests using postgresql charm --------- Co-authored-by: Juan M. Tirado <juanmanuel-tirado@users.noreply.github.com>
1 parent 12be4ec commit 96411a3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/integration/test_controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,13 @@ async def test_secrets_backend_lifecycle(event_loop):
248248
async with base.CleanModel() as m:
249249
controller = await m.get_controller()
250250
# deploy postgresql
251-
await m.deploy('postgresql', channel="latest/stable", series="focal")
251+
await m.deploy('postgresql', base='ubuntu@22.04')
252252
# deploy vault
253-
await m.deploy("vault", series="focal")
253+
await m.deploy("vault", base='ubuntu@20.04')
254254
# relate/integrate
255255
await m.integrate("vault:db", "postgresql:db")
256256
# wait for the postgresql app
257-
await m.wait_for_idle(["postgresql", "vault"], timeout=900)
257+
await m.wait_for_idle(["postgresql", "vault"], timeout=1900)
258258
# expose vault
259259
vault_app = m.applications["vault"]
260260
await vault_app.expose()

tests/integration/test_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ async def test_deploy_from_ch_channel_revision_success(event_loop):
354354
# Ensure we're able to resolve charm these with channel and revision,
355355
# or channel without revision (note that revision requires channel,
356356
# but not vice versa)
357-
await model.deploy("postgresql", application_name="test1", channel='latest/stable')
358-
await model.deploy("postgresql", application_name="test2", channel='latest/stable', revision=290)
357+
await model.deploy("postgresql", application_name="test1", channel='14/stable', base='ubuntu@22.04')
358+
await model.deploy("postgresql", application_name="test2", channel='14/stable', revision=288)
359359

360360

361361
@base.bootstrapped
@@ -1308,7 +1308,7 @@ async def test_detach_storage(event_loop):
13081308
@pytest.mark.asyncio
13091309
async def test_add_and_list_storage(event_loop):
13101310
async with base.CleanModel() as model:
1311-
app = await model.deploy('postgresql', channel="latest/stable")
1311+
app = await model.deploy('postgresql', base='ubuntu@22.04')
13121312
await model.wait_for_idle(status="active", timeout=900)
13131313
unit = app.units[0]
13141314
await unit.add_storage("pgdata", size=512)

0 commit comments

Comments
 (0)