CSIT-23 Add ARP request test.
[csit.git] / tests / suites / lisp / lisp_api_untagged.robot
1 # Copyright (c) 2016 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 | Documentation | LISP API test.
16 | Library | resources.libraries.python.topology.Topology
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.Trace
19 | Library | resources.libraries.python.LispUtil
20 | Resource | resources/libraries/robot/default.robot
21 | Resource | resources/libraries/robot/interfaces.robot
22 | Resource | resources/libraries/robot/lisp/lisp_api.robot
23 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | 3_NODE_DOUBLE_LINK_TOPO
24 | ... | VM_ENV | HW_ENV
25 | Test Setup | Run Keywords | Setup all DUTs before test
26 | ...        | AND          | Setup all TGs before traffic script
27 | ...        | AND          | Update All Interface Data On All Nodes | ${nodes}
28 | Test Teardown | Show Packet Trace on All DUTs | ${nodes}
29
30 *** Variables ***
31 | ${locator_set_num}= | 3
32 | ${eid_ipv4_num}= | 4
33 | ${eid_ipv6_num}= | 3
34 | ${map_resolver_ipv4_num}= | 3
35 | ${map_resolver_ipv6_num}= | 2
36
37 *** Test Cases ***
38
39 | VPP can add and delete locator_set
40 | | [Documentation] | Test lisp locator_set API
41 | | ...             | Set locator_set and locator on the VPP node,
42 | | ...             | check the configured data and then remove it.
43 | | ...             | Check if all locator_set and locators was unset
44 | | ...             | from the VPP node.
45 | | ...
46 | | Given Lisp locator_set data is prepared
47 | | ... | ${nodes['DUT1']} | ${locator_set_num}
48 | | When Lisp locator_set data is set | ${nodes['DUT1']}
49 | | Then Lisp locator_set is set correct | ${nodes['DUT1']}
50 | | When Delete all lisp locator_set from VPP | ${nodes['DUT1']}
51 | | Then Lisp locator_set should be unset | ${nodes['DUT1']}
52
53 | VPP can add, reset and delete locator_set
54 | | [Documentation] | Test lisp locator_set API
55 | | ...             | Set locator_set and locator on the VPP node,
56 | | ...             | then reset locator_set and set it again.
57 | | ...             | Check the configured data and then remove it.
58 | | ...             | Check if all locator_set and locators was unset
59 | | ...             | from the VPP node.
60 | | ...
61 | | Given Lisp locator_set data use for test reset locator_set are prepared
62 | | ... | ${nodes['DUT1']} | ${locator_set_num}
63 | | When Lisp locator_set data is set | ${nodes['DUT1']}
64 | | Then Lisp locator_set is set correct | ${nodes['DUT1']}
65 | | When Delete all lisp locator_set from VPP | ${nodes['DUT1']}
66 | | Then Lisp locator_set should be unset | ${nodes['DUT1']}
67
68 | Vpp can add and delete eid address
69 | | [Documentation] | Test lisp eid API
70 | | ...             | Set lisp eid IP address on the VPP node,
71 | | ...             | check the configured data and then remove it.
72 | | ...             | Check if all eid IP address was unset
73 | | ...             | from the VPP node.
74 | | ...
75 | | Given Lisp eid address is prepared
76 | | ... | ${nodes['DUT1']} | ${eid_ipv4_num} | ${eid_ipv6_num}
77 | | When Lisp eid address is set | ${nodes['DUT1']}
78 | | Then Lisp eid address is set correct to eid table | ${nodes['DUT1']}
79 | | When Delete all lisp eid address from VPP | ${nodes['DUT1']}
80 | | Then Lisp eid table should be empty | ${nodes['DUT1']}
81
82 | Vpp can add and delete lisp map resolver address
83 | | [Documentation] | Test lisp map resolver address API
84 | | ...             | Set lisp map resolver address on the VPP node,
85 | | ...             | check the configured data and then remove it.
86 | | ...             | Check if all map resolver address was unset
87 | | ...             | from the VPP node.
88 | | ...
89 | | Given Lisp map resolver address is prepared | ${nodes['DUT1']}
90 | | ... | ${map_resolver_ipv4_num} | ${map_resolver_ipv6_num}
91 | | When Lisp map resolver address is set | ${nodes['DUT1']}
92 | | Then Lisp map resolver address is set correct | ${nodes['DUT1']}
93 | | When Delete all lisp map resolver address from VPP | ${nodes['DUT1']}
94 | | Then Lip map resolver address should be empty | ${nodes['DUT1']}