deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: Initial support for persistence layer (rev 3)
Date Thu, 29 Nov 2012 14:26:56 GMT
On 11/29, mfojtik@redhat.com wrote:

I just noticed that our unit tests are failing with this patchset.
For some (unknown) reason DataMapper cause Rack::Test to explode.

I have patch ready that will prevent use DataMapper while running
under ENV['RACK_ENV'] == 'test'.

  -- Michal

> Hi,
> 
> This revision add support for MachineTemplate model in CIMI.
> 
> How to use it:
> 
> curl -v -X POST -H 'Content-Type: application/json' --user \
>   'mockuser:mockpassword' -d @machine_template.json \
>   http://localhost:3001/cimi/machine_templates
> 
> (machine_template.json is attached).
> 
> Then if you want to create a new machine using this MachineTemplate:
> 
> curl -v -X POST -H 'Content-Type: application/json' --user \
>   'mockuser:mockpassword' -d @machine_from_temp.json \
>   http://localhost:3001/cimi/machines
> 
> (machine_from_temp.json) is attached)
> 
>   -- Michal
> 

-- 
Michal Fojtik <mfojtik@redhat.com>
Deltacloud API, CloudForms

Mime
View raw message