Skip to content

Commit 06cff36

Browse files
committed
fix: Update csr1000v-add-interface scenario transcripts and steps
- running_config_before.txt: add GigabitEthernet0/0/2 in shutdown/no-ip state - running_config_after.txt: move description above ip address (IOS ordering) - Add 'description added-in-scenario' as sequence step - Update step count test 8 -> 9
1 parent f32b3b3 commit 06cff36

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

fakedevices/genericFakeDevice_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ func TestInitScenario(t *testing.T) {
208208
if fd.Platform != "csr1000v" {
209209
t.Errorf("Platform = %q, want csr1000v", fd.Platform)
210210
}
211-
if len(steps) != 8 {
212-
t.Errorf("steps len = %d, want 8", len(steps))
211+
if len(steps) != 9 {
212+
t.Errorf("steps len = %d, want 9", len(steps))
213213
}
214214
if steps[0].Command != "enable" {
215215
t.Errorf("steps[0].Command = %q, want 'enable'", steps[0].Command)

transcripts/scenarios/csr1000v-add-interface/running_config_after.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface GigabitEthernet0/0/1
1212
ip address 10.0.0.1 255.255.255.0
1313
!
1414
interface GigabitEthernet0/0/2
15-
ip address 172.16.0.1 255.255.255.0
1615
description added-in-scenario
16+
ip address 172.16.0.1 255.255.255.0
1717
!
1818
end

transcripts/scenarios/csr1000v-add-interface/running_config_before.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ interface GigabitEthernet0/0/0
1111
interface GigabitEthernet0/0/1
1212
ip address 10.0.0.1 255.255.255.0
1313
!
14+
interface GigabitEthernet0/0/2
15+
no ip address
16+
shutdown
17+
!
1418
end

transcripts/transcript_map.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ scenarios:
153153
transcript: "generic_empty_return.txt"
154154
- command: "ip address 172.16.0.1 255.255.255.0"
155155
transcript: "generic_empty_return.txt"
156+
- command: "description added-in-scenario"
157+
transcript: "generic_empty_return.txt"
156158
- command: "no shutdown"
157159
transcript: "generic_empty_return.txt"
158160
- command: "end"

0 commit comments

Comments
 (0)