Skip to content

Commit

Permalink
Add CI Test for standard capture group naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgill298 committed Mar 29, 2024
1 parent 7af9f67 commit 5bb9d01
Show file tree
Hide file tree
Showing 5 changed files with 396 additions and 89 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,13 @@ jobs:
PYTHON_VER=${{ env.PYTHON_VER }}
- name: "Debug: Show docker images"
run: "docker image ls"
- name: "Get changed files"
id: "changed-files"
uses: "tj-actions/changed-files@v43"
- name: "Run Tests"
run: "poetry run invoke pytest"
env:
ALL_CHANGED_FILES: "${{ steps.changed-files.outputs.all_changed_files }}"
needs:
- "pylint"
publish_gh:
Expand Down
18 changes: 18 additions & 0 deletions ntc_templates/templates/cisco_ios_show_inventory-test.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Value NAME (.*)
Value MAC_ADDRESS (.*)
Value SERIAL (.*)
Value IP_ADDR (.*)

Start
^NAME:\s+"${NAME}",\s+DESCR:\s+"${DESCR}"
^PID:\s+${PID}.*,.*VID:\s+${VID},.*SN:\s+${SN} -> Record
^PID:\s+,.*VID:\s+${VID},.*SN: -> Record
^PID:\s+${PID}.*,.*VID:\s+${VID},.*SN: -> Record
^PID:\s+,.*VID:\s+${VID},.*SN:\s+${SN} -> Record
^PID:\s+${PID}.*,.*VID:\s+${VID}.*
^PID:\s+,.*VID:\s+${VID}.*
^.*SN:\s+${SN} -> Record
^.*SN: -> Record
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
^Time\s+source\s+is
Loading

0 comments on commit 5bb9d01

Please sign in to comment.