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/Systems/1/Memory/2/index.json b/mock-redfish-server/mockup/redfish/v1/Systems/1/Memory/2/index.json
new file mode 100644
index 0000000..61ad245
--- /dev/null
+++ b/mock-redfish-server/mockup/redfish/v1/Systems/1/Memory/2/index.json
@@ -0,0 +1,52 @@
+{
+ "SerialNumber": null,
+ "Name": "Memory",
+ "FirmwareApiVersion": null,
+ "MemoryMedia": [],
+ "Manufacturer": null,
+ "DeviceLocator": "DIMM_B1",
+ "BaseModuleType": null,
+ "CapacityMiB": 7812,
+ "FunctionClasses": [],
+ "Regions": [
+ {
+ "MemoryClassification": null,
+ "SizeMiB": 7812,
+ "OffsetMiB": 0,
+ "RegionId": "2"
+ }
+ ],
+ "@odata.id": "/redfish/v1/Systems/1/Memory/2",
+ "OperatingSpeedMhz": 2133,
+ "ErrorCorrection": null,
+ "OperatingMemoryModes": [],
+ "Status": {
+ "State": "Enabled",
+ "HealthRollup": "OK",
+ "Health": "OK"
+ },
+ "BusWidthBits": null,
+ "RankCount": null,
+ "Oem": {
+ "Intel_RackScale": {
+ "VoltageVolt": null,
+ "@odata.type": "#Intel.Oem.Memory"
+ }
+ },
+ "Id": "2",
+ "Description": "Memory description",
+ "MemoryDeviceType": "DDR3_SDRAM",
+ "@odata.type": "#Memory.v1_1_0.Memory",
+ "DataWidthBits": 64,
+ "@odata.context": "/redfish/v1/$metadata#Memory.Memory",
+ "MemoryType": null,
+ "FirmwareRevision": null,
+ "AllowedSpeedsMHz": [],
+ "MemoryLocation": {
+ "Socket": null,
+ "MemoryController": null,
+ "Slot": null,
+ "Channel": null
+ },
+ "PartNumber": null
+}
\ No newline at end of file