Skip to content

Commit d266a06

Browse files
committed
Changes
2 parents 0de9d67 + e684942 commit d266a06

File tree

3 files changed

+139
-338
lines changed

3 files changed

+139
-338
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,148 +1,60 @@
11
{
2-
"STP_GLOBAL_CONFIG_TEST": {
2+
"STP_GLOBAL_VALID_CONFIG_TEST": {
33
"desc": "Configure STP globally with valid mode (mst or pvst)."
44
},
55
"STP_GLOBAL_INVALID_PRIORITY": {
6-
"desc": "Configure an invalid priority value in the STP global settings.",
6+
"desc": "Configure an invalid priority value in STP global settings.",
77
"eStrKey": "InvalidValue",
8-
"eStr": ["priority"]
8+
"eStr": ["Invalid Bridge Priority value."]
99
},
1010
"STP_GLOBAL_INVALID_MODE_TEST": {
1111
"desc": "Configure STP globally with an invalid mode.",
1212
"eStrKey": "InvalidSTPMode",
1313
"eStr": ["Invalid STP mode value. Valid values are 'mst' or 'pvst'."]
1414
},
15-
"STP_GLOBAL_CONFIG_NO_MODE_NEG_TEST": {
16-
"desc": "Configure STP globally without specifying a mode.",
17-
"eStrKey": "Mandatory",
18-
"eStr": ["STP mode must be specified."]
19-
},
20-
"STP_GLOBAL_INVALID_ROOTGUARD_TIMEOUT": {
21-
"desc": "Configure an invalid root guard timeout in global STP settings.",
22-
"eStrKey": "InvalidRootguardTimeout",
23-
"eStr": ["Root-guard Timeout must be between 5 and 600 seconds."]
15+
"STP_GLOBAL_ROOTGUARD_TIMEOUT_MST_NEG_TEST": {
16+
"desc": "Configure rootguard timeout in MST mode.",
17+
"eStrKey": "stp-invalid",
18+
"eStr": ["Configuration not allowed in MST mode"]
2419
},
2520
"STP_VLAN_VALID_CONFIG_TEST": {
26-
"desc": "Configure PVST VLAN with valid parameters (priority and VLAN ID)."
21+
"desc": "Configure PVST VLAN with valid parameters (vlanid and priority)."
2722
},
28-
"STP_VLAN_INVALID_VLAN_ID_NEG_TEST": {
23+
"STP_VLAN_INVALID_ID_TEST": {
2924
"desc": "Configure PVST VLAN with an invalid VLAN ID.",
30-
"eStrKey": "InvalidVlanID",
31-
"eStr": ["VLAN ID must be between 1 and 4095."]
32-
},
33-
"STP_VLAN_INVALID_PRIORITY_NEG_TEST": {
34-
"desc": "Configure PVST VLAN with an invalid bridge priority.",
35-
"eStrKey": "InvalidPriority",
36-
"eStr": ["Bridge priority must be between 0 and 61440."]
37-
},
38-
"STP_VLAN_MISSING_PRIORITY_NEG_TEST": {
39-
"desc": "Configure PVST VLAN without specifying priority.",
40-
"eStrKey": "Mandatory",
41-
"eStr": ["Bridge priority must be specified for PVST VLAN."]
42-
},
43-
"STP_VLAN_DUPLICATE_CONFIG_NEG_TEST": {
44-
"desc": "Configure PVST VLAN with a duplicate VLAN ID.",
45-
"eStrKey": "DuplicateVlanID",
46-
"eStr": ["Duplicate VLAN ID detected."]
25+
"eStrKey": "vlanid-invalid",
26+
"eStr": ["Vlan ID out of range"]
4727
},
48-
"STP_INTERFACE_VALID_CONFIG_TEST": {
49-
"desc": "Configure STP parameters on an interface with valid values."
28+
"STP_PORT_CONFIG_VALID_TEST": {
29+
"desc": "Configure STP port with valid parameters (enabled, bpdu_guard, root_guard)."
5030
},
51-
"STP_INTERFACE_INVALID_COST_NEG_TEST": {
52-
"desc": "Configure an invalid path cost for an interface.",
53-
"eStrKey": "InvalidPathCost",
54-
"eStr": ["Path cost must be between 1 and 200000000."]
55-
},
56-
"STP_INTERFACE_DUPLICATE_NEG_TEST": {
57-
"desc": "Configure duplicate STP parameters for the same interface.",
58-
"eStrKey": "DuplicateInterfaceConfig",
59-
"eStr": ["Duplicate interface configuration detected."]
60-
},
61-
"STP_INTERFACE_INVALID_PORTFAST_NEG_TEST": {
62-
"desc": "Configure portfast on MST mode interface.",
63-
"eStrKey": "InvalidPortfast",
31+
"STP_PORT_INVALID_PORTFAST_MST_NEG_TEST": {
32+
"desc": "Configure portfast on an interface in MST mode.",
33+
"eStrKey": "stp-invalid",
6434
"eStr": ["Configuration not allowed in MST mode"]
6535
},
66-
"STP_MST_GLOBAL_CONFIG_TEST": {
67-
"desc": "Configure MSTP globally with valid parameters."
68-
},
69-
"STP_MST_REGION_NAME_MISSING_NEG_TEST": {
70-
"desc": "Configure MSTP region without specifying a name.",
71-
"eStrKey": "Mandatory",
72-
"eStr": ["MST region name must be provided."]
36+
"STP_MST_GLOBAL_VALID_CONFIG_TEST": {
37+
"desc": "Configure MST global settings with valid region name, revision, and parameters."
7338
},
74-
"STP_MST_REGION_NAME_INVALID_NEG_TEST": {
75-
"desc": "Configure MSTP with an invalid region name.",
39+
"STP_MST_REGION_NAME_INVALID_TEST": {
40+
"desc": "Configure MST global settings with an invalid region name.",
7641
"eStrKey": "InvalidValue",
77-
"eStr": ["MST region name must be between 1 and 32 characters."]
78-
},
79-
"STP_MST_INSTANCE_VALID_CONFIG_TEST": {
80-
"desc": "Configure MSTP instance with valid instance ID and VLAN mapping."
81-
},
82-
"STP_MST_INSTANCE_DUPLICATE_ID_NEG_TEST": {
83-
"desc": "Configure MSTP instance with a duplicate instance ID.",
84-
"eStrKey": "DuplicateInstanceID",
85-
"eStr": ["Duplicate MSTP instance ID detected."]
42+
"eStr": ["MST Region name must be between 1 and 32 characters."]
8643
},
87-
"STP_MST_INSTANCE_INVALID_VLAN_NEG_TEST": {
88-
"desc": "Configure MSTP instance with an invalid VLAN list.",
89-
"eStrKey": "InvalidVlanList",
90-
"eStr": ["VLAN list contains invalid or out-of-range VLAN IDs."]
44+
"STP_MST_PORT_VALID_CONFIG_TEST": {
45+
"desc": "Configure MST port settings with valid edge port and link type."
9146
},
92-
"STP_MST_INSTANCE_MISSING_VLAN_NEG_TEST": {
93-
"desc": "Configure MSTP instance without associating VLANs.",
94-
"eStrKey": "Mandatory",
95-
"eStr": ["At least one VLAN must be associated with the MSTP instance."]
96-
},
97-
"STP_MST_PORT_CONFIG_TEST": {
98-
"desc": "Configure MSTP parameters on a port with valid settings."
99-
},
100-
"STP_MST_PORT_INVALID_PRIORITY_NEG_TEST": {
101-
"desc": "Configure MSTP port with an invalid port priority.",
102-
"eStrKey": "InvalidPortPriority",
103-
"eStr": ["Port priority must be between 0 and 240."]
104-
},
105-
"STP_MST_PORT_INVALID_COST_NEG_TEST": {
106-
"desc": "Configure MSTP port with an invalid path cost.",
107-
"eStrKey": "InvalidPathCost",
108-
"eStr": ["Path cost must be between 1 and 20000000."]
109-
},
110-
"STP_MST_PORT_DUPLICATE_NEG_TEST": {
111-
"desc": "Configure MSTP parameters with duplicate port settings.",
112-
"eStrKey": "DuplicatePortConfig",
113-
"eStr": ["Duplicate MSTP port configuration detected."]
114-
},
115-
"STP_MST_PORT_EDGE_PORT_NEG_TEST": {
116-
"desc": "Configure MSTP port with edge-port enabled in non-MST mode.",
117-
"eStrKey": "InvalidEdgePort",
118-
"eStr": ["Edge-port configuration is only allowed in MST mode."]
119-
},
120-
"STP_MST_PORT_LINK_TYPE_TEST": {
121-
"desc": "Configure MSTP port with valid link type (auto, shared, point-to-point)."
122-
},
123-
"STP_MST_PORT_INVALID_LINK_TYPE_NEG_TEST": {
124-
"desc": "Configure MSTP port with an invalid link type.",
47+
"STP_MST_PORT_INVALID_LINK_TYPE_TEST": {
48+
"desc": "Configure MST port with an invalid link type.",
12549
"eStrKey": "InvalidLinkType",
12650
"eStr": ["Link type must be 'auto', 'shared', or 'point-to-point'."]
12751
},
128-
"STP_MST_PORT_CONFIG_DUPLICATE_EDGE_PORT_NEG_TEST": {
129-
"desc": "Configure MSTP port with duplicate edge-port configuration.",
130-
"eStrKey": "DuplicateEdgePortConfig",
131-
"eStr": ["Duplicate edge-port configuration detected."]
132-
},
133-
"STP_PORT_EDGE_PORT_TEST": {
134-
"desc": "Configure edge port settings on an interface."
135-
},
136-
"STP_PORT_LINK_TYPE_TEST": {
137-
"desc": "Configure link type settings on an interface."
138-
},
139-
"STP_MST_HOLD_COUNT_TEST": {
140-
"desc": "Configure MST hold count with valid settings."
141-
},
142-
"STP_MST_HELLO_TIME_TEST": {
143-
"desc": "Configure MST hello time with valid settings."
52+
"STP_MST_INSTANCE_VALID_CONFIG_TEST": {
53+
"desc": "Configure MST instance with a valid instance ID and VLAN mapping."
14454
},
145-
"STP_MST_MAX_HOPS_TEST": {
146-
"desc": "Configure MST max hops with valid settings."
55+
"STP_MST_INSTANCE_MISSING_VLAN_TEST": {
56+
"desc": "Configure MST instance without associating VLANs.",
57+
"eStrKey": "Mandatory",
58+
"eStr": ["At least one VLAN must be associated with the MST instance."]
14759
}
148-
}
60+
}

0 commit comments

Comments
 (0)