Skip to content

Commit e83a005

Browse files
committed
Add CI Test for standard capture group naming
1 parent 7af9f67 commit e83a005

File tree

6 files changed

+398
-90
lines changed

6 files changed

+398
-90
lines changed

Diff for: .github/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,13 @@ jobs:
183183
PYTHON_VER=${{ env.PYTHON_VER }}
184184
- name: "Debug: Show docker images"
185185
run: "docker image ls"
186+
- name: "Get changed files"
187+
id: "changed-files"
188+
uses: "tj-actions/changed-files@v43"
186189
- name: "Run Tests"
187-
run: "poetry run invoke pytest"
190+
run: "poetry run pytest tests/test_var_names.py"
191+
env:
192+
ALL_CHANGED_FILES: "${{ steps.changed-files.outputs.all_changed_files }}"
188193
needs:
189194
- "pylint"
190195
publish_gh:

Diff for: Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ARG PYTHON_VER
2+
ARG ALL_CHANGED_FILES=0
23

34
FROM python:${PYTHON_VER}-slim
45

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Value NAME (.*)
2+
Value MAC_ADDRESS (.*)
3+
Value SERIAL (.*)
4+
Value IP_ADDR (.*)
5+
6+
Start
7+
^NAME:\s+"${NAME}",\s+DESCR:\s+"${DESCR}"
8+
^PID:\s+${PID}.*,.*VID:\s+${VID},.*SN:\s+${SN} -> Record
9+
^PID:\s+,.*VID:\s+${VID},.*SN: -> Record
10+
^PID:\s+${PID}.*,.*VID:\s+${VID},.*SN: -> Record
11+
^PID:\s+,.*VID:\s+${VID},.*SN:\s+${SN} -> Record
12+
^PID:\s+${PID}.*,.*VID:\s+${VID}.*
13+
^PID:\s+,.*VID:\s+${VID}.*
14+
^.*SN:\s+${SN} -> Record
15+
^.*SN: -> Record
16+
# Capture time-stamp if vty line has command time-stamping turned on
17+
^Load\s+for\s+
18+
^Time\s+source\s+is

0 commit comments

Comments
 (0)