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,33 @@
{
"@odata.type": "#ManagerAccount.v1_14_2.ManagerAccount",
"Id": "1",
"Name": "User Account",
"Description": "User Account",
"Enabled": true,
"Password": null,
"PasswordChangeRequired": false,
"AccountTypes": [
"Redfish"
],
"UserName": "Administrator",
"EmailAddress": "Tiffany@contoso.com",
"PhoneNumber": "312-555-1212",
"OneTimePasscodeDeliveryAddress": "3125551212@smsrelay.contoso.com",
"RoleId": "Administrator",
"Locked": false,
"Certificates": {
"@odata.id": "/redfish/v1/AccountService/Accounts/1/Certificates"
},
"Links": {
"Role": {
"@odata.id": "/redfish/v1/AccountService/Roles/Administrator"
}
},
"Actions": {
"#ManagerAccount.ChangePassword": {
"target": "/redfish/v1/AccountService/Accounts/1/Actions/ManagerAccount.ChangePassword"
}
},
"@odata.id": "/redfish/v1/AccountService/Accounts/1",
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
@@ -0,0 +1,38 @@
{
"@odata.type": "#ManagerAccount.v1_14_2.ManagerAccount",
"Id": "2",
"Name": "Employee #457",
"Description": "This user is both a Redfish administrator and a SNMPv3 user.",
"Enabled": true,
"Password": null,
"UserName": "contoso_employee457",
"MFABypass": {
"BypassTypes": [
"All"
]
},
"RoleId": "Administrator",
"Locked": false,
"AccountTypes": [
"Redfish",
"SNMP"
],
"SNMP": {
"AuthenticationKey": null,
"AuthenticationProtocol": "None",
"EncryptionKey": null,
"EncryptionProtocol": "CFB128_AES128"
},
"Links": {
"Role": {
"@odata.id": "/redfish/v1/AccountService/Roles/Administrator"
}
},
"Actions": {
"#ManagerAccount.ChangePassword": {
"target": "/redfish/v1/AccountService/Accounts/2/Actions/ManagerAccount.ChangePassword"
}
},
"@odata.id": "/redfish/v1/AccountService/Accounts/2",
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
@@ -0,0 +1,12 @@
{
"@odata.type": "#ManagerAccountCollection.ManagerAccountCollection",
"Name": "Accounts Collection",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/AccountService/Accounts/1"
}
],
"@odata.id": "/redfish/v1/AccountService/Accounts",
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}