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

Ronelle Landy closed DTACLOUD-433.
----------------------------------


Closing JIRA as fixed in deltacloud commit version: 
024be38f6ec79a4b3f981b377714800cf97d9164

# 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"}[root@cloud-qe-13
 ~]# 

[root@cloud-qe-13 ~]# 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>

Automated tests to be added ...
                
> Wrong :href attribute in disks when using $select=name
> ------------------------------------------------------
>
>                 Key: DTACLOUD-433
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-433
>             Project: DeltaCloud
>          Issue Type: Bug
>            Reporter: Michal Fojtik
>            Assignee: Michal Fojtik
>
> When doing:
> http://localhost:3001/cimi/machines?$select=name
> The result is:
> <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>
> The 'href' attribute on disks and volumes is wrong (/disks and /volumes)

--
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