Integration test for metrics + bug fix 08/6408/1
authorAdam Israel <adam.israel@canonical.com>
Wed, 8 Aug 2018 16:54:55 +0000 (12:54 -0400)
committerAdam Israel <adam.israel@canonical.com>
Wed, 8 Aug 2018 16:59:39 +0000 (12:59 -0400)
commit5afe05434f65dabf514636eff28cbb2069ccb419
tree86192d73b32d30dd44199a71e49ec84622f5e237
parentb09436613925b2eb334c10f219b743868e4b3fe5
Integration test for metrics + bug fix

This commit:
- adds the beginnings of an integration testing framework
- adds an integration test to exercise metric collection
- adds a test charm with metrics collection
- fixes a potential bug that can cause N2VC to fail if no
initial-config-primitive is specified in the VNF descriptor

Signed-off-by: Adam Israel <adam.israel@canonical.com>
16 files changed:
n2vc/vnf.py
tests/charms/layers/metrics-ci/README.ex [new file with mode: 0755]
tests/charms/layers/metrics-ci/config.yaml [new file with mode: 0755]
tests/charms/layers/metrics-ci/deps/layer/basic [new submodule]
tests/charms/layers/metrics-ci/deps/layer/metrics [new submodule]
tests/charms/layers/metrics-ci/deps/layer/options [new submodule]
tests/charms/layers/metrics-ci/icon.svg [new file with mode: 0755]
tests/charms/layers/metrics-ci/layer.yaml [new file with mode: 0755]
tests/charms/layers/metrics-ci/metadata.yaml [new file with mode: 0755]
tests/charms/layers/metrics-ci/metrics.yaml [new file with mode: 0755]
tests/charms/layers/metrics-ci/reactive/metrics_ci.py [new file with mode: 0755]
tests/charms/layers/metrics-ci/tests/00-setup [new file with mode: 0755]
tests/charms/layers/metrics-ci/tests/10-deploy [new file with mode: 0755]
tests/integration/__init__.py [new file with mode: 0644]
tests/integration/test_metrics.py [new file with mode: 0644]
tests/utils.py