You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Ronelle Landy (JIRA)" <ji...@apache.org> on 2013/04/09 15:14:16 UTC

[jira] [Closed] (DTACLOUD-520) CIMI: Missing add ops from Systems and systemTemplates collections

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

Ronelle Landy closed DTACLOUD-520.
----------------------------------


Closing this issue - partially fixed in deltacloud commit version: 3b0b1a59361bfaf33a2e3ae81c1881209e8cc016

system add op is there ... see test code in deltacloud/tests/cimi/system1_test.rb

system_add_uri = discover_uri_for("add", "systems")
  # 1.4 Create a new system from the systemTemplate
    system_created = post(system_add_uri,
    "<systemCreate xmlns=\"#{CIMI::Test::CIMI_NAMESPACE}\">" +
    "<name>test_system</name>" +
    "<systemTemplate href=\"" + get_a(cep_json, "systemTemplate") + "\"/>" +
    "</systemCreate>", :content_type => :xml)



DTACLOUD-530 is the JIRA now open to track adding systemTemplate add op


                
> 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