Mark HC BGP test suite as HC_REST_ONLY
[csit.git] / resources / libraries / robot / fds / default.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 | Resource | resources/libraries/robot/shared/default.robot
16 | Resource | resources/libraries/robot/vm/double_qemu_setup.robot
17 | Library | resources.libraries.python.VatHistory
18 | Library | resources.libraries.python.Trace
19 | ...
20 | Documentation | Test setup and test teardown of FDS functional tests.
21
22 *** Keywords ***
23 | Set up FDS functional test
24 | | [Documentation]
25 | | ... |
26 | | ...
27 | | ... | *Arguments:*
28 | | ... | - nodes - Nodes to reset VAT command history for. Type: dictionary
29 | | ...
30 | | ... | *Example:*
31 | | ...
32 | | ... | \| Set up FDS functional test \| ${nodes} \|
33 | | ...
34 | | [Arguments] | ${nodes}
35 | | ...
36 | | Configure all DUTs before test
37 | | Save VPP PIDs
38 | | Configure all TGs for traffic script
39 | | Reset VAT History On All DUTs | ${nodes}
40
41 | Tear down FDS functional test
42 | | [Documentation]
43 | | ... |
44 | | ...
45 | | ... | *Arguments:*
46 | | ... | - nodes - Nodes to reset VAT command history for. Type: dictionary
47 | | ... | - dut1_node - Node nr 1 where to clean qemu. Type: dictionary
48 | | ... | - qemu_node1 - VM nr 1 node info dictionary. Type: string
49 | | ... | - dut2_node - Node nr 2 where to clean qemu. Type: dictionary
50 | | ... | - qemu_node2 - VM nr 2 node info dictionary. Type: string
51 | | ...
52 | | ... | *Example:*
53 | | ...
54 | | ... | \| Tear down FDS functional test \| ${nodes}\
55 | | ... | \| ${dut1_node} \| ${qemu_node1} \| ${dut2_node} \| ${qemu_node2} \|
56 | | ...
57 | | [Arguments] | ${nodes} | ${dut1_node} | ${qemu_node1} | ${dut2_node}
58 | | ... | ${qemu_node2}
59 | | ...
60 | | Show Packet Trace on All DUTs | ${nodes}
61 | | Show VAT History On All DUTs | ${nodes}
62 | | Tear down QEMU | ${dut1_node} | ${qemu_node1} | qemu_node1
63 | | Tear down QEMU | ${dut2_node} | ${qemu_node2} | qemu_node2
64 | | Verify VPP PID in Teardown