CSIT-664: Refactor setups and teardowns
[csit.git] / tests / func / honeycomb / mgmt-cfg-pbb-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 | ${super_if}= | ${node['interfaces']['port1']['name']}
16
17 *** Settings ***
18 | Resource | resources/libraries/robot/default.robot
19 | Resource | resources/libraries/robot/honeycomb/honeycomb.robot
20 | Resource | resources/libraries/robot/honeycomb/provider_backbone_bridge.robot
21 | Variables | resources/test_data/honeycomb/pbb/pbb.py
22 | ...
23 | Documentation | *Honeycomb provider backbone bridge test suite.*
24 | ...
25 | Suite Teardown | Run Keyword If Any Tests Failed
26 | ... | Restart Honeycomb and VPP | ${node}
27 | ...
28 | Force Tags | HC_FUNC
29
30 *** Test Cases ***
31 # TODO: add verifications once operational data or VPP dump is available.
32 | TC01: Honeycomb sets PBB sub-interface
33 | | [Documentation] | Honeycomb creates a new PBB sub-interface.
34 | | ...
35 | | Honeycomb creates PBB sub-interface | ${node} | ${super_if}
36 | | ... | ${cfg_pbb_sub_if_1}
37
38 | TC02: Honeycomb modifies existing PBB sub-interface
39 | | [Documentation] | Honeycomb modifies an existing PBB sub-interface.
40 | | ...
41 | | Honeycomb creates PBB sub-interface | ${node} | ${super_if}
42 | | ... | ${cfg_pbb_sub_if_1_mod}
43
44 | TC03: Honeycomb deletes existing PBB sub-interface
45 | | [Documentation] | Honeycomb deletes an existing PBB sub-interface.
46 | | ...
47 | | Honeycomb removes PBB sub-interface
48 | | ... | ${node} | ${super_if}
49
50 | TC04: Honeycomb fails to set wrong destination-address for new PBB sub-interface
51 | | [Documentation] | Honeycomb fails to create a new PBB sub-interface with\
52 | | ... | wrong value of parameter destination-address, type yang:mac-address.
53 | | ...
54 | | Honeycomb fails to create PBB sub-interface | ${node} | ${super_if}
55 | | ... | ${cfg_pbb_sub_if_wrong_dst_addr}
56
57 | TC05: Honeycomb fails to set wrong source-address for new PBB sub-interface
58 | | [Documentation] | Honeycomb fails to create a new PBB sub-interface with\
59 | | ... | wrong value of parameter source-address, type yang:mac-address.
60 | | ...
61 | | Honeycomb fails to create PBB sub-interface | ${node} | ${super_if}
62 | | ... | ${cfg_pbb_sub_if_wrong_src_addr}
63
64 | TC06: Honeycomb fails to set wrong b-vlan-tag-vlan-id for new PBB sub-interface
65 | | [Documentation] | Honeycomb fails to create a new PBB sub-interface with\
66 | | ... | wrong value of parameter b-vlan-tag-vlan-id, type uint16, 12 bit\
67 | | ... | range, range 1..4095.
68 | | ...
69 | | Honeycomb fails to create PBB sub-interface | ${node} | ${super_if}
70 | | ... | ${cfg_pbb_sub_if_wrong_vlan_tag}
71
72 | TC07: Honeycomb fails to set wrong i-tag-isid for new PBB sub-interface
73 | | [Documentation] | Honeycomb fails to create a new PBB sub-interface with\
74 | | ... | wrong value of parameter i-tag-isid, type uint32, 24 bit range,\
75 | | ... | range 1..16777215.
76 | | ...
77 | | Honeycomb fails to create PBB sub-interface | ${node} | ${super_if}
78 | | ... | ${cfg_pbb_sub_if_wrong_i_tag}
79
80 | TC08: Honeycomb fails to create new PBB sub-interface without vlan tag
81 | | [Documentation] | Honeycomb fails to create a new PBB sub-interface without\
82 | | ... | parameter b-vlan-tag-vlan-id.
83 | | ...
84 | | Honeycomb fails to create PBB sub-interface | ${node} | ${super_if}
85 | | ... | ${cfg_pbb_sub_if_no_vlan_tag}