Commit Graph

13 Commits

Author SHA1 Message Date
Daniel W. Anner
4607c0d486
Test Cases: Added VGA denial test case (#2065)
* Adding first revision of the VGA test cases

* Second revision with less repetative code

* Handling case where vga has a number in the naming

* the great VGA purge!
2024-04-03 21:02:47 -04:00
Daniel W. Anner
42ad64ce74
Updating test cases to resolve PR #1719 (#2046) 2024-03-28 10:16:47 -04:00
Daniel Sheppard
6efd71e4ce Revert submodule test 2024-03-22 15:36:57 -05:00
Daniel Sheppard
edd8fb1b63 Remove Tests 2024-03-22 14:57:13 -05:00
Daniel W. Anner
6aae04ac3b
Pytest Test Case - Renamed File w/o Slug/PN Change (#1708)
* Updating tests to solve the issue in PR#1667 which fails on a renamed file (with a valid slug)

* preseving old functionality
2023-10-23 16:11:49 -04:00
Daniel W. Anner
282559fa45
Module Test Improvements (#1608)
* Adding --all switch to the pre-commit check

* Adding test code to verify component positions are not the same for similar modules

* Adding code to validate component names and duplicate positions. This was discovered in issue #1584

* Reverting accidental change to pre-commit-config.yaml

* Update SDU-5000.yml

Reverting testing change

* Update device_types.py

Removed un-needed import
2023-09-06 14:14:11 -04:00
Daniel W. Anner
8eb68d6a19
Adding module file name checks as well (#1519) 2023-08-01 11:46:04 -04:00
Daniel W. Anner
15a3e7a9d1
Restore master (#1473)
* Pytest Optimizations (#1465)

* Adding function to determin file changes from upstream via git

* updated test env function to properly skip when files are empty

* updating to use generated slug list

* fixing if statement

* added known slugs functionality to improve runtime

* updating slugs for using git repo

* adding final changes

* updating library url to be correct

* Update master-slugs.yml

* commit to force pr merge (#1466)

* Pytest pr (#1467)

* commit to force pr merge

* commit to force pr merge

* Update master-slugs.yml

* Regenerate master slug list after successful PR merge

* Update master-slugs.yml

* fianl changes to new master slug workflow (#1468)

* Final pr test (#1469)

* fianl changes to new master slug workflow

* trying new branch push

* changing to myself (#1470)

* testing permission on github_token

* testing permission on github_token

* testing permission on github_token

---------

Co-authored-by: NetBox Bot <info@netboxlabs.com>
2023-07-19 10:32:32 -04:00
Daniel W. Anner
e42a14b180
Revert "PR CI Testing (#1472)" (#1474)
This reverts commit 3d0803957d.
2023-07-19 10:32:03 -04:00
Daniel W. Anner
3d0803957d
PR CI Testing (#1472)
* Pytest Optimizations (#1465)

* Adding function to determin file changes from upstream via git

* updated test env function to properly skip when files are empty

* updating to use generated slug list

* fixing if statement

* added known slugs functionality to improve runtime

* updating slugs for using git repo

* adding final changes

* updating library url to be correct

* Update master-slugs.yml

* commit to force pr merge (#1466)

* Pytest pr (#1467)

* commit to force pr merge

* commit to force pr merge

* Update master-slugs.yml

* Regenerate master slug list after successful PR merge

* Update master-slugs.yml

* fianl changes to new master slug workflow (#1468)

* Final pr test (#1469)

* fianl changes to new master slug workflow

* trying new branch push

* changing to myself (#1470)

* testing permission on github_token

* testing permission on github_token

---------

Co-authored-by: NetBox Bot <info@netboxlabs.com>
2023-07-19 10:24:20 -04:00
Daniel W. Anner
d0cb58d96e
Adding Tests: Device Power (#1463)
* broke component validation out to its own function. Adding logic for validating device power input.

* Added console-port poe true for adapters. Updating devices to add proper power sources.

* Adding switches to allow for tests to properly determine POE status.

* Fixing files with missing power definitions.
2023-07-17 15:23:56 -04:00
Daniel W. Anner
4ac4c79ab1
Updating comments and error messages for better readability and validation (#1457) 2023-07-14 15:38:14 -04:00
Daniel W. Anner
c95b166139
Implementing Test Updates (Slugs & File Names) (#1454)
* breaking out tests for easier usage

* refactoring codebase

* Added verification for properly formatted slug and fixed definitions that were incorrect

* Adding new test case to ensure the file name matches either the slug or the part_number

* fixed file names to match proper formatting
2023-07-12 20:00:44 -04:00