projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Bug 2307 - Invalid references of vdu-id, monitoring-param, storage and compute...
[osm/NBI.git]
/
osm_nbi
/
tests
/
test_pkg_descriptors.py
diff --git
a/osm_nbi/tests/test_pkg_descriptors.py
b/osm_nbi/tests/test_pkg_descriptors.py
index
d77b79f
..
4dea8e4
100644
(file)
--- a/
osm_nbi/tests/test_pkg_descriptors.py
+++ b/
osm_nbi/tests/test_pkg_descriptors.py
@@
-118,7
+118,17
@@
db_vnfds_text = """
position: 2
virtual-interface:
type: VIRTIO
position: 2
virtual-interface:
type: VIRTIO
- - id: dataVM
+ - alarm:
+ - actions:
+ alarm:
+ - url: https://webhook.site
+ insufficient-data:
+ - url: https://webhook.site
+ ok:
+ - url: https://webhook.site
+ alarm-id: alarm-1
+ vnf-monitoring-param-ref: dataVM_cpu_util
+ id: dataVM
name: dataVM
sw-image-desc: hackfest3-mgmt
virtual-compute-desc: data-compute
name: dataVM
sw-image-desc: hackfest3-mgmt
virtual-compute-desc: data-compute
@@
-179,7
+189,7
@@
db_vnfds_text = """
deltas:
- id: delta1
vdu-delta:
deltas:
- id: delta1
vdu-delta:
- - id:
vdudelta1
+ - id:
dataVM
number-of-instances: 1
scaling-policy:
- name: auto_cpu_util_above_threshold
number-of-instances: 1
scaling-policy:
- name: auto_cpu_util_above_threshold
@@
-199,6
+209,15
@@
db_vnfds_text = """
vnf-config-primitive-name-ref: touch
- trigger: pre-scale-in
vnf-config-primitive-name-ref: touch
vnf-config-primitive-name-ref: touch
- trigger: pre-scale-in
vnf-config-primitive-name-ref: touch
+ healing-aspect:
+ - id: heal_dataVM
+ healing-policy:
+ - vdu-id: dataVM
+ event-name: heal-alarm
+ recovery-type: automatic
+ action-on-recovery: REDEPLOY_ONLY
+ cooldown-time: 180
+ day1: false
lcm-operations-configuration:
operate-vnf-op-config:
day1-2:
lcm-operations-configuration:
operate-vnf-op-config:
day1-2: