* fix: extend front/rear port check to modules
* fix: detect duplicates between front<->rear ports mapping
---------
Co-authored-by: Harry <Harry@cadby.co.uk>
* Fix non-local rack pickle path
Looks like a copy&paste error from/in 57742dbb.
* Optimize download
Use a partial clone, which is supported in Git since 2.18 (released
2018). The amount of actually downloaded data is roughly equal to the
size of the required files, the compression offsets the git overhead.
* Fallback for old git versions
---------
Co-authored-by: Harry <Harry@cadby.co.uk>
* Fix rear_imge test and description
* replace '/' by os.path.sep
* Extend error messages to include expected filenames
* fix image path (use elevation-images as base dir)
* add quotes around expected path
* Improve failure message
* remove redundant image description
---------
Co-authored-by: Giotta Simon <simon.giotta@ruag.ch>
Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>
* fix yaml to x150-series
* Fix: Prevent non-ASCII characters in YAML files (#2461)
This commit addresses the issue #2461 by updating the test case to detect non-ASCII characters in YAML files. The new check ensures that if any non-ASCII characters are found, the test will fail and provide a clear message listing the problematic characters.
• Added a check to identify non-ASCII characters in the content of the YAML files.
• If non-ASCII characters are found, the test will now fail with a detailed error message, including the list of non-ASCII characters.
This update helps ensure that YAML files are strictly ASCII-encoded, avoiding potential encoding issues in different environments.
* 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!
* Added test functionality to use original all files testing. Fixed JPSU-920-AC-AFO issue from Issue#1514
* Fixed JPSU issue
* Fixing file format issue
* fixing file we altered by accident
* 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>
* 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>
* 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.
* 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
* Re-add front/rear images following new location & filename conventions
* Renamed following exact match slug convention
* Debug test failing
* Different log msg
* More debug
* Filter on startswith(slug)
* Debug
* Quotes
* Updated filter
* Match on string part
* Fix float validation using decimal.Decimal
* Force string repr of the float when loading yaml
---------
Co-authored-by: Jonathan Senecal <jonathan.senecal@metrooptic.com>