summaryrefslogtreecommitdiffstats
path: root/etc/testcase/yardstick.ha.neutron_l3_agent.yml
blob: 0af896467d1bd35a4f6dcb06adb90c2c8ba3105f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
##############################################################################
# Copyright (c) 2019 opnfv.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

---
yardstick.ha.neutron_l3_agent:
  name: yardstick.ha.neutron_l3_agent
  objective: OpenStack Controller Virtual Router Service High Availability.
  validate:
    type: yardstick
    testcase: opnfv_yardstick_tc058
    pre_condition:
      - 'source /etc/yardstick/openstack.creds &&
         openstack --insecure image create neutron-l3-agent_ha_image
           --disk-format qcow2 --container-format bare --public
           --file /home/opnfv/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': '/etc/yardstick/pod.yaml',
         'image': 'neutron-l3-agent_ha_image', 'flavor': 'neutron-l3-agent_ha_flavor'}'"
    post_condition:
      - '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
      - yardstick.ha.neutron_l3_agent.out
    dest_archive_files:
      - ha_logs/yardstick.ha.neutron_l3_agent.log
      - ha_logs/yardstick.ha.neutron_l3_agent.out
    check_results_files:
      - ha_logs/yardstick.ha.neutron_l3_agent.out
    portal_key_file: ha_logs/yardstick.ha.neutron_l3_agent.log
    sub_testcase_list: