Skip to content

Commit 3ad1f69

Browse files
committed
Add an integration test for charmhub.list_resources
1 parent 64c7d80 commit 3ad1f69

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
@@ -97,3 +97,11 @@ async def test_subordinate_charm_zero_units(event_loop):
9797
app2 = await model.deploy('rsyslog-forwarder-ha', num_units=1)
9898
await jasyncio.sleep(5)
9999
assert len(app2.units) == 0
100+
101+
102+
@base.bootstrapped
103+
@pytest.mark.asyncio
104+
async def test_list_resources(event_loop):
105+
async with base.CleanModel() as model:
106+
resources = await model.charmhub.list_resources('postgresql')
107+
assert type(resources) == list and len(resources) > 0

0 commit comments

Comments
 (0)