HC Test: update HC config file locations
[csit.git] / tests / vpp / func / honeycomb / mgmt-cfg-snat44-apihc-apivat-func.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 *** Variables***
15 | ${interface}= | ${node['interfaces']['port1']['name']}
16
17 *** Settings ***
18 | Resource | resources/libraries/robot/shared/default.robot
19 | Resource | resources/libraries/robot/honeycomb/nat.robot
20 | Resource | resources/libraries/robot/honeycomb/honeycomb.robot
21 | Variables | resources/test_data/honeycomb/nat.py | ${node} | ${interface}
22 | ...
23 | Documentation | *Honeycomb NAT test suite.*
24 | ...
25 | Suite Setup | Set Up Honeycomb Functional Test Suite | ${node}
26 | ...
27 | Suite Teardown | Tear Down Honeycomb Functional Test Suite | ${node}
28 | ...
29 | Force Tags | HC_FUNC
30
31 *** Test Cases ***
32 | TC01: Honeycomb configures NAT entry
33 | | [Documentation] | Honeycomb configures a static NAT entry.
34 | | ...
35 | | Given NAT Operational Data From Honeycomb Should Be empty
36 | | ... | ${node} | ${nat_empty}
37 | | When Honeycomb Configures NAT Entry | ${node} | ${entry1}
38 | | Then NAT Entries From Honeycomb Should Be | ${node} | ${entry1}
39
40 | TC02: Honeycomb removes NAT entry
41 | | [Documentation] | Honeycomb removes a configured static NAT entry.
42 | | ...
43 | | Given NAT Entries From Honeycomb Should Be | ${node} | ${entry1}
44 | | When Honeycomb Configures NAT Entry | ${node} | ${NONE}
45 | | Then NAT Operational Data From Honeycomb Should Be empty
46 | | ... | ${node} | ${nat_empty}
47
48 | TC03: Honeycomb configures multiple NAT entries
49 | | [Documentation] | Honeycomb configures two static NAT entries.
50 | | ...
51 | | [Teardown] | Honeycomb Configures NAT Entry | ${node} | ${NONE}
52 | | ...
53 | | Given NAT Operational Data From Honeycomb Should Be empty
54 | | ... | ${node} | ${nat_empty}
55 | | When Honeycomb Configures NAT Entry | ${node} | ${entry1} | ${0} | ${1}
56 | | And Honeycomb Configures NAT Entry | ${node} | ${entry2} | ${0} | ${2}
57 | | Then NAT Entries From Honeycomb Should Be
58 | | ... | ${node} | ${entry1_2_oper} | ${0}
59
60 | TC04: Honeycomb enables NAT on interface - inbound
61 | | [Documentation] | Honeycomb configures NAT on an interface\
62 | | ... | in inbound direction.
63 | | ...
64 | | Given NAT Interface Operational Data From Honeycomb Should Be Empty
65 | | ... | ${node} | ${interface} | inbound
66 | | And NAT Interface Operational Data From Honeycomb Should Be Empty
67 | | ... | ${node} | ${interface} | outbound
68 | | When Honeycomb Configures NAT On Interface
69 | | ... | ${node} | ${interface} | inbound
70 | | Then NAT Interface Operational Data From Honeycomb Should Be
71 | | ... | ${node} | ${interface} | inbound
72 | | And NAT Interface Operational Data From Honeycomb Should Be empty
73 | | ... | ${node} | ${interface} | outbound
74
75 | TC05: Honeycomb removes NAT interface configuration
76 | | [Documentation] | Honeycomb removes NAT configuration from an interface.
77 | | ...
78 | | Given NAT Interface Operational Data From Honeycomb Should Be
79 | | ... | ${node} | ${interface} | inbound
80 | | And NAT Interface Operational Data From Honeycomb Should Be empty
81 | | ... | ${node} | ${interface} | outbound
82 | | When Honeycomb removes NAT interface configuration
83 | | ... | ${node} | ${interface} | inbound
84 | | Then NAT Interface Operational Data From Honeycomb Should Be empty
85 | | ... | ${node} | ${interface} | inbound
86 | | And NAT Interface Operational Data From Honeycomb Should Be empty
87 | | ... | ${node} | ${interface} | outbound
88
89 | TC06: Honeycomb enables NAT on interface - outbound
90 | | [Documentation] | Honeycomb configures NAT on an interface\
91 | | ... | in outbound direction.
92 | | ...
93 | | [Teardown] | Honeycomb removes NAT interface configuration
94 | | ... | ${node} | ${interface} | outbound
95 | | ...
96 | | Given NAT Interface Operational Data From Honeycomb Should Be empty
97 | | ... | ${node} | ${interface} | inbound
98 | | And NAT Interface Operational Data From Honeycomb Should Be empty
99 | | ... | ${node} | ${interface} | outbound
100 | | When Honeycomb Configures NAT on Interface
101 | | ... | ${node} | ${interface} | outbound
102 | | Then NAT Interface Operational Data From Honeycomb Should Be empty
103 | | ... | ${node} | ${interface} | inbound
104 | | And NAT Interface Operational Data From Honeycomb Should Be
105 | | ... | ${node} | ${interface} | outbound