Files
sushy-tools/sushy_tools/emulator
Queensly Acheampongmaa 81352b1d34 Add PATCH support for Redfish DateTime fields in Manager resource
This patch enables PATCH support for the DateTime and DateTimeLocalOffset
fields of the Redfish Manager resource in sushy-tools, allowing clients like
sushy to update the BMC clock through the Redfish interface.

Key changes:
- In managers.py, added set_datetime() and get_datetime() methods in the
  FakeDriver class. These store and retrieve datetime values as instance
  attributes (not indexed by UUID), since each instance represents a single
  manager.
- In main.py, added PATCH support in the Manager resource handler.
  Removed reset_cache() hook to preserve instance state across
  requests, enabling PATCH updates to persist.
- In test_main.py, mocked get_datetime() return values to support unit
  tests for the datetime PATCH logic.
- In test_managers.py, added a unit test for the set_datetime() and
  get_datetime() methods.

Also includes a release note describing the new functionality.

Change-Id: I91c671316d8c646fa6cd80c926a2c8b872a7a1fa
2025-06-11 15:04:26 +00:00
..
2017-04-06 17:05:16 +01:00
2025-01-15 16:16:44 -08:00
2020-08-06 12:52:12 +02:00
2019-07-02 16:12:51 +02:00
2023-09-14 15:08:35 +02:00