<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/OpenBmc/bmcweb.git/test/redfish-core/lib/fabric_test.cpp, 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-09-03T02:27:27+00:00</updated>
<entry>
<title>bmcweb: add unit tests for Fabric Switch PowerState handlers</title>
<updated>2026-09-03T02:27:27+00:00</updated>
<author>
<name>JY Voon</name>
<email>jvoon@nvidia.com</email>
</author>
<published>2026-07-09T05:09:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=4b90142b858d46791337f5fb0cd2c4985f55d5fa'/>
<id>urn:sha1:4b90142b858d46791337f5fb0cd2c4985f55d5fa</id>
<content type='text'>
Cover dbusToRfPowerState() and the callbacks introduced by the Fabric
Switch PowerState change: afterGetSwitchPowerState and
afterGetSwitchPowerStateService. The tests assert each branch's
externally visible behavior: known PowerState decorator values map to
the matching resource::PowerState and unmapped values yield nullopt; a
property read error or an unmapped value leaves PowerState omitted
without failing the request; EBADR, io_error and an empty mapper
object leave PowerState omitted; any other mapper error sets an
internal server error.

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