Add DMTF mockup fixtures and test helpers

Unmodified files from DMTF Redfish-Publications (public-rackmount1, public-localstorage, public-telemetry), only those the tests use, each set with DMTF's BSD-3-Clause license and a COMMANDS.txt naming the source commit and request paths.

conftest.py loads them by request path and serves a mockup over mocked HTTP, with a SessionService that hands out a token, for the transport tests.
This commit is contained in:
Christian Manivong committed 2026-10-12 23:42:14 +00:00
1 parent 17d515d035
commit c8bcd5ace1
77 files changed
+4051

No files matched your search

@@ -0,0 +1,57 @@
{
"@odata.type": "#EthernetInterface.v1_12_6.EthernetInterface",
"Id": "ToHost",
"Name": "Manager Ethernet Interface",
"Description": "Management Network Interface",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"InterfaceEnabled": true,
"PermanentMACAddress": "AA:BB:CC:DD:EE:FF",
"MACAddress": "AA:BB:CC:DD:EE:FF",
"SpeedMbps": 100,
"AutoNeg": true,
"FullDuplex": true,
"MTUSize": 1500,
"HostName": "bmc-host-interface",
"FQDN": "bmc-host-interface.dmtf.org",
"MaxIPv6StaticAddresses": 1,
"IPv4Addresses": [
{
"Address": "192.168.20.55",
"SubnetMask": "255.255.255.0",
"AddressOrigin": "Static",
"Gateway": "192.168.20.1"
}
],
"IPv6AddressPolicyTable": [
{
"Prefix": "::1/128",
"Precedence": 50,
"Label": 0
}
],
"IPv6StaticAddresses": [
{
"Address": "fe80::1ec1:deff:fe6f:1e24",
"PrefixLength": 64
}
],
"IPv6DefaultGateway": "fe80::1ec1:deff:fe6f:1e24",
"IPv6Addresses": [
{
"Address": "fe80::1ec1:deff:fe6f:1e24",
"PrefixLength": 64,
"AddressOrigin": "Static",
"AddressState": "Preferred"
}
],
"Links": {
"HostInterface": {
"@odata.id": "/redfish/v1/Managers/BMC/HostInterfaces/1"
}
},
"@odata.id": "/redfish/v1/Managers/BMC/EthernetInterfaces/ToHost",
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}