Skip to content

Commit 27092e4

Browse files
committed
Add scenario in #883 as an integration test for upgrade charm
1 parent a1eb101 commit 27092e4

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
@@ -245,6 +245,17 @@ async def test_upgrade_local_charm_resource(event_loop):
245245
assert ress['file-res']
246246

247247

248+
@base.bootstrapped
249+
@pytest.mark.asyncio
250+
async def test_upgrade_charm_resource_same_rev_no_update(event_loop):
251+
async with base.CleanModel() as model:
252+
app = await model.deploy('keystone', channel='victoria/stable')
253+
ress = await app.get_resources()
254+
await app.refresh(channel='ussuri/stable')
255+
ress2 = await app.get_resources()
256+
assert ress['policyd-override'].fingerprint == ress2['policyd-override'].fingerprint
257+
258+
248259
@base.bootstrapped
249260
@pytest.mark.asyncio
250261
async def test_trusted(event_loop):

0 commit comments

Comments
 (0)