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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
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
20 | Documentation | Test setup and test teardown of FDS functional tests.
23 | Set up FDS functional test
27 | | ... | *Arguments:*
28 | | ... | - nodes - Nodes to reset VAT command history for. Type: dictionary
32 | | ... | \| Set up FDS functional test \| ${nodes} \|
34 | | [Arguments] | ${nodes}
36 | | Configure all DUTs before test
38 | | Configure all TGs for traffic script
39 | | Reset VAT History On All DUTs | ${nodes}
41 | Tear down FDS functional test
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
54 | | ... | \| Tear down FDS functional test \| ${nodes}\
55 | | ... | \| ${dut1_node} \| ${qemu_node1} \| ${dut2_node} \| ${qemu_node2} \|
57 | | [Arguments] | ${nodes} | ${dut1_node} | ${qemu_node1} | ${dut2_node}
58 | | ... | ${qemu_node2}
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