<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/OpenBmc/bmcweb.git/test, branch master</title>
<subtitle>A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/'/>
<updated>2026-11-25T12:38:11+00:00</updated>
<entry>
<title>pcie: Validate PCIeFunction enum properties</title>
<updated>2026-11-25T12:38:11+00:00</updated>
<author>
<name>Shivraj Toravi</name>
<email>shivrajnt@ami.com</email>
</author>
<published>2026-11-23T15:47:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=33371025150a2b337becf972b1706f742535f324'/>
<id>urn:sha1:33371025150a2b337becf972b1706f742535f324</id>
<content type='text'>
FunctionType and DeviceClass are Redfish enums, but the D-Bus
properties are free-form strings that were copied into the response
as-is. A value that is not a valid enum member produced a
non-compliant PCIeFunction resource.

Convert the D-Bus strings to the generated pcie_function enums and
only publish them when they match a known value. Unknown values are
omitted and logged. Producers such as peci-pcie already use the
Redfish enum names, so their output is unchanged.

Tested:
Unit tests added for valid, unknown, empty and "Invalid" values;
all pcie_test cases pass.

On romulus QEMU, created a PCIeDevice inventory object with three
functions and checked
GET /redfish/v1/Systems/system/PCIeDevices/pcie_card0/PCIeFunctions/N

Function 0 (Physical, MassStorageController):
  Before and after: both properties published.
Function 1 (Logical, "Mass Storage Controller"):
  Before: both invalid values published.
  After:  both properties omitted, HTTP 200.
Function 2 (empty strings):
  Before and after: both properties omitted.

Redfish Service Validator passes on the PCIeDevices tree; without
this change it reports invalid enum values for PCIeFunction 1.

Change-Id: I368c16f6143cb38b68f67a76620a0e062c901e94
Signed-off-by: Shivraj Toravi &lt;shivrajnt@ami.com&gt;
</content>
</entry>
<entry>
<title>location_utils: return the LocationType enum</title>
<updated>2026-11-25T07:28:35+00:00</updated>
<author>
<name>Ender Hsieh</name>
<email>andhsieh@nvidia.com</email>
</author>
<published>2026-10-07T04:52:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=60a0de171edf3b5ee9dc4f5af84cadb98988b690'/>
<id>urn:sha1:60a0de171edf3b5ee9dc4f5af84cadb98988b690</id>
<content type='text'>
getLocationType() handed the Redfish LocationType back as a bare string,
so a caller writing it into a response got no checking against the
schema and a wrong value would only show up at runtime. Return the
generated resource::LocationType enum instead. It serializes to the same
strings, so the compiler now rejects anything the schema does not
define.

Tested: Unit tests pass. The helper has no caller on master yet, so no
Redfish response changes, and the enum serializes to the same "Slot" and
"Embedded" values the function returned before.

Change-Id: I4e8e5f2bf6a8c4feebe4d25f627c25c6acc39cd1
Signed-off-by: Ender Hsieh &lt;andhsieh@nvidia.com&gt;
</content>
</entry>
<entry>
<title>test: check InternalError response body</title>
<updated>2026-11-24T04:40:08+00:00</updated>
<author>
<name>Eric Liu</name>
<email>liuer@nvidia.com</email>
</author>
<published>2026-10-29T05:59:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=9ec564f4f0500da8e5252add1e0b35621a4741cd'/>
<id>urn:sha1:9ec564f4f0500da8e5252add1e0b35621a4741cd</id>
<content type='text'>
Most *InternalError tests check the 500 status but not the response
body. Add the expected InternalError body to
error_messages_test_utils.hpp so it is written in one place, and
compare the whole body in the *InternalError tests where the response
holds only that error.

Tested: unit-test CI passes.

Change-Id: I449b9dbbd352470a21b2ba2250d9be970c8dc2c2
Signed-off-by: Eric Liu &lt;liuer@nvidia.com&gt;
</content>
</entry>
<entry>
<title>sensors: add unit tests for inventory item data</title>
<updated>2026-11-23T02:41:06+00:00</updated>
<author>
<name>Eric Liu</name>
<email>liuer@nvidia.com</email>
</author>
<published>2026-09-15T11:05:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=fea912a5ff915a7aa1e9e8d6e4117407bfdf1fe5'/>
<id>urn:sha1:fea912a5ff915a7aa1e9e8d6e4117407bfdf1fe5</id>
<content type='text'>
Cover storeInventoryItemData(): the Item, Item.PowerSupply,
Decorator.Asset and OperationalStatus interfaces, each supported
property, unknown interfaces and properties, and properties with the
wrong type.

Tested with:
meson test -C build sensors_test --print-errorlogs
18/18 cases pass.

