Skip to content

Commit 562fd25

Browse files
author
Ahmed Karic
committed
test: Update description in speed/duplex test
1 parent be547ba commit 562fd25

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

test/case/ietf_interfaces/speed_duplex_copper/speed_duplex_copper.adoc

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
=== Interface Speed Duplex (Copper)
22
==== Description
3-
Verify that auto-negotiation results in expected speed/duplex mode.
3+
Verify that the interface operates at the expected speed/duplex in two scenarios:
4+
5+
1. Fixed configuration – host and target are both manually set to a specific speed/duplex
6+
2. Auto-negotiation – host advertises selectable modes and the target negotiates
7+
to the highest common speed/duplex.
48

59
==== Topology
610
ifdef::topdoc[]
@@ -17,17 +21,17 @@ endif::topdoc[]
1721
==== Test sequence
1822
. Set up topology and attach to target DUT
1923
. Enable target interface
20-
. Set fixed 10/full
21-
. Set fixed 10/half
22-
. Set fixed 100/full
23-
. Set fixed 100/half
24+
. Verify fixed 10/full
25+
. Verify fixed 10/half
26+
. Verify fixed 100/full
27+
. Verify fixed 100/half
2428
. Switch to auto-negotiation mode for target and host
25-
. Configure host to advertise 10/Full only
26-
. Configure host to advertise 10/Half only
27-
. Configure host to advertise 100/Full only
28-
. Configure host to advertise 100/Half only
29-
. Configure host to advertise 10/half + 10/full + 100/half
30-
. Configure host to advertise 10/half + 10/full + 100/half + 100/full + 1000/full
29+
. Verify auto-negotiation to 10/Full only
30+
. Verify auto-negotiation to 10/Half only
31+
. Verify auto-negotiation to 100/Full only
32+
. Verify auto-negotiation to 100/Half only
33+
. Verify auto-negotiation to 10/half + 10/full + 100/half
34+
. Verify auto-negotiation to 10/half + 10/full + 100/half + 100/full + 1000/full
3135

3236

3337
<<<

test/case/ietf_interfaces/speed_duplex_copper/test.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"""
33
Interface Speed Duplex (Copper)
44
5-
Verify that auto-negotiation results in expected speed/duplex mode.
5+
Verify that the interface operates at the expected speed/duplex in two scenarios:
6+
7+
1. Fixed configuration – host and target are both manually set to a specific speed/duplex
8+
2. Auto-negotiation – host advertises selectable modes and the target negotiates
9+
to the highest common speed/duplex.
610
"""
711

812
import infamy
@@ -164,22 +168,22 @@ def cleanup(target, hdata, tdata):
164168
ns.addip("10.0.0.1")
165169

166170
# Fixed mode tests
167-
with test.step("Set fixed 10/full"):
171+
with test.step("Verify fixed 10/full"):
168172
set_host_speed_duplex(hdata, 10, "full")
169173
set_target_speed_duplex(target, tdata, 10, "full")
170174
verify_speed_duplex(target, ns, tdata, 10, "full")
171175

172-
with test.step("Set fixed 10/half"):
176+
with test.step("Verify fixed 10/half"):
173177
set_host_speed_duplex(hdata, 10, "half")
174178
set_target_speed_duplex(target, tdata, 10, "half")
175179
verify_speed_duplex(target, ns, tdata, 10, "half")
176180

177-
with test.step("Set fixed 100/full"):
181+
with test.step("Verify fixed 100/full"):
178182
set_host_speed_duplex(hdata, 100, "full")
179183
set_target_speed_duplex(target, tdata, 100, "full")
180184
verify_speed_duplex(target, ns, tdata, 100, "full")
181185

182-
with test.step("Set fixed 100/half"):
186+
with test.step("Verify fixed 100/half"):
183187
set_host_speed_duplex(hdata, 100, "half")
184188
set_target_speed_duplex(target, tdata, 100, "half")
185189
verify_speed_duplex(target, ns, tdata, 100, "half")
@@ -189,27 +193,27 @@ def cleanup(target, hdata, tdata):
189193
enable_host_autoneg(hdata)
190194
enable_target_autoneg(target, tdata)
191195

192-
with test.step("Configure host to advertise 10/Full only"):
196+
with test.step("Verify auto-negotiation to 10/Full only"):
193197
advertise_host_modes(hdata, ["10full"])
194198
verify_speed_duplex(target, ns, tdata, 10, "full")
195199

196-
with test.step("Configure host to advertise 10/Half only"):
200+
with test.step("Verify auto-negotiation to 10/Half only"):
197201
advertise_host_modes(hdata, ["10half"])
198202
verify_speed_duplex(target, ns, tdata, 10, "half")
199203

200-
with test.step("Configure host to advertise 100/Full only"):
204+
with test.step("Verify auto-negotiation to 100/Full only"):
201205
advertise_host_modes(hdata, ["100full"])
202206
verify_speed_duplex(target, ns, tdata, 100, "full")
203207

204-
with test.step("Configure host to advertise 100/Half only"):
208+
with test.step("Verify auto-negotiation to 100/Half only"):
205209
advertise_host_modes(hdata, ["100half"])
206210
verify_speed_duplex(target, ns, tdata, 100, "half")
207211

208-
with test.step("Configure host to advertise 10/half + 10/full + 100/half"):
212+
with test.step("Verify auto-negotiation to 10/half + 10/full + 100/half"):
209213
advertise_host_modes(hdata, ["10half", "10full", "100half"])
210214
verify_speed_duplex(target, ns, tdata, 100, "half")
211215

212-
with test.step("Configure host to advertise 10/half + 10/full + 100/half + 100/full + 1000/full"):
216+
with test.step("Verify auto-negotiation to 10/half + 10/full + 100/half + 100/full + 1000/full"):
213217
advertise_host_modes(hdata, ["10half", "10full", "100half", "100full", "1000full"])
214218
verify_speed_duplex(target, ns, tdata, 1000, "full")
215219

0 commit comments

Comments
 (0)