appologies - fixed another issue - if testing please use the patchset at

http://tracker.deltacloud.org/set/179

(alternatively grab the patches at
https://issues.apache.org/jira/browse/DTACLOUD-385)

thanks, marios

On 04/12/12 14:23, [email protected] wrote:
> Patches above fix this issue - also available at 
> http://tracker.deltacloud.org/set/177
> 
> Scenarios for testing:
> 
> 1. Create from template by reference - not yet supported - can likely be 
> added with new Datamapper (persistence layer) implementation
> 
> 2. Create from template by value, with config by reference:
> 
> XML:
> 
> curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d 
> '<VolumeCreate><name> marios_new_volume </name> <description> a new volume 
> </description><volumeTemplate> <volumeConfig 
> href="http://localhost:3001/cimi/volume_configurations/2";> 
> </volumeConfig></volumeTemplate></VolumeCreate>' 
> http://localhost:3001//cimi/volumes
> 
> JSON: 
> 
> curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d 
> '{"name": "marios_new_volume", "description": "a new volume", 
> "volumeTemplate": 
> { "volumeConfig": 
> {"href":"http://localhost:3001/cimi/volume_configurations/2"; }}}' 
> http://localhost:3001//cimi/volumes
> 
> 
> 3. Create from template by value, with config by value (issue 
> reported/addressed here):
> 
> XML:
> 
> curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d 
> '<VolumeCreate><name> marios_volume </name><description> a new volume 
> </description> 
> <volumeTemplate><volumeConfig><type>http://schemas.dmtf.org/cimi/1/mapped</type>
> <capacity> 1024 </capacity></volumeConfig></volumeTemplate> </VolumeCreate>' 
> http://localhost:3001//cimi/volumes
> 
> JSON:
> 
> curl --user "mockuser:mockpassword" -H "Accept:application/xml"  -X POST -d 
> '{"name": "marios_new_volume", "description": "a new volume", 
> "volumeTemplate": 
> { "volumeConfig": {"type":"http://schemas.dmtf.org/cimi/1/mapped";, 
> "capacity": 1024 }}}'
> http://localhost:3001/cimi/volumes
> 
> 
> marios
> 

Reply via email to