Skip to content

Commit 8c2300b

Browse files
committed
Add scenario in #883 as an integration test for upgrade charm
1 parent b54a876 commit 8c2300b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/integration/test_application.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,17 @@ async def test_upgrade_charm_resource(event_loop):
226226
assert app.units[0].workload_status_message == expected_message
227227

228228

229+
@base.bootstrapped
230+
@pytest.mark.asyncio
231+
async def test_upgrade_charm_resource_same_rev_no_update(event_loop):
232+
async with base.CleanModel() as model:
233+
app = await model.deploy('keystone', channel='victoria/stable')
234+
ress = await app.get_resources()
235+
await app.refresh(channel='ussuri/stable')
236+
ress2 = await app.get_resources()
237+
assert ress['policyd-override'].fingerprint == ress2['policyd-override'].fingerprint
238+
239+
229240
@base.bootstrapped
230241
@pytest.mark.asyncio
231242
async def test_trusted(event_loop):

0 commit comments

Comments
 (0)