forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: change date format in hp_comware_display_clock.textfsm (netwo…
…rktocode#977) As per https://techhub.hpe.com/eginfolib/networking/docs/switches/5940/5200-1008b_fund_cr/content/491962772.htm output of the `display clock` commands output contains date in `MM/DD/YYYY` format. Can confirm this on different types of HPE switches I have at my disposal. Added test cases that cover the scenarios when time zone and daylight time saving configurations are set.
- Loading branch information
1 parent
c3f7cd1
commit d212eb6
Showing
8 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
parsed_sample: | ||
- day: "01" | ||
dayweek: "Sat" | ||
month: "08" | ||
time: "19:35:31" | ||
- time: "19:35:31" | ||
timezone: "UTC" | ||
dayweek: "Sat" | ||
month: "01" | ||
day: "08" | ||
year: "2011" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10:09:00 UTC Fri 03/16/2015 |
8 changes: 8 additions & 0 deletions
8
tests/hp_comware/display_clock/hp_comware_display_clock_1.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
parsed_sample: | ||
- time: "10:09:00" | ||
timezone: "UTC" | ||
dayweek: "Fri" | ||
month: "03" | ||
day: "16" | ||
year: "2015" |
2 changes: 2 additions & 0 deletions
2
tests/hp_comware/display_clock/hp_comware_display_clock_2.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
15:10:00 Z5 Fri 03/16/2015 | ||
Time Zone : Z5 add 05:00:00 |
8 changes: 8 additions & 0 deletions
8
tests/hp_comware/display_clock/hp_comware_display_clock_2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
parsed_sample: | ||
- time: "15:10:00" | ||
timezone: "Z5" | ||
dayweek: "Fri" | ||
month: "03" | ||
day: "16" | ||
year: "2015" |
3 changes: 3 additions & 0 deletions
3
tests/hp_comware/display_clock/hp_comware_display_clock_3.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
15:11:00 Z5 Fri 03/16/2015 | ||
Time Zone : Z5 add 05:00:00 | ||
Summer Time : PDT 06:00:00 08/01 06:00:00 09/01 01:00:00 |
8 changes: 8 additions & 0 deletions
8
tests/hp_comware/display_clock/hp_comware_display_clock_3.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
parsed_sample: | ||
- time: "15:11:00" | ||
timezone: "Z5" | ||
dayweek: "Fri" | ||
month: "03" | ||
day: "16" | ||
year: "2015" |