File tree Expand file tree Collapse file tree
charm-base-charmcraft-yaml Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Copyright 2021 Canonical Ltd.
2+ # See LICENSE file for licensing details.
3+ type : charm
4+ bases :
5+ - build-on :
6+ - name : " ubuntu"
7+ channel : " 20.04"
8+ run-on :
9+ - name : " ubuntu"
10+ channel : " 20.04"
Original file line number Diff line number Diff line change 1+ options :
2+ status :
3+ type : string
4+ default : " active"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ status=" $( config-get status) "
4+
5+ if [[ " $status " == " error" ]]; then
6+ if [[ -e .errored ]]; then
7+ status=" active"
8+ else
9+ touch .errored
10+ exit 1
11+ fi
12+ fi
13+ status-set " $status "
Original file line number Diff line number Diff line change 1+ name : charm
2+ summary : " test"
3+ description : " test"
4+ maintainers : ["test"]
Original file line number Diff line number Diff line change @@ -158,6 +158,18 @@ async def test_deploy_local_charm(event_loop):
158158 assert model .units ['charm/0' ].workload_status == 'active'
159159
160160
161+ @base .bootstrapped
162+ @pytest .mark .asyncio
163+ async def test_deploy_local_charm_base_charmcraft_yaml (event_loop ):
164+ charm_path = HERE_DIR / 'charm-base-charmcraft-yaml'
165+
166+ async with base .CleanModel () as model :
167+ await model .deploy (str (charm_path ))
168+ assert 'charm' in model .applications
169+ await model .wait_for_idle (status = "active" )
170+ assert model .units ['charm/0' ].workload_status == 'active'
171+
172+
161173@base .bootstrapped
162174@pytest .mark .asyncio
163175async def test_wait_local_charm_blocked (event_loop ):
You can’t perform that action at this time.
0 commit comments