FIX: Ligato tests
[csit.git] / tests / kubernetes / perf / __init__.robot
1 # Copyright (c) 2017 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Variables | resources/libraries/python/topology.py
16 | Library | resources.libraries.python.CpuUtils
17 | Library | resources.libraries.python.DUTSetup
18 | Library | resources.libraries.python.InterfaceUtil
19 | Library | resources.libraries.python.KubernetesUtils
20 | Library | resources.libraries.python.NodePath
21 | Library | resources.libraries.python.SchedUtils
22 | Library | resources.libraries.python.SetupFramework
23 | Library | resources.libraries.python.topology.Topology
24 | Library | Collections
25 | Suite Setup | Run Keywords | Setup performance global Variables
26 | ...         | AND          | Setup Framework | ${nodes}
27 | ...         | AND          | Setup Kubernetes on all duts | ${nodes}
28 | ...         | AND          | Get CPU Layout from all nodes | ${nodes}
29 | ...         | AND          | Update all numa nodes | ${nodes}
30 | ...                        | skip_tg=${True}
31 | ...         | AND          | Update NIC interface names on all duts | ${nodes}
32 | ...
33 | Suite Teardown | Destroy Kubernetes on all duts | ${nodes}
34
35 *** Keywords ***
36 | Setup performance global Variables
37 | | [Documentation]
38 | | ... | Setup suite Variables. Variables are used across performance testing.
39 | | ...
40 | | ... | _NOTE:_ This KW sets following suite variables:
41 | | ... | - perf_trial_duration - Duration of traffic run [s]
42 | | ... | - perf_pdr_loss_acceptance - Loss acceptance treshold
43 | | ... | - perf_pdr_loss_acceptance_type - Loss acceptance treshold type
44 | | ...
45 | | Set Global Variable | ${perf_trial_duration} | 10
46 | | Set Global Variable | ${perf_pdr_loss_acceptance} | 0.5
47 | | Set Global Variable | ${perf_pdr_loss_acceptance_type} | percentage
48 | | Set Global Variable | ${pkt_trace} | ${False}
49 | | @{plugins_to_disable}= | Create List | acl_plugin.so | flowprobe_plugin.so
50 | | ... | gtpu_plugin.so | ila_plugin.so | ioam_plugin.so | ixge_plugin.so
51 | | ... | kubeproxy_plugin.so | l2e_plugin.so | lb_plugin.so
52 | | ... | nat_plugin.so | pppoe_plugin.so | sixrd_plugin.so | stn_plugin.so
53 | | Set Global Variable | @{plugins_to_disable}