Skip to content
Snippets Groups Projects
Unverified Commit cfbc3ec2 authored by Daniel W. Anner's avatar Daniel W. Anner Committed by GitHub
Browse files

Jpsu fix (#1520)

* 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
parent d1914294
No related branches found
No related tags found
No related merge requests found
---
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
......
---
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
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:
......
......@@ -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"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment