Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Certificate #2245

Open
justin0309 opened this issue Jun 5, 2024 · 1 comment
Open

Test Certificate #2245

justin0309 opened this issue Jun 5, 2024 · 1 comment

Comments

@justin0309
Copy link

justin0309 commented Jun 5, 2024

@gkeishin
image
image

curl -k -X PATCH -H "Content-Type: application/json" -H "X-Auth-Token: $token" -d '{"DateTime": "2024-06-05 14:07:08.695"}' https://xxx.xxx.xxx.xxx/redfish/v1/Managers/bmc

  "[email protected]": [
    {
      "@odata.type": "#Message.v1_1_1.Message",
      "Message": "The value '\"2024-06-05 14:07:08.695\"' for the property DateTime is of a different format than the property can accept.",
      "MessageArgs": [
        "\"2024-06-05 14:07:08.695\"",
        "DateTime"
      ],
      "MessageId": "Base.1.16.0.PropertyValueFormatError",
      "MessageSeverity": "Warning",
      "Resolution": "Correct the value for the property in the request body and resubmit the request if the operation failed."
    }
  ]

Should it be modified to
curl -k -X PATCH -H "Content-Type: application/json" -H "X-Auth-Token: $token" -d '{"DateTime": "2024-06-05T14:01:59.809Z"}' https://xxx.xxx.xxx.xxx/redfish/v1/Managers/bmc

  "DateTime": "2024-06-05T14:01:59.809Z"
@justin0309
Copy link
Author

justin0309 commented Jun 6, 2024

It seems that this command can be successfully tested manually, but auto-test still returns 400
curl -k -X PATCH -H "Content-Type: application/json" -H "X-Auth-Token: $token" -d '{"DateTime": "2024-06-05 14:07:08.695"}' https://xxx.xxx.xxx.xxx/redfish/v1/Managers/bmc

But it seems to comply with the ISO 8601 format string
image

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

No branches or pull requests

1 participant