Merge "Add Tacker monitor test with new template"
This commit is contained in:
commit
fb1c08adc5
|
@ -0,0 +1,46 @@
|
|||
template_name: sample-vnfd-monitoring-new-template
|
||||
description: demo-example
|
||||
|
||||
service_properties:
|
||||
Id: sample-vnfd
|
||||
vendor: tacker
|
||||
version: 1
|
||||
|
||||
vdus:
|
||||
vdu1:
|
||||
id: vdu1
|
||||
vm_image: cirros-0.3.4-x86_64-uec
|
||||
instance_type: m1.tiny
|
||||
user_data_format: RAW
|
||||
user_data: |
|
||||
#!/bin/sh
|
||||
df -h > /home/cirros/diskinfo
|
||||
sleep 90
|
||||
sudo ifdown eth0
|
||||
|
||||
network_interfaces:
|
||||
management:
|
||||
network: net_mgmt
|
||||
management: true
|
||||
pkt_in:
|
||||
network: net0
|
||||
pkt_out:
|
||||
network: net1
|
||||
|
||||
placement_policy:
|
||||
availability_zone: nova
|
||||
|
||||
auto-scaling: noop
|
||||
monitoring_policy:
|
||||
ping:
|
||||
monitoring_params:
|
||||
monitoring_delay: 45
|
||||
count: 3
|
||||
interval: .5
|
||||
timeout: 2
|
||||
actions:
|
||||
failure: respawn
|
||||
|
||||
config:
|
||||
param0: key0
|
||||
param1: key1
|
|
@ -1,4 +1,4 @@
|
|||
template_name: sample-vnfd-nonparam-respawn
|
||||
template_name: sample-vnfd-monitoring
|
||||
description: demo-example
|
||||
|
||||
service_properties:
|
|
@ -53,7 +53,7 @@ class VnfTestPingMonitor(base.BaseTackerTest):
|
|||
|
||||
def test_create_delete_vnf_monitoring(self):
|
||||
self._test_vnf_with_monitoring(
|
||||
'sample_vnfd_no_param_monitoring_respawn.yaml',
|
||||
'sample-vnfd-single-vdu-monitoring.yaml',
|
||||
'ping monitor vnf')
|
||||
|
||||
def test_create_delete_vnf_http_monitoring(self):
|
||||
|
@ -65,3 +65,8 @@ class VnfTestPingMonitor(base.BaseTackerTest):
|
|||
self._test_vnf_with_monitoring(
|
||||
'sample-vnfd-multi-vdu-monitoring.yaml',
|
||||
'multi vdu ping monitor vnf')
|
||||
|
||||
def test_create_delete_vnf_monitoring_new_template(self):
|
||||
self._test_vnf_with_monitoring(
|
||||
'sample-vnfd-single-vdu-monitoring-new-template.yaml',
|
||||
'ping monitor vnf new template')
|
||||
|
|
Loading…
Reference in New Issue