From 3ba2d249fc626f157e24a0982193ee40d8916e40 Mon Sep 17 00:00:00 2001 From: Hakan Calim <hakan.calim@fau.de> Date: Tue, 24 Oct 2023 11:00:54 +0200 Subject: [PATCH] NAT-286: fixtures folder with json files removed --- test/services/fixtures/device.json | 75 ------------------------- test/services/fixtures/device_bay.json | 11 ---- test/services/fixtures/device_role.json | 6 -- test/services/fixtures/device_type.json | 25 --------- test/services/fixtures/interface.json | 67 ---------------------- test/services/fixtures/site.json | 27 --------- 6 files changed, 211 deletions(-) delete mode 100644 test/services/fixtures/device.json delete mode 100644 test/services/fixtures/device_bay.json delete mode 100644 test/services/fixtures/device_role.json delete mode 100644 test/services/fixtures/device_type.json delete mode 100644 test/services/fixtures/interface.json delete mode 100644 test/services/fixtures/site.json diff --git a/test/services/fixtures/device.json b/test/services/fixtures/device.json deleted file mode 100644 index 89d473ef..00000000 --- a/test/services/fixtures/device.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "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 deleted file mode 100644 index cf986fb6..00000000 --- a/test/services/fixtures/device_bay.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "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 deleted file mode 100644 index 047126de..00000000 --- a/test/services/fixtures/device_role.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "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 deleted file mode 100644 index ed001644..00000000 --- a/test/services/fixtures/device_type.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "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 deleted file mode 100644 index 7ccfc66e..00000000 --- a/test/services/fixtures/interface.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "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 deleted file mode 100644 index c5908d09..00000000 --- a/test/services/fixtures/site.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "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 -- GitLab