Fix bug 601 25/7325/1
authorAdam Israel <adam.israel@canonical.com>
Fri, 15 Mar 2019 19:28:47 +0000 (15:28 -0400)
committerAdam Israel <adam.israel@canonical.com>
Fri, 15 Mar 2019 19:28:47 +0000 (15:28 -0400)
commit7bf2f4d5ba51d8a6909a8709aeda200ddb153b03
tree1a8ceb63da8130ddcab092bcdb394b53c8d0e895
parent6d84dbd8746388114361e09300697da471de20ca
Fix bug 601

This fixes bug 601, where a charm in a broken state would fail to be
removed.

This builds of of the new DestroyNetworkService method, which will
remove a model containing a network service.

There is no way, currently, to resolve errors on an individual charm
through the Juju API (client), but removing the model will force the
removal of a broken charm.

Change-Id: I47f41991ed444395061b5a20e5a51059950e5200
Signed-off-by: Adam Israel <adam.israel@canonical.com>
14 files changed:
n2vc/vnf.py
tests/base.py
tests/charms/layers/broken/README.md [new file with mode: 0644]
tests/charms/layers/broken/actions.yaml [new file with mode: 0644]
tests/charms/layers/broken/actions/touch [new file with mode: 0755]
tests/charms/layers/broken/config.yaml [new file with mode: 0644]
tests/charms/layers/broken/icon.svg [new file with mode: 0644]
tests/charms/layers/broken/layer.yaml [new file with mode: 0644]
tests/charms/layers/broken/metadata.yaml [new file with mode: 0644]
tests/charms/layers/broken/metrics.yaml [new file with mode: 0644]
tests/charms/layers/broken/reactive/simple.py [new file with mode: 0644]
tests/charms/layers/broken/tests/00-setup [new file with mode: 0644]
tests/charms/layers/broken/tests/10-deploy [new file with mode: 0644]
tests/integration/test_broken_charm.py [new file with mode: 0644]