summaryrefslogtreecommitdiffstats
path: root/etc/conf/bottlenecks_config.yml
blob: 005a04e322f235a61d58f21cf18b42a0001ecf16 (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
---
bottlenecks:
  image_name: opnfv/bottlenecks
  docker_tag: stable
  opts: '-id --privileged=true'
  config:
    dir: '/home/opnfv/userconfig'
  pre_condition:
    - 'source /tmp/admin_rc.sh &&
       (openstack --insecure image list | grep cirros-0.3.5 ||
       openstack --insecure image create cirros-0.3.5
       --disk-format qcow2 --container-format bare
       --file /home/opnfv/userconfig/images/cirros-0.3.5-x86_64-disk.img)'
    - 'source /tmp/admin_rc.sh &&
       (openstack --insecure flavor list | grep yardstick-flavor ||
       openstack --insecure flavor create --id 100
       --ram 1024 --disk 3 --vcpus 1 yardstick-flavor)'
  cmds:
    - 'python /home/opnfv/bottlenecks/testsuites/run_testsuite.py testcase {{validate_testcase}} True'
  post_condition:
    - 'source /tmp/admin_rc.sh &&
       (! openstack --insecure image list | grep cirros-0.3.5 ||
       openstack --insecure image delete cirros-0.3.5)'
    - 'source /tmp/admin_rc.sh &&
       (! openstack --insecure flavor list | grep yardstick-flavor ||
       openstack --insecure flavor delete yardstick-flavor)'
  result:
    dir: '/tmp'
    file_path: 'bottlenecks.log'
  openrc: '/tmp/admin_rc.sh'
  extra_container:
    - 'Bottlenecks-Yardstick'
    - 'Bottlenecks-ELK'