Skip to content

Validate APCB Token before applying PATCH#67

Open
aasboddu wants to merge 1 commit into
integ_sp8from
validate_patch_request
Open

Validate APCB Token before applying PATCH#67
aasboddu wants to merge 1 commit into
integ_sp8from
validate_patch_request

Conversation

@aasboddu
Copy link
Copy Markdown
Collaborator

Validate the APCB tokens before servicing the PATCH request.

Tested: verified on Congo platform

Validate the APCB tokens before servicing the PATCH
request.

Tested: verified on Congo platform

'''
curl -s -k -u root:0penBmc -H"Content-type: application/json" -X PATCH
     https://congo-0131.amd.com/redfish/v1/Systems/system/Processors/P0/Oem/AMD/SocConfiguration/Token
         -d @test_payload_3.json
{
  "error": {
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_1_1.Message",
        "Message": "The property CbsCmnSocConOutSerialPort_0xFFF9F34 is not in the
                        list of valid properties for the resource.",
        "MessageArgs": [
          "CbsCmnSocConOutSerialPort_0xFFF9F34"
        ],
        "MessageId": "Base.1.19.PropertyUnknown",
        "MessageSeverity": "Warning",
        "Resolution": "Unknown APCB configuration token 'CbsCmnSocConOutSerialPort_0xFFF9F34'.
             Did you mean 'CbsCmnSocConOutSerialPort_0xFFF9F34D'? Use GET .../Oem/AMD/SocConfiguration/Token
                 to list all valid token names."
      }
    ],
    "code": "Base.1.19.PropertyUnknown",
    "message": "The property CbsCmnSocConOutSerialPort_0xFFF9F34 is not in the list of valid properties for the resource."
  }
}
'''

Signed-off-by: Aashray Boddu <Aashray.Boddu@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants