Populate the Type property in Item.Drive interface
By populating this property, bmcweb can populate the "MediaType"
property in the Drive schema.
Tested:
$ busctl get-property xyz.openbmc_project.eStoraged \
/xyz/openbmc_project/inventory/storage/mmcblk0 \
xyz.openbmc_project.Inventory.Item.Drive Type
s "xyz.openbmc_project.Inventory.Item.Drive.DriveType.SSD"
$ curl http://localhost:80/redfish/v1/Chassis/DCSCM/Drives/mmcblk0
{
...
"MediaType": "SSD",
...
}
Signed-off-by: John Wedig <johnwedig@google.com>
Change-Id: I2cb6c7d3ec3b49e8d666da940d873f1117a0aa85
diff --git a/src/test/estoraged_test.cpp b/src/test/estoraged_test.cpp
index 520c7ec..3d31112 100644
--- a/src/test/estoraged_test.cpp
+++ b/src/test/estoraged_test.cpp
@@ -46,6 +46,7 @@
const std::string testPartNumber = "12345678";
const std::string testSerialNumber = "ABCDEF1234";
const std::string testLocationCode = "U102020";
+ const std::string testDriveType = "SSD";
std::ofstream testFile;
std::string passwordString;
std::vector<uint8_t> password;
@@ -91,7 +92,7 @@
*objectServer, testConfigPath, testFileName, testLuksDevName,
testSize, testLifeTime, testPartNumber, testSerialNumber,
testLocationCode, ERASE_MAX_GEOMETRY, ERASE_MIN_GEOMETRY,
- std::move(cryptIface), std::move(fsIface));
+ testDriveType, std::move(cryptIface), std::move(fsIface));
}
void TearDown() override