[
https://issues.apache.org/jira/browse/DTACLOUD-179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ronelle Landy closed DTACLOUD-179.
----------------------------------
Verified that this issue is fixed in deltacloud git commit version:
5aa335beff48436fa913d0c145bfe9169f3a8342:
curl -X GET --user "<un>:<pw>"
"http://qe-blade-02.idm.lab.bos.redhat.com:3007/api?format=json"
{"api":{"version":"0.5.0","driver":"rhevm","link":[{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3007/api/storage_volumes","rel":"storage_volumes"},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3007/api/instances","feature":[{"name":"user_name","constraint":"50"},{"name":"user_data"}],"rel":"instances"},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3007/api/images","rel":"images"},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3007/api/drivers","rel":"drivers"},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3007/api/hardware_profiles","rel":"hardware_profiles"},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3007/api/realms","rel":"realms"},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3007/api/instance_states","rel":"instance_states"}],"provider":"https://10.16.120.230:8443/api;9754dc7f-489e-49dd-99d0-2c2ea7657b56"}}
> GET /api - json output does not return feature constraints (rhevm instances)
> ----------------------------------------------------------------------------
>
> Key: DTACLOUD-179
> URL: https://issues.apache.org/jira/browse/DTACLOUD-179
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud git commit version:
> 7e372dfca79c02a799046287e5936129216b781b - clone: from
> https://git-wip-us.apache.org/repos/asf/deltacloud.git
> rhevm 3.X
> Fedora 16
> Reporter: Ronelle Landy
> Assignee: Michal Fojtik
>
> For rhvem, instances have a user_name feature. The xml output for GET/api
> shows that the user_name feature for instances has a constraint (max_length,
> 50). The json output copied below the xml output does not return the
> constraint.
> <api driver="rhevm" version="0.5.0"><link
> href="http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/realms" rel="realms">
> </link><link
> href="http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/images" rel="images">
> <feature name="user_name">
> </feature>
> </link><link
> href="http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/storage_volumes"
> rel="storage_volumes">
> </link><link
> href="http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/instances"
> rel="instances">
> <feature name="user_name">
> <constraint name="max_length" value="50"/>
> </feature><feature name="user_data">
> </feature><feature name="hardware_profiles">
> </feature>
> </link><link
> href="http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/drivers"
> rel="drivers">
> </link><link
> href="http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/hardware_profiles"
> rel="hardware_profiles">
> </link><link
> href="http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/instance_states"
> rel="instance_states">
> </link></api>
> {"api":{"links":[{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/realms","rel":"realms"},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/images","rel":"images","features":["user_name"]},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/storage_volumes","rel":"storage_volumes"},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/instances","rel":"instances","features":["user_name","user_data","hardware_profiles"]},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/drivers","rel":"drivers"},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/hardware_profiles","rel":"hardware_profiles"},{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/instance_states","rel":"instance_states"}],"driver":"rhevm","version":"0.5.0"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira