create audittemplate not support strategy name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
watcher |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Although according to the API documentation, you can specify the strategy name when creating an audit template, but when directly using the `curl` command to create, only strategy uuid is accepted.
$ curl http://
-H "Content-Type: application/json" \
-H "X-Auth-Token: $OS_TOKEN" \
-X POST -d '
{
"name": "at2",
"goal": "workload_
"strategy": "e561f4af-
}'
{"description": null, "links": [{"href": "http://
$ curl http://
-H "Content-Type: application/json" \
-H "X-Auth-Token: $OS_TOKEN" \
-X POST -d '
{
"name": "at3",
"goal": "workload_
"strategy": "workload_
}'
{"error_message": "{\"debuginfo\": null, \"faultcode\": \"Client\", \"faultstring\": \"Invalid input for field/attribute audit_template_
Related fix proposed to branch: stable/rocky /review. opendev. org/736882
Review: https:/