aboutsummaryrefslogtreecommitdiffstats
path: root/tests/opnfv/test_suites/opnfv_os-onos-nofeature-noha_daily.yaml
blob: 94390d5253a2cb8d279466cb081f8a9d3739b338 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
# 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
##############################################################################
---
# os-onos-nofeature-noha daily task suite

schema: "yardstick:suite:0.1"

name: "os-onos-nofeature-noha"
test_cases_dir: "tests/opnfv/test_cases/"
test_cases:
-
  file_name: opnfv_yardstick_tc002.yaml
-
  file_name: opnfv_yardstick_tc005.yaml
-
  file_name: opnfv_yardstick_tc010.yaml
-
  file_name: opnfv_yardstick_tc011.yaml
-
  file_name: opnfv_yardstick_tc012.yaml
-
  file_name: opnfv_yardstick_tc014.yaml
-
  file_name: opnfv_yardstick_tc037.yaml
-
  file_name: opnfv_yardstick_tc055.yaml
  constraint:
      installer: compass
      pod: huawei-pod1
  task_args:
      huawei-pod1: '{"file": "etc/yardstick/nodes/compass_sclab_physical/pod.yaml",
      "host": "node5.yardstick-TC055"}'
-
  file_name: opnfv_yardstick_tc063.yaml
  constraint:
      installer: compass
      pod: huawei-pod1
  task_args:
      huawei-pod1: '{"file": "etc/yardstick/nodes/compass_sclab_physical/pod.yaml",
      "host": "node5.yardstick-TC063"}'
-
  file_name: opnfv_yardstick_tc069.yaml
-
  file_name: opnfv_yardstick_tc070.yaml
-
  file_name: opnfv_yardstick_tc071.yaml
-
  file_name: opnfv_yardstick_tc072.yaml
-
  file_name: opnfv_yardstick_tc075.yaml
  constraint:
      installer: compass
      pod: huawei-pod1
  task_args:
      huawei-pod1: '{"file": "etc/yardstick/nodes/compass_sclab_physical/pod.yaml",
      "host": "node1.LF"}'
">} =~ ,"odl-" ]] && return 0 return 1 } # Check that the bridge is up and running function wait_for_active_bridge { local BRIDGE=$1 local SLEEP_INTERVAL=$2 local MAX_WAIT=$3 echo "Waiting for bridge $BRIDGE to be available..." local testcmd="sudo ovs-vsctl list Bridge | grep $BRIDGE" test_with_retry "$testcmd" \ "$BRIDGE did not become available in $MAX_WAIT seconds." \ $MAX_WAIT $SLEEP_INTERVAL echo "Bridge $BRIDGE is available." } # Move the public IP addresses to the OVS bridge on startup, # or back to the public interface on cleanup function move_interface_addresses { local direction=$1 if [[ -n "$ODL_PROVIDER_MAPPINGS" ]]; then local VETH_INTERFACE=$(echo $ODL_PROVIDER_MAPPINGS | cut -d ':' -f1) local PHYSICAL_INTERFACE=$(echo $ODL_PROVIDER_MAPPINGS | cut -d ':' -f2) if [[ "$direction" == "into_bridge" ]]; then _move_neutron_addresses_route "$PHYSICAL_INTERFACE" "$VETH_INTERFACE" True False "inet" if _has_public_ipv6_address "$PHYSICAL_INTERFACE"; then _move_neutron_addresses_route "$PHYSICAL_INTERFACE" "$VETH_INTERFACE" False False "inet6" fi elif [[ "$direction" == "outof_bridge" ]]; then _move_neutron_addresses_route "$VETH_INTERFACE" "$PHYSICAL_INTERFACE" False True "inet" if _has_public_ipv6_address "$VETH_INTERFACE"; then _move_neutron_addresses_route "$VETH_INTERFACE" "$PHYSICAL_INTERFACE" False False "inet6" fi fi fi } # Check that the interface has an IP v6 address which # is routable on external network function _has_public_ipv6_address { local interface=$1 local interface_public_ipv6_addresses=$(ip -f inet6 a s dev "$interface" | grep -c 'global') echo "$interface public IPv6 address count: $interface_public_ipv6_addresses" if [[ "$interface_public_ipv6_addresses" != 0 ]]; then return 0 else return 1 fi }