Skip to content

Commit f04a7d6

Browse files
committed
Add an integration test for charmhub.list_resources
1 parent b3aa395 commit f04a7d6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/integration/test_charmhub.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,11 @@ async def test_subordinate_charm_zero_units(event_loop):
101101
app2 = await model.deploy('rsyslog-forwarder-ha', num_units=1)
102102
await jasyncio.sleep(5)
103103
assert len(app2.units) == 0
104+
105+
106+
@base.bootstrapped
107+
@pytest.mark.asyncio
108+
async def test_list_resources(event_loop):
109+
async with base.CleanModel() as model:
110+
resources = await model.charmhub.list_resources('postgresql')
111+
assert type(resources) == list and len(resources) > 0

0 commit comments

Comments
 (0)