Add Tacker monitor test with new template

Adding tacker functional test for monitoring using new tosca template

Closes-Bug: 1518138

Change-Id: Idb7affa4c570952a1c295234e58b7a157878dab6
(cherry picked from commit 26bb93d9ff)
This commit is contained in:
Santosh Kodicherla 2015-11-20 00:52:22 +00:00
parent 28c65dc32b
commit 07729a48c6
3 changed files with 53 additions and 2 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
template_name: sample-vnfd-nonparam-respawn
template_name: sample-vnfd-monitoring
description: demo-example
service_properties:

View File

@ -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')