Change-Id: Iec63ba144fcac91e730cefb12350303b0e8fecd4
Signed-off-by: Eric Liu &lt;liuer@nvidia.com&gt;
</content>
</entry>
<entry>
<title>test: add unit tests for NetworkAdapter Location</title>
<updated>2026-11-20T02:52:01+00:00</updated>
<author>
<name>JY Voon</name>
<email>jvoon@nvidia.com</email>
</author>
<published>2026-07-07T12:14:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=bc65fdc3b6a3023a53c37fc3dd206124ebb8fa9b'/>
<id>urn:sha1:bc65fdc3b6a3023a53c37fc3dd206124ebb8fa9b</id>
<content type='text'>
The NetworkAdapter Location handler in network_adapter.hpp has no unit
tests. Add tests to improve unit test coverage of this feature.

Tested: Unit tests pass.

Change-Id: I35c5d50a5cae2c130e66549ade57edf1d5088d36
Signed-off-by: JY Voon &lt;jvoon@nvidia.com&gt;
</content>
</entry>
<entry>
<title>test: cover ReadingTime on a sensor response</title>
<updated>2026-11-19T02:13:49+00:00</updated>
<author>
<name>Ender Hsieh</name>
<email>andhsieh@nvidia.com</email>
</author>
<published>2026-10-07T01:41:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=2cdeb921bd9f869a67a45c00eeb8a16bed13da08'/>
<id>urn:sha1:2cdeb921bd9f869a67a45c00eeb8a16bed13da08</id>
<content type='text'>
ReadingTime is published from a property a service may leave unset, and
only on a full sensor resource, so the cases worth holding still are the
ones where it must not appear at all: a zero time, an absent property,
and an excerpt.

Tested: Ran the unit tests.

Change-Id: I45cbac8b94945f7e5a422ef867f776f071cfe6d8
Signed-off-by: Ender Hsieh &lt;andhsieh@nvidia.com&gt;
</content>
</entry>
<entry>
<title>test: add unit tests for OperatingConfig handlers</title>
<updated>2026-11-17T01:37:39+00:00</updated>
<author>
<name>JY Voon</name>
<email>jvoon@nvidia.com</email>
</author>
<published>2026-10-15T08:13:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=4590280ccb3389aefe0a61f9b103d4fc72d86ad5'/>
<id>urn:sha1:4590280ccb3389aefe0a61f9b103d4fc72d86ad5</id>
<content type='text'>
The OperatingConfigs resources in processor_operating_config.hpp have no
unit tests. Add tests to improve unit test coverage of this implemented
feature, and move the OperatingConfig resource fields into
fillOperatingConfigResponse() so they can be tested without D-Bus.

Tested: Unit tests pass.

Change-Id: I0fdb953bdce136fdf66e27cdb7ccbf44e24d3d52
Signed-off-by: JY Voon &lt;jvoon@nvidia.com&gt;
</content>
</entry>
<entry>
<title>test: add unit tests for SubProcessor handlers</title>
<updated>2026-11-15T06:28:48+00:00</updated>
<author>
<name>JY Voon</name>
<email>jvoon@nvidia.com</email>
</author>
<published>2026-10-15T07:48:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=3cdd1fa531f7d87bbf4cc6f9821381489c732e43'/>
<id>urn:sha1:3cdd1fa531f7d87bbf4cc6f9821381489c732e43</id>
<content type='text'>
The SubProcessors resources in processor_core.hpp have no unit tests.
Add tests to improve unit test coverage of this implemented feature.

Tested: Unit tests pass.

Change-Id: I04a4e43135cee4b4aae0d3431e179a37eeb9b107
Signed-off-by: JY Voon &lt;jvoon@nvidia.com&gt;
</content>
</entry>
<entry>
<title>test: add unit tests for PCIeSlots handlers</title>
<updated>2026-11-09T02:54:56+00:00</updated>
<author>
<name>JY Voon</name>
<email>jvoon@nvidia.com</email>
</author>
<published>2026-10-15T08:42:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=1490fa66ebc010335949525ed1d6882269b3f617'/>
<id>urn:sha1:1490fa66ebc010335949525ed1d6882269b3f617</id>
<content type='text'>
The PCIeSlots resources in pcie_slots.hpp have no unit tests. Add tests
to improve unit test coverage of this implemented feature.

Tested: Unit tests pass.

Change-Id: Ia7275b333eab424775ffd7004fabc70021825107
Signed-off-by: JY Voon &lt;jvoon@nvidia.com&gt;
</content>
</entry>
<entry>
<title>test: add unit tests for Cable handlers</title>
<updated>2026-11-05T10:33:47+00:00</updated>
<author>
<name>JY Voon</name>
<email>jvoon@nvidia.com</email>
</author>
<published>2026-10-15T08:32:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=d864731dd859ed36dd39f5b74d2758bf11573ea3'/>
<id>urn:sha1:d864731dd859ed36dd39f5b74d2758bf11573ea3</id>
<content type='text'>
The Cable resources in cable.hpp have no unit tests. Add tests to
improve unit test coverage of this implemented feature.

Tested: Unit tests pass.

Change-Id: I116db549c45723e875df2087b2e3646e0036d7b7
Signed-off-by: JY Voon &lt;jvoon@nvidia.com&gt;
</content>
</entry>
</feed>
