diff --git a/test/services/fixtures/device.json b/test/services/fixtures/device.json new file mode 100644 index 0000000000000000000000000000000000000000..89d473efea5090f22a53e5c423315261f5cbd7c4 --- /dev/null +++ b/test/services/fixtures/device.json @@ -0,0 +1,75 @@ +{ + "id": 1, + "name": "test1-edge1", + "display_name": "test1-edge1", + "device_type": { + "id": 1, + "url": "http://localhost:8000/api/dcim/device-types/1/", + "manufacturer": { + "id": 1, + "url": "http://localhost:8000/api/dcim/manufacturers/1/", + "name": "Juniper", + "slug": "juniper" + }, + "model": "MX960", + "slug": "mx960" + }, + "role": { + "id": 1, + "url": "http://localhost:8000/api/dcim/device-roles/1/", + "name": "Router", + "slug": "router" + }, + "tenant": null, + "platform": { + "id": 1, + "url": "http://localhost:8000/api/dcim/platforms/1/", + "name": "Juniper Junos", + "slug": "juniper-junos" + }, + "serial": "5555555555", + "asset_tag": null, + "site": { + "id": 1, + "url": "http://localhost:8000/api/dcim/sites/1/", + "name": "TEST1", + "slug": "test1" + }, + "rack": { + "id": 1, + "url": "http://localhost:8000/api/dcim/racks/1/", + "name": "A1R1", + "display_name": "A1R1 (T23A01)" + }, + "position": 1, + "face": { + "value": 0, + "label": "Front" + }, + "parent_device": null, + "status": { + "value": true, + "label": "Active" + }, + "primary_ip": { + "id": 1, + "url": "http://localhost:8000/api/ipam/ip-addresses/1/", + "family": 4, + "address": "10.0.255.1/32" + }, + "primary_ip4": { + "id": 1, + "url": "http://localhost:8000/api/ipam/ip-addresses/1/", + "family": 4, + "address": "10.0.255.1/32" + }, + "primary_ip6": null, + "comments": "", + "local_context_data": { + "testing": "test" + }, + "custom_fields": {}, + "config_context": { + "test_key": "test_val" + } +} diff --git a/test/services/fixtures/device_bay.json b/test/services/fixtures/device_bay.json new file mode 100644 index 0000000000000000000000000000000000000000..cf986fb6f882d95ec167b216edbfcfa75d99b24e --- /dev/null +++ b/test/services/fixtures/device_bay.json @@ -0,0 +1,11 @@ +{ + "id": 1, + "device": { + "id": 13, + "url": "http://localhost:8000/api/dcim/devices/13/", + "name": "test1-mothership", + "display_name": "test1-mothership" + }, + "name": "thing-1", + "installed_device": null +} \ No newline at end of file diff --git a/test/services/fixtures/device_role.json b/test/services/fixtures/device_role.json new file mode 100644 index 0000000000000000000000000000000000000000..047126de98adf28e89a4e2f8ca6ea7eb402f3cdb --- /dev/null +++ b/test/services/fixtures/device_role.json @@ -0,0 +1,6 @@ +{ + "id": 1, + "name": "Router", + "slug": "router", + "color": "purple" +} \ No newline at end of file diff --git a/test/services/fixtures/device_type.json b/test/services/fixtures/device_type.json new file mode 100644 index 0000000000000000000000000000000000000000..ed001644db31ff7cf8daafcb6a092d6cf167648a --- /dev/null +++ b/test/services/fixtures/device_type.json @@ -0,0 +1,25 @@ +{ + "id": 1, + "manufacturer": { + "id": 1, + "url": "http://localhost:8000/api/dcim/manufacturers/1/", + "name": "Juniper", + "slug": "juniper" + }, + "model": "MX960", + "slug": "mx960", + "part_number": "", + "u_height": 16, + "is_full_depth": true, + "interface_ordering": { + "value": 1, + "label": "Slot/position" + }, + "is_console_server": false, + "is_pdu": false, + "is_network_device": true, + "subdevice_role": null, + "comments": "", + "custom_fields": {}, + "instance_count": 2 +} \ No newline at end of file diff --git a/test/services/fixtures/interface.json b/test/services/fixtures/interface.json new file mode 100644 index 0000000000000000000000000000000000000000..7ccfc66ed4428da59dd1c1acac3de03b68c7b24f --- /dev/null +++ b/test/services/fixtures/interface.json @@ -0,0 +1,67 @@ +{ + "id": 1, + "device": { + "id": 2, + "url": "http://localhost:8000/api/dcim/devices/2/", + "name": "test1-core1", + "display_name": "test1-core1" + }, + "name": "et-0/0/0", + "form_factor": { + "value": 1400, + "label": "QSFP+ (40GE)" + }, + "enabled": true, + "lag": { + "id": 223, + "url": "http://localhost:8000/api/dcim/interfaces/223/", + "name": "ae0" + }, + "mtu": null, + "mac_address": null, + "mgmt_only": false, + "description": "", + "is_connected": true, + "connected_endpoint": { + "id": 1, + "url": "http://localhost:8000/api/dcim/interfaces/1/", + "device": { + "id": 1, + "url": "http://localhost:8000/api/dcim/devices/1/", + "name": "tst-endpoint", + "display_name": "tst-endpoint" + }, + "name": "eth0", + "cable": 1 + }, + "connection_status": { + "value": true, + "label": "Connected" + }, + "cable": { + "id": 1, + "url": "http://localhost:8000/api/dcim/cables/1/", + "label": "" + }, + "mode": { + "value": "tagged", + "label": "Tagged", + "id": 200 + }, + "untagged_vlan": { + "id": 2, + "url": "http://localhost:8000/api/ipam/vlans/792/", + "vid": 2069, + "name": "v2069", + "display_name": "2069 (v2069)" + }, + "tagged_vlans": [ + { + "id": 3, + "url": "http://localhost:8000/api/ipam/vlans/248/", + "vid": 1210, + "name": "v1210", + "display_name": "1210 (v1210)" + } + ] +} \ No newline at end of file diff --git a/test/services/fixtures/site.json b/test/services/fixtures/site.json new file mode 100644 index 0000000000000000000000000000000000000000..c5908d09a041267cbc02d78eee3ea6a072755c7e --- /dev/null +++ b/test/services/fixtures/site.json @@ -0,0 +1,27 @@ +{ + "id": 1, + "name": "TEST1", + "slug": "test1", + "region": null, + "tenant": null, + "facility": "Test Facility", + "asn": 65535, + "physical_address": "555 Test Ave.\r\nTest, NY 55555", + "shipping_address": "", + "contact_name": "", + "contact_phone": "", + "contact_email": "", + "comments": "", + "custom_fields": { + "test_custom": "Hello", + "test_selection": { + "value": 2, + "label": "second" + } + }, + "count_prefixes": 2, + "count_vlans": 1, + "count_racks": 2, + "count_devices": 11, + "count_circuits": 0 +} \ No newline at end of file