[ 
https://issues.apache.org/jira/browse/DTACLOUD-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ronelle Landy closed DTACLOUD-431.
----------------------------------


Closing issue as fixed in deltacloud commit version: 
024be38f6ec79a4b3f981b377714800cf97d9164. Only machine names are returned 

 curl -X GET -H "accept:application/xml" --user "un:pw" 
'localhost:3001/cimi/machines?$select=name'
<Collection xmlns="http://schemas.dmtf.org/cimi/1"; 
resourceURI="http://schemas.dmtf.org/cimi/1/MachineCollection";>
  <id>http://localhost:3001/cimi/machines</id>
  <count>2</count>
  <Machine>
    <name>MockUserInstance</name>
  </Machine>
  <Machine>
    <name>Mock Instance With Profile Change</name>
  </Machine>
  <operation rel="add" href="http://localhost:3001/cimi/machines"; />
</Collection>

[root@cloud-qe-13 ~]# curl -X GET -H "accept:application/json" --user "un:pw" 
'localhost:3001/cimi/machines?$select=name'
{"id":"http://localhost:3001/cimi/machines","count":2,"machines":[{"name":"MockUserInstance"},{"name":"Mock
 Instance With Profile 
Change"}],"operations":[{"rel":"add","href":"http://localhost:3001/cimi/machines"}],"resourceURI":"http://schemas.dmtf.org/cimi/1/MachineCollection"}

Automated tests to be added
                
> Disks and volumes are ignored on CIMI $select
> ---------------------------------------------
>
>                 Key: DTACLOUD-431
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-431
>             Project: DeltaCloud
>          Issue Type: Bug
>            Reporter: Michal Fojtik
>            Assignee: Michal Fojtik
>
> When using $select=name on machine collection, I get following output:
> <Collection xmlns="http://schemas.dmtf.org/cimi/1"; 
> resourceURI="http://schemas.dmtf.org/cimi/1/MachineCollection";>
> <id>http://localhost:3001/cimi/machines</id>
> <count>2</count>
> <Machine>
> <name>MockUserInstance</name>
> <disks href="/disks" />
> <volumes href="/volumes" />
> </Machine>
> <Machine>
> <name>Mock Instance With Profile Change</name>
> <disks href="/disks" />
> <volumes href="/volumes" />
> </Machine>
> <operation rel="add" href="http://localhost:3001/cimi/machines"; />
> </Collection>
> Note that the 'disks' and 'volumes' should not be displayed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to