summaryrefslogtreecommitdiffstats
path: root/etc/testcase/ha.neutron_l3_agent.yml
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@ericsson.com>2018-06-15 22:20:01 +0200
committerDan Xu <xudan16@huawei.com>2018-06-19 04:14:05 +0000
commit6d45697ac15a71300752256515625f03a8808389 (patch)
tree26334f3dca508a2aa4f7e2ec3ccb1b6a520727f8 /etc/testcase/ha.neutron_l3_agent.yml
parent3bee66ed9be2e78b1c11b095deb2205ce6ff4865 (diff)
Create specific flavor for neutron-l3-agent HA test
The neutron-l3-agent test assumes that a default image and flavor are available. On current OPNFV deployments, these resources do not exist anymore by default and hence the test case fails. This patch enables Dovetail to create a specific flavor as part of the test case config. This is temporary workaround until the test case itself takes care of checking and creating all resources needed. A ticket for the HA project has been created accordingly: https://jira.opnfv.org/browse/HA-36 Change-Id: I6523d8411fe853a5645566b2fabe1409b5715491 Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Diffstat (limited to 'etc/testcase/ha.neutron_l3_agent.yml')
-rw-r--r--etc/testcase/ha.neutron_l3_agent.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/etc/testcase/ha.neutron_l3_agent.yml b/etc/testcase/ha.neutron_l3_agent.yml
index f5170d4f..a4daad7e 100644
--- a/etc/testcase/ha.neutron_l3_agent.yml
+++ b/etc/testcase/ha.neutron_l3_agent.yml
@@ -6,17 +6,21 @@ dovetail.ha.neutron_l3_agent:
type: yardstick
testcase: opnfv_yardstick_tc058
pre_condition:
- - 'source /etc/yardstick/openstack.creds && openstack --insecure image create cirros-ha-11
- --disk-format qcow2 --container-format bare --public
- --file /home/opnfv/userconfig/images/cirros-0.4.0-x86_64-disk.img'
+ - 'source /etc/yardstick/openstack.creds &&
+ openstack --insecure image create neutron-l3-agent_ha_image
+ --disk-format qcow2 --container-format bare --public
+ --file /home/opnfv/userconfig/images/cirros-0.4.0-x86_64-disk.img &&
+ openstack --insecure flavor create --ram 512 --vcpu 1 --disk 1 neutron-l3-agent_ha_flavor'
cmds:
- "cd /home/opnfv/repos/yardstick && source /etc/yardstick/openstack.creds &&
yardstick task start tests/opnfv/test_cases/{{validate_testcase}}.yaml
--output-file /tmp/yardstick/{{testcase}}.out
--task-args '{'file': '/home/opnfv/userconfig/pre_config/pod.yaml',
- 'image': 'cirros-ha-11', 'flavor': 'm1.tiny'}'"
+ 'image': 'neutron-l3-agent_ha_image', 'flavor': 'neutron-l3-agent_ha_flavor'}'"
post_condition:
- - 'source /etc/yardstick/openstack.creds && openstack --insecure image delete cirros-ha-11'
+ - 'source /etc/yardstick/openstack.creds &&
+ openstack --insecure image delete neutron-l3-agent_ha_image &&
+ openstack --insecure flavor delete neutron-l3-agent_ha_flavor'
report:
source_archive_files:
- yardstick.log