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

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.
parent 0ff817fe
No related branches found
No related tags found
No related merge requests found
Showing
with 48 additions and 9 deletions
......@@ -41,7 +41,7 @@ The following fields may **optionally** be declared:
> :test_tube: **Example**: `part_number: D109-C3`
- `u_height`: The height of the device type in rack units. Increments of 0.5U are supported. (**Default: 1**)
- Type: number (minimum of `0`, multiple of `0.5`)
> :test_tube: **Example**: `u_height: 12.5`
> :test_tube: **Example**: `u_height: 12.5`
- `is_full_depth`: A boolean which indicates whether the device type consumes both the front and rear rack faces. (**Default: true**)
- Type: Boolean
> :test_tube: **Example**: `is_full_depth: false`
......@@ -87,6 +87,9 @@ The following fields may **optionally** be declared:
>weight: 12.21
>weight_unit: lb
>```
- `is_powered`: A boolean which indicates whether the device type does not take power. This is mainly used as a workaround for validation testing on non-devices (i.e. rackmount kits for mounting desktop devices) (**Default: True**)
- Type: Boolean
> :test_tube: **Example**: `is_powered: false`
For further detail on these attributes and those listed below, please reference the
[schema definitions](schema/) and the [Component Definitions](#component-definitions) below.
......@@ -114,6 +117,7 @@ The available fields for each type of component are listed below.
- `name`: Name
- `label`: Label
- `type`: Port type slug (Array)
- `poe`: Does this port access/provide POE? (Boolean)
#### Console Server Ports
......@@ -158,6 +162,7 @@ The available fields for each type of component are listed below.
- `label`: Label
- `type`: Port type slug (Array)
- `positions`: The number of front ports that can map to this rear port (default: 1)
- `poe`: Does this port access/provide POE? (Boolean)
#### Module Bays
......
---
manufacturer: APC
model: AR8425A
slug: apc-ar8425a
part_number: AR8425A
u_height: 1
is_full_depth: false
airflow: passive
......@@ -5,6 +5,9 @@ slug: apc-bn450m
u_height: 3
is_full_depth: false
comments: '[APC BN450M Datasheet](https://www.se.com/ww/en/product/download-pdf/BN450M)'
power-ports:
- name: Input
type: nema-5-15p
power-outlets:
- name: Batery + Surge - Outlet 1
type: nema-5-15r
......
......@@ -6,3 +6,6 @@ part_number: SMX120BP
comments: APC Smart-UPS X 120V External Battery Pack Rack/Tower
u_height: 4
is_full_depth: true
power-ports:
- name: UPS Input
type: other
......@@ -9,6 +9,9 @@ comments: Hard wire 3-wire (1P + N + E) power port
console-ports:
- name: Serial
type: rj-45
power-ports:
- name: UPS Input
type: hardwired
power-outlets:
- name: Group 1 Outlet 1
type: iec-60320-c13
......
......@@ -9,6 +9,9 @@ comments: All power ports and outlets are hardwired
console-ports:
- name: Serial
type: rj-45
power-ports:
- name: UPS Input
type: hardwired
interfaces:
- name: Ethernet
type: 100base-tx
......
......@@ -9,6 +9,9 @@ comments: Hard wire 3-wire (1P + N + E) power port
console-ports:
- name: Serial
type: rj-45
power-ports:
- name: UPS Input
type: hardwired
power-outlets:
- name: Group 1 Outlet 1
type: iec-60320-c13
......
......@@ -9,6 +9,9 @@ comments: Hard wire 3-wire (2P + E) power port
console-ports:
- name: Serial
type: rj-45
power-ports:
- name: UPS Input
type: hardwired
power-outlets:
- name: Group 1 Outlet 1
type: nema-l6-20r
......
......@@ -6,6 +6,9 @@ part_number: A1427
is_full_depth: false
comments: "- Order Number: MD199LL/A\r\n- Model Number: A1427\r\n- EMC: 2633\r\n- Edition: 3th Gen\r\n- Processor Speed: 1 GHz\r\n- Processor Type: Apple\
\ A5\r\n- Processors (Cores): 1\r\n- Hard Drive: 8 GB NAND flash\r\n- RAM: 512 MB\r\n- Input: Apple Remote (aluminum)\r\n- Release Date: March 7, 2012"
power-ports:
- name: Power
type: nema-1-15p
interfaces:
- name: eth
type: 100base-tx
......
......@@ -6,6 +6,9 @@ part_number: A1469
is_full_depth: false
comments: "- Order Number: MD199LL/A\r\n- Model Number: A1469\r\n- EMC: 2633\r\n- Edition: 3th Gen\r\n- Processor Speed: 1 GHz\r\n- Processor Type: Apple\
\ A5\r\n- Processors (Cores): 1\r\n- Hard Drive: 8 GB NAND flash\r\n- RAM: 512 MB\r\n- Input: Apple Remote (aluminum)\r\n- Release Date: March 7, 2012"
power-ports:
- name: Power
type: nema-1-15p
interfaces:
- name: eth
type: 100base-tx
......
......@@ -7,6 +7,9 @@ is_full_depth: false
u_height: 0
comments: "- Order Number: MGY52LL/A\r\n- Model Number: A1625\r\n- EMC: 2907\r\n- Edition: 4th Gen\r\n- Processor Speed: 1.4GHz\r\n- Processor Type: Apple\
\ A8\r\n- Processors (Cores): 1\r\n- Hard Drive: 32GB\r\n- RAM: 2GB\r\n- Input: Siri Remote\r\n- Release Date: September 9th 2015"
power-ports:
- name: Power
type: nema-1-15p
interfaces:
- name: eth
type: 1000base-t
......
......@@ -7,6 +7,9 @@ is_full_depth: false
u_height: 0
comments: "- Order Number: \tMQD22LL/A\r\n- Model Number: A1842\r\n- EMC: 2907\r\n- Edition: 4K\r\n- Processor Speed: 2.3 GHz\r\n- Processor Type: A10X\
\ Fusion\r\n- Processors (Cores): 1\r\n- Hard Drive: \t32, 64 GB\r\n- RAM: 3GB\r\n- Input: Black Siri Remote\r\n- Release Date: September 12, 2017"
power-ports:
- name: Power
type: nema-1-15p
interfaces:
- name: eth
type: 1000base-t
......
......@@ -7,6 +7,9 @@ is_full_depth: false
u_height: 0
comments: "- Order Number: \tMXGY2LL/A\r\n- Model Number: A2169\r\n- EMC: 3111\r\n- Edition: 4K (2nd Gen)\r\n- Processor Speed: 2.49 GHz\r\n- Processor\
\ Type: A12 Bionic\r\n- Processors (Cores): 1\r\n- Hard Drive: \t32, 64 GB\r\n- RAM: 3GB\r\n- Input: Silver Siri Remote\r\n- Release Date: April 20, 2021"
power-ports:
- name: Power
type: nema-1-15p
interfaces:
- name: eth
type: 1000base-t
......
......@@ -7,6 +7,7 @@ is_full_depth: false
console-ports:
- name: DSR
type: rj-45
poe: true
console-server-ports:
- name: VGA
type: other
......
......@@ -7,6 +7,7 @@ is_full_depth: false
console-ports:
- name: DSR
type: rj-45
poe: true
console-server-ports:
- name: VGA
type: other
......
......@@ -7,6 +7,7 @@ is_full_depth: false
console-ports:
- name: DSR
type: rj-45
poe: true
console-server-ports:
- name: VGA
type: other
......
......@@ -10,6 +10,7 @@ comments: MPU IQ Serial Adapter
console-ports:
- name: KVM
type: rj-45
poe: true
console-server-ports:
- name: con0
type: rj-45
......
......@@ -10,6 +10,7 @@ comments: MPU IQ Serial Adapter
console-ports:
- name: KVM
type: rj-45
poe: true
console-server-ports:
- name: vga0
type: other
......
......@@ -5,6 +5,7 @@ slug: check-point-cpac-1500-3600-3800-rm-dual
part_number: CPAC-1500/3600/3800-RM-DUAL
u_height: 1
is_full_depth: false
is_powered: false
comments: Rack Mount shelf for Single/Dual for 1500/ 3600/ 3800 desktop appliances
subdevice_role: parent
device-bays:
......
......@@ -6,5 +6,8 @@ part_number: AIR-AP1562D-B-K9
u_height: 0
is_full_depth: false
interfaces:
- name: WAN
type: 1000base-t
poe_mode: pd
- name: WiFi
type: ieee802.11ac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment