feat(tests): IPv6 fixes
[csit.git] / resources / libraries / robot / nginx / default.robot
1 # Copyright (c) 2021 Intel 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 | Library | resources.libraries.python.InterfaceUtil
16 | Library | resources.libraries.python.NginxConfigGenerator
17 | Library | Collections
18
19 *** Keywords ***
20 | Apply Nginx configuration on DUT
21 | | [Documentation]
22 | | ... | Setup for suites which uses VCL or LDP Nginx on DUT.
23 | |
24 | | ... | *Arguments:*
25 | | ... | - dut - DUT node.
26 | | ... | Type: string
27 | | ... | - phy_cores - vpp used phy cores number.
28 | |
29 | | ... | *Example:*
30 | |
31 | | ... | \| Apply Nginx configuration on DUT \| ${dut} | ${phy_cores}
32 | |
33 | | [Arguments] | ${dut} | ${phy_cores}
34 | |
35 | | Import Library | resources.libraries.python.NginxConfigGenerator
36 | | ... | WITH NAME | nc_manager
37 | | Run Keyword | nc_manager.Set Node | ${dut}
38 | | Run Keyword | nc_manager.Set Nginx Path | ${packages_dir} | ${nginx_version}
39 | | Run Keyword | nc_manager.Add Worker Processes | ${phy_cores} | ${smt_used}
40 | | Run Keyword | nc_manager.Add Master Process
41 | | Run Keyword | nc_manager.Add Daemon
42 | | Run Keyword | nc_manager.Add Worker Rlimit Nofile
43 | | Run Keyword | nc_manager.Add Events Use
44 | | Run Keyword | nc_manager.Add Events Worker Connections
45 | | Run Keyword | nc_manager.Add Events Accept Mutex
46 | | Run Keyword | nc_manager.Add Events Multi Accept
47 | | Run Keyword | nc_manager.Add Http Access Log
48 | | Run Keyword | nc_manager.Add Http Include
49 | | Run Keyword | nc_manager.Add Http Default Type
50 | | Run Keyword | nc_manager.Add Http Sendfile
51 | | Run Keyword | nc_manager.Add Http Keepalive Timeout | ${keep_time}
52 | | Run Keyword If | ${keep_time} > 0
53 | | ... | nc_manager.Add Http Keepalive Requests | ${r_total}
54 | | Run Keyword | nc_manager.Add Http Server Listen | ${listen_port}
55 | | Run Keyword | nc_manager.Add Http Server Root
56 | | Run Keyword | nc_manager.Add Http Server Index
57 | | Run Keyword | nc_manager.Add Http Server Location | ${0}
58 | | Run Keyword | nc_manager.Add Http Server Location | ${64}
59 | | Run Keyword | nc_manager.Add Http Server Location | ${1024}
60 | | Run Keyword | nc_manager.Add Http Server Location | ${2048}
61 | | Run Keyword | nc_manager.Apply Config