[
https://issues.apache.org/jira/browse/DTACLOUD-520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dies Koper resolved DTACLOUD-520.
---------------------------------
Resolution: Fixed
I'm not sure what commit this was completed in, but in current master the add
ops are advertised for drivers that implement the create operation.
Currently, both mock and fgcp drivers implement create_system, but not
create_system_template.
Note that the actual create operation won't work until
https://issues.apache.org/jira/browse/DTACLOUD-525 is addressed.
> CIMI: Missing add ops from Systems and systemTemplates collections
> ------------------------------------------------------------------
>
> Key: DTACLOUD-520
> URL: https://issues.apache.org/jira/browse/DTACLOUD-520
> Project: DeltaCloud
> Issue Type: Bug
> Components: CIMI/Frontend
> Environment: deltacloud commit version:
> d8e52934158a85336480479b5908f957e762f5e7
> mock driver
> Reporter: Ronelle Landy
> Assignee: Dies Koper
>
> There is no add op advertised for systems and systemTemplates collections.
> These add ops are needed for the CIMI tests
> curl -X GET --user "un:pw" "localhost:3001/cimi/systems?format=xml"
> <Collection xmlns="http://schemas.dmtf.org/cimi/1"
> resourceURI="http://schemas.dmtf.org/cimi/1/SystemCollection">
> <id>http://localhost:3001/cimi/systems</id>
> <count>2</count>
> <System>
> <id>http://localhost:3001/cimi/systems/system1</id>
> <name>system1</name>
> <description>the first system</description>
> <created>Fri Feb 08 15:25:41 EET 2013</created>
> <state>STOPPED</state>
> <operation rel="edit" href="http://localhost:3001/cimi/systems/system1" />
> <operation rel="delete" href="http://localhost:3001/cimi/systems/system1"
> />
> </System>
> <System>
> <id>http://localhost:3001/cimi/systems/system2</id>
> <name>system2</name>
> <description>the second system</description>
> <created>Fri Feb 08 15:25:41 EET 2013</created>
> <state>STOPPED</state>
> <operation rel="edit" href="http://localhost:3001/cimi/systems/system2" />
> <operation rel="delete" href="http://localhost:3001/cimi/systems/system2"
> />
> </System>
> </Collection>
> curl -X GET --user "un:pw" "localhost:3001/cimi/system_templates?format=xml"
> <Collection xmlns="http://schemas.dmtf.org/cimi/1"
> resourceURI="http://schemas.dmtf.org/cimi/1/SystemTemplateCollection">
> <id>http://localhost:3001/cimi/system_templates</id>
> <count>1</count>
> <SystemTemplate>
> <id>http://localhost:3001/cimi/system_templates/template1</id>
> <name>template1</name>
> <description>A mock system template</description>
> <created>Fri Feb 08 12:15:15 EET 2013</created>
> <componentDescriptor>
> <name>my machine</name>
> <description>an inline mock machine template</description>
> <type>http://schemas.dmtf.org/cimi/1/Machine</type>
> </componentDescriptor>
> <componentDescriptor>
> <name>my network</name>
> <description>a reference to an existing mock network
> template</description>
> <type>http://schemas.dmtf.org/cimi/1/Network</type>
> </componentDescriptor>
> <operation rel="edit"
> href="http://localhost:3001/cimi/system_templates/template1" />
> <operation rel="delete"
> href="http://localhost:3001/cimi/system_templates/template1" />
> </SystemTemplate>
> </Collection>
>
--
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