* 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
This commit is contained in:
Daniel W. Anner 2023-08-01 12:02:16 -04:00 committed by GitHub
parent d191429457
commit cfbc3ec223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 18 deletions

View File

@ -1,8 +1,15 @@
---
manufacturer: Juniper
model: JPSU-920-AC-AFO
part_number: 640-060601
comments: |
EX Series 920 W AC power supply (front-to-back airflow)
Compatible with
* EX3400 PoE models
* EX4100 PoE models
[Juniper EX4100 Data Sheet](https://www.juniper.net/content/dam/www/assets/datasheets/us/en/switches/ex4100-line-of-ethernet-switches-datasheet.pdf)
power-ports:
- name: Power Supply {module}
type: iec-60320-c14

View File

@ -1,16 +0,0 @@
---
manufacturer: Juniper
model: JPSU-920-AC-AFO
part_number: 640-060601
comments: |
EX Series 920 W AC power supply (front-to-back airflow)
Compatible with
* EX3400 PoE models
* EX4100 PoE models
[Juniper EX4100 Data Sheet](https://www.juniper.net/content/dam/www/assets/datasheets/us/en/switches/ex4100-line-of-ethernet-switches-datasheet.pdf)
power-ports:
- name: Power Supply {module}
type: iec-60320-c14
maximum_draw: 920

View File

@ -1,4 +1,4 @@
from test_configuration import COMPONENT_TYPES, IMAGE_FILETYPES, SCHEMAS, KNOWN_SLUGS, ROOT_DIR, USE_LOCAL_KNOWN_SLUGS, NETBOX_DT_LIBRARY_URL, KNOWN_MODULES
from test_configuration import COMPONENT_TYPES, IMAGE_FILETYPES, SCHEMAS, KNOWN_SLUGS, ROOT_DIR, USE_LOCAL_KNOWN_SLUGS, NETBOX_DT_LIBRARY_URL, KNOWN_MODULES, USE_UPSTREAM_DIFF
import pickle_operations
from yaml_loader import DecimalSafeLoader
from device_types import DeviceType, ModuleType, verify_filename, validate_components
@ -105,7 +105,10 @@ def test_environment():
if definition_files:
pytest.skip("No changes to definition files found.")
definition_files = _get_diff_from_upstream()
if USE_UPSTREAM_DIFF:
definition_files = _get_diff_from_upstream()
else:
definition_files = _get_definition_files()
image_files = _get_image_files()
if USE_LOCAL_KNOWN_SLUGS:

View File

@ -27,5 +27,6 @@ KNOWN_SLUGS = set()
KNOWN_MODULES = set()
USE_LOCAL_KNOWN_SLUGS = False
USE_UPSTREAM_DIFF = True
NETBOX_DT_LIBRARY_URL = "https://github.com/netbox-community/devicetype-library.git"