Commit Graph

249 Commits

Author SHA1 Message Date
NetBox-Bot
d80fe242eb Regenerate master slug list after successful PR merge 2023-07-31 01:13:43 +00:00
NetBox-Bot
d58ed2ad8c Regenerate master slug list after successful PR merge 2023-07-29 22:26:51 +00:00
NetBox-Bot
4cb589c532 Regenerate master slug list after successful PR merge 2023-07-27 21:08:16 +00:00
NetBox-Bot
ba44f6e1b5 Regenerate master slug list after successful PR merge 2023-07-27 20:57:28 +00:00
NetBox-Bot
848c6891b4 Regenerate master slug list after successful PR merge 2023-07-27 20:40:15 +00:00
NetBox-Bot
4224ab0fce Regenerate master slug list after successful PR merge 2023-07-27 20:00:43 +00:00
NetBox-Bot
374f1a67c3 Regenerate master slug list after successful PR merge 2023-07-27 18:23:31 +00:00
NetBox-Bot
5e7a3f5546 Regenerate master slug list after successful PR merge 2023-07-27 18:18:57 +00:00
NetBox-Bot
b1a5a60185 Regenerate master slug list after successful PR merge 2023-07-27 16:18:30 +00:00
Daniel W. Anner
1defb11182
Revert "Adding failure condition for pickle file (#1497)" (#1498)
This reverts commit 8da45ff037.
2023-07-27 12:17:34 -04:00
NetBox-Bot
d8cfdc3747 Regenerate master slug list after successful PR merge 2023-07-27 15:55:08 +00:00
Daniel W. Anner
8da45ff037
Adding failure condition for pickle file (#1497) 2023-07-27 11:54:18 -04:00
NetBox-Bot
29dd8ed8b8 Regenerate master slug list after successful PR merge 2023-07-27 14:39:48 +00:00
NetBox-Bot
27ed7b1c76 Regenerate master slug list after successful PR merge 2023-07-27 13:54:05 +00:00
NetBox-Bot
bb840ba331 Regenerate master slug list after successful PR merge 2023-07-27 13:50:10 +00:00
NetBox-Bot
8880231860 Regenerate master slug list after successful PR merge 2023-07-27 13:32:10 +00:00
NetBox-Bot
b00df35530 Regenerate master slug list after successful PR merge 2023-07-27 13:14:51 +00:00
NetBox-Bot
01f251fc0e Regenerate master slug list after successful PR merge 2023-07-25 21:08:55 +00:00
NetBox-Bot
b6c7c2c6da Regenerate master slug list after successful PR merge 2023-07-25 20:56:44 +00:00
NetBox-Bot
034d6a5cc7 Regenerate master slug list after successful PR merge 2023-07-25 20:53:12 +00:00
NetBox-Bot
ccf66a7dcd Regenerate master slug list after successful PR merge 2023-07-25 19:22:32 +00:00
NetBox-Bot
efee8467e9 Regenerate master slug list after successful PR merge 2023-07-25 15:43:07 +00:00
NetBox-Bot
c36314b525 Regenerate master slug list after successful PR merge 2023-07-25 15:41:29 +00:00
NetBox-Bot
1fc6f9e1f1 Regenerate master slug list after successful PR merge 2023-07-20 15:15:35 +00:00
Daniel W. Anner
a5050ebe41
Update definitions_test.py 2023-07-20 11:14:30 -04:00
NetBox-Bot
679de8f491 Regenerate master slug list after successful PR merge 2023-07-20 15:04:27 +00:00
Daniel W. Anner
7b527f51ba
Update definitions_test.py
Fixed mistake - left testing code in
2023-07-20 11:03:34 -04:00
NetBox-Bot
6a7ad19f42 Regenerate master slug list after successful PR merge 2023-07-20 15:02:00 +00:00
Daniel W. Anner
1868743431
Update definitions_test.py
Resolved issue with renamed files
2023-07-20 11:01:08 -04:00
NetBox-Bot
318ef4d1ab Regenerate master slug list after successful PR merge 2023-07-20 12:12:49 +00:00
NetBox-Bot
2a75c54de2 Regenerate master slug list after successful PR merge 2023-07-20 11:21:07 +00:00
NetBox-Bot
cb320ce08b Regenerate master slug list after successful PR merge 2023-07-19 22:12:56 +00:00
NetBox-Bot
20cd3c2fcb Regenerate master slug list after successful PR merge 2023-07-19 18:01:20 +00:00
NetBox-Bot
a77cc020c1 Regenerate master slug list after successful PR merge 2023-07-19 17:52:35 +00:00
NetBox-Bot
81537c4253 Regenerate master slug list after successful PR merge 2023-07-19 17:48:31 +00:00
NetBox-Bot
55c233162b Regenerate master slug list after successful PR merge 2023-07-19 17:45:09 +00:00
NetBox-Bot
5a534fc0d1 Regenerate master slug list after successful PR merge 2023-07-19 17:41:22 +00:00
NetBox-Bot
3fe42d5aea Regenerate master slug list after successful PR merge 2023-07-19 17:28:15 +00:00
NetBox-Bot
243e1a44e4 Regenerate master slug list after successful PR merge 2023-07-19 17:20:19 +00:00
NetBox-Bot
826786deef Regenerate master slug list after successful PR merge 2023-07-19 17:18:14 +00:00
NetBox-Bot
190e13e22d Regenerate master slug list after successful PR merge 2023-07-19 16:55:05 +00:00
NetBox-Bot
b93971d0b1 Regenerate master slug list after successful PR merge 2023-07-19 16:42:05 +00:00
NetBox-Bot
98490c0cd0 Regenerate master slug list after successful PR merge 2023-07-19 16:32:08 +00:00
NetBox-Bot
3274c1d928 Regenerate master slug list after successful PR merge 2023-07-19 16:12:13 +00:00
Daniel W. Anner
1a9b233d3d
Update definitions_test.py
Correcting schema mapping issue
2023-07-19 12:11:11 -04:00
NetBox-Bot
f86646de4f Regenerate master slug list after successful PR merge 2023-07-19 15:54:26 +00:00
Daniel W. Anner
2e2bb3cf4e
Update definitions_test.py 2023-07-19 11:53:37 -04:00
NetBox-Bot
c6dbaa1897 Regenerate master slug list after successful PR merge 2023-07-19 15:10:23 +00:00
NetBox-Bot
989092073c Regenerate master slug list after successful PR merge 2023-07-19 15:07:21 +00:00
NetBox-Bot
0729c90b58 Regenerate master slug list after successful PR merge 2023-07-19 15:05:44 +00:00
Daniel W. Anner
30cf68a804
Update definitions_test.py 2023-07-19 11:04:51 -04:00
NetBox-Bot
f5246af5ba Regenerate master slug list after successful PR merge 2023-07-19 14:45:58 +00:00
Daniel W. Anner
b55d20c4bf
Update definitions_test.py 2023-07-19 10:45:01 -04:00
NetBox-Bot
58c65767a1 Regenerate master slug list after successful PR merge 2023-07-19 14:33:21 +00: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
aurelienbyi
ad8ad1589e
directory separator appropriate for exec env (#1250)
Co-authored-by: aurelien.bailly <aurelien.bailly@destiny.eu>
2023-04-01 15:44:41 -04:00
J vanBemmel
3bf511ece6
Nokia add images new location (#1233)
* 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
2023-03-27 15:06:48 -04:00
Daniel W. Anner
f78c90d38b
Adding elevation images folder and test logic (#1225)
* Added new test code for elevation images. Added elevation folder.

* Also adding first file with image definitions
2023-03-24 16:50:47 -04:00
Jonathan Senecal
1a4447a075
Fix float validation using decimal.Decimal (#1073)
* Fix float validation using decimal.Decimal

* Force string repr of the float when loading yaml

---------

Co-authored-by: Jonathan Senecal <jonathan.senecal@metrooptic.com>
2023-01-31 09:42:16 -05:00
Andrew Imeson
66c75604d6
Fix pre-commit and update CI (#875) 2022-08-10 22:29:59 -04:00
Michael Klose
d8ce2765c4
Extend tests to check for null/empty values (#687)
Fixes #686
2022-02-25 10:23:46 -05:00
jeremystretch
c1f6cecb21 Combine validation and duplication tests for efficiency 2022-02-18 14:47:13 -05:00
Jeremy Stretch
8ca95dacef
Module types (#659)
* Extend tests to support moule types

* Add Juniper EX9200-32XS module type

* Fix YAML formatting
2022-02-11 16:22:59 -05:00
Michael Klose
24a9875c29
Add missing types to schema.json (#637) 2022-01-27 20:20:23 -05:00
Kristin Davidson
5a494d0487
Update Ubiquiti USW-Aggregation and UDM-Pro (#622)
* Update Ubiquiti USW-Aggregation switch to 8 ports instead of 10
* Update UDM-Pro model name to be the full name, add part number, airflow, and make it not full-depth
* Include UniFi brand name in UDM-Pro model name
* Add airflow field to device type schema
2022-01-24 13:42:40 -05:00
David Mc Ken
ae0e7d6c6d
Add ubnt af 5xhd (#627)
* Create AF-5XHD.yml
* Added bridge to schema tests
2022-01-24 08:52:41 -05:00
Michael Klose
879be46758
Fix #616 Unknown properties are ignored during schema validation (#621)
* Fix Unknown properties are ignored during schema validation #616
* Fix misspelled properties in files
2022-01-06 13:37:24 -05:00
jeremystretch
14217f3be4 Closes #614: Add support for module bays and inventory items 2021-12-30 13:51:30 -05:00
jeremystretch
dfc7ba6df5 Closes #613: Add support for component labels 2021-12-30 13:41:40 -05:00
Michael Klose
fd6fc1f7bb
Rename optic type 128gfc-sfp28 to 128gfc-qsfp28 (#600) 2021-12-17 11:31:56 -05:00
Flo
5fe42cf3c9
Update schema.json (#562) 2021-11-13 13:29:18 -05:00
Flo
53173620c2
Update schema.json (#556) 2021-11-11 20:20:50 -05:00
Scott Crace
485027a3b5
Adding Dell PowerEdge MX7000 device type (#440)
* Adding Dell PowerEdge MX7000 device type
* Add c21/c22 to schema

Co-authored-by: Scott Crace <scrace@momentumbusiness.com>
2021-08-25 17:18:51 -04:00
Gauthier
0b814f2088
Ubiquiti er es usg (#384) 2021-05-11 16:10:54 -04:00
Ryan Merolle
7b303a5ace
YAML Formatting & Validation (#347)
* leverage yamllint in GitHub actions 

* add pre-commits

* validation updates

* Update README.md

* Update CONTRIBUTING.md
2021-02-27 07:25:47 -05:00
Ryan Merolle
b72a71d0e4
update scheema.json to match netbox choices (#300) 2020-12-31 09:34:29 -05:00
Daniel Sheppard
f9704f0736
Add duplicate component test 2020-11-24 13:10:31 -06:00
Daniel Sheppard
c9f6a02e4a
Update test_definitions.py 2020-11-24 12:25:06 -06:00
Daniel Sheppard
8db3fe1dcd
Update test_dupes.py 2020-11-24 12:22:23 -06:00
Nick Kuzmik
e5c4414f8a Per #175, check for duplicate devices. I am comparing slugs, and found a duplicate Generic device already. 2020-07-17 12:38:58 -04:00
Ryan Merolle
97f48ec440
update json schema to netbox-community/netbox#4784 (#167) 2020-07-05 13:30:25 -04:00
Ryan Merolle
4a8f433f88
Add NEMA L14 & L20 (#136)
Adds to validation / schema.json:
- NEMA L14-20P
- NEMA L14-30P
- NEMA L21-20P
- NEMA L21-30P
- NEMA L14-20R
- NEMA L14-30R
- NEMA L21-20R
- NEMA L21-30R
2020-05-20 11:39:06 -04:00
Jeremy Stretch
3370771aec Add MRJ21 port type (NetBox #4284) 2020-03-03 10:24:34 -05:00
Ken Partridge
915ce60c2a Added serial console_port type rj-11 for a POTS modem connection in console-port / tests/schema.json 2020-02-19 10:57:26 -08:00
ryanmerolle
5965a596ab California Style Connectors added 2020-01-03 14:43:57 -05:00
ryanmerolle
68cfb19287 schema update to handle rj12 serial on some PDUs 2020-01-03 13:35:51 -05:00
Jeremy Stretch
05fa6e535a Closes #26: Validate slug charset 2019-12-30 10:18:13 -05:00
Jeremy Stretch
1c98c069b8 Closes #27: Check that definition files end with a blank line 2019-12-30 10:11:25 -05:00
Jeremy Stretch
912b0187d7 Match all files but validate extensions 2019-12-26 15:36:28 -05:00
Jeremy Stretch
2365e49146 Add missing subdevice_role attribute to schema 2019-12-19 13:41:43 -05:00
Jeremy Stretch
4dcaf14b4e Change vendors/ to device-types/ 2019-12-19 13:23:05 -05:00
Jeremy Stretch
3e36dc4c4c Add a simple environment test for sanity checking 2019-12-19 11:14:33 -05:00
Jeremy Stretch
268d8cc43c Employ more elegant error reporting in tests 2019-12-19 11:08:51 -05:00
Jeremy Stretch
f15ec47c6c Introduced unit tests for definition files 2019-12-19 10:22:26 -05:00