SEBA-902 mock testing of redfish importer;
Remove hardcoded addresses and replace with config file / cmdline;
Support hostnames in importer as alternative to ip addresses;
Treat response 204 as success
Change-Id: I17e8e585e388c501c02867ce952bbe1fa9b09668
diff --git a/mock-redfish-server/mockup/redfish/v1/EthernetSwitches/1/Ports/9/StaticMACs/index.json b/mock-redfish-server/mockup/redfish/v1/EthernetSwitches/1/Ports/9/StaticMACs/index.json
new file mode 100644
index 0000000..7c26584
--- /dev/null
+++ b/mock-redfish-server/mockup/redfish/v1/EthernetSwitches/1/Ports/9/StaticMACs/index.json
@@ -0,0 +1,9 @@
+{
+ "@odata.type": "#EthernetSwitchStaticMACCollection.EthernetSwitchStaticMACCollection",
+ "Name": "Static MAC Collection",
+ "@odata.context": "/redfish/v1/$metadata#EthernetSwitchStaticMACCollection.EthernetSwitchStaticMACCollection",
+ "Members": [],
+ "Description": "Collection of Static MACs",
+ "@odata.id": "/redfish/v1/EthernetSwitches/1/Ports/9/StaticMACs",
+ "Members@odata.count": 0
+}
\ No newline at end of file
diff --git a/mock-redfish-server/mockup/redfish/v1/EthernetSwitches/1/Ports/9/VLANs/index.json b/mock-redfish-server/mockup/redfish/v1/EthernetSwitches/1/Ports/9/VLANs/index.json
new file mode 100644
index 0000000..f95e2cf
--- /dev/null
+++ b/mock-redfish-server/mockup/redfish/v1/EthernetSwitches/1/Ports/9/VLANs/index.json
@@ -0,0 +1,9 @@
+{
+ "@odata.type": "#VLanNetworkInterfaceCollection.VLanNetworkInterfaceCollection",
+ "Name": "VLAN Network Interface Collection",
+ "@odata.context": "/redfish/v1/$metadata#VLanNetworkInterfaceCollection.VLanNetworkInterfaceCollection",
+ "Members": [],
+ "Description": "Collection of VLAN Network Interfaces",
+ "@odata.id": "/redfish/v1/EthernetSwitches/1/Ports/9/VLANs",
+ "Members@odata.count": 0
+}
\ No newline at end of file
diff --git a/mock-redfish-server/mockup/redfish/v1/EthernetSwitches/1/Ports/9/index.json b/mock-redfish-server/mockup/redfish/v1/EthernetSwitches/1/Ports/9/index.json
new file mode 100644
index 0000000..3c6ef6b
--- /dev/null
+++ b/mock-redfish-server/mockup/redfish/v1/EthernetSwitches/1/Ports/9/index.json
@@ -0,0 +1,54 @@
+{
+ "Name": "Port9",
+ "MACAddress": null,
+ "OperationalState": null,
+ "@odata.id": "/redfish/v1/EthernetSwitches/1/Ports/9",
+ "NeighborMAC": null,
+ "VLANs": {
+ "@odata.id": "/redfish/v1/EthernetSwitches/1/Ports/9/VLANs"
+ },
+ "LinkType": null,
+ "Oem": {},
+ "FrameSize": null,
+ "PortClass": null,
+ "FullDuplex": null,
+ "StaticMACs": {
+ "@odata.id": "/redfish/v1/EthernetSwitches/1/Ports/9/StaticMACs"
+ },
+ "PortId": "PON port",
+ "Links": {
+ "Switch": {
+ "@odata.id": "/redfish/v1/EthernetSwitches/1"
+ },
+ "ActiveACLs": [],
+ "PortMembers": [],
+ "PrimaryVLAN": null,
+ "Oem": {
+ "Intel_RackScale": {
+ "@odata.type": "#Intel.Oem.EthernetSwitchPort"
+ }
+ },
+ "MemberOfPort": null
+ },
+ "Id": "9",
+ "Description": "Ethernet Switch Port description",
+ "IPv4Addresses": [],
+ "PortMode": null,
+ "LinkSpeedMbps": null,
+ "@odata.type": "#EthernetSwitchPort.v1_0_0.EthernetSwitchPort",
+ "IPv6Addresses": [],
+ "@odata.context": "/redfish/v1/$metadata#EthernetSwitchPort.EthernetSwitchPort",
+ "Status": {
+ "State": "Absent",
+ "HealthRollup": "OK",
+ "Health": "Warning"
+ },
+ "Autosense": null,
+ "AdministrativeState": null,
+ "PortType": null,
+ "NeighborInfo": {
+ "CableId": null,
+ "SwitchId": null,
+ "PortId": null
+ }
+}
\ No newline at end of